Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notebook which integrates metag, metap, metab data #124

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
de11a7d
start tracking integration notebook
bmeluch Jan 29, 2025
2f1a97a
outline pathway coverage
bmeluch Jan 31, 2025
7071aee
more narrative, file structure
bmeluch Feb 2, 2025
2f3a10e
first part of notebook converted to ipynb
bmeluch Feb 5, 2025
a6c30ce
trying to fix renv path issues
bmeluch Feb 10, 2025
33b5312
oh my god it actually uses the renv project lib
bmeluch Feb 10, 2025
a888eef
rerender
bmeluch Feb 10, 2025
5ff9880
render up to circos diagram
bmeluch Feb 11, 2025
55f9513
fix kernelspec
bmeluch Feb 11, 2025
7311117
Merge branch 'main' into 91-create-notebook-integrating-metag-metap-m…
bmeluch Feb 19, 2025
6792856
updated readme, got code working, plots misbehaving still
bmeluch Feb 20, 2025
d14cb79
added workflow check
bmeluch Feb 20, 2025
2a068c9
fix kernelspec for github workflow
bmeluch Feb 20, 2025
8b25c08
rerender with plots fixed
bmeluch Feb 20, 2025
d090b11
update kernelspec
bmeluch Feb 20, 2025
62c6045
Merge branch '91-create-notebook-integrating-metag-metap-metab-data-r…
bmeluch Feb 20, 2025
12318cf
add link to main README
bmeluch Feb 21, 2025
7dd1850
added colored pathway diagram
bmeluch Feb 22, 2025
146208d
improve narration
bmeluch Feb 22, 2025
1ee099b
update dependencies
bmeluch Feb 22, 2025
24e2e97
delete dev rmarkdown
bmeluch Feb 22, 2025
af866b9
try to fix libcurl dependency issue
bmeluch Feb 22, 2025
8bb313c
rerender notebook
bmeluch Feb 22, 2025
aa8501f
try to fix workflow missing libpng
bmeluch Feb 24, 2025
ede6551
try to fix libpng
bmeluch Feb 24, 2025
4ed9e93
fix kernelspec for github
bmeluch Feb 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/notebook_check_r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
name: Set up R
uses: r-lib/actions/setup-r@v2

- name: dependencies on Linux
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep working on this - workflow is still failing due to linux dependencies for specific R libraries

if: runner.os == 'Linux'
run: sudo apt-get install -y make libicu-dev libxml2-dev libssl-dev pandoc librdf0-dev libnode-dev libcurl4-gnutls-dev

- id: r-dependencies
name: Install r dependencies
run: |
Expand All @@ -39,6 +43,11 @@ jobs:
R -e 'install.packages("IRkernel")'
R -e 'IRkernel::installspec()'

- id: execute-integration
name: Execute integration notebook
run: |
jupyter nbconvert --execute --to notebook --inplace omics_types_integration/R/integration_notebook.ipynb

- id: execute-bioscales
name: Execute bioscales notebook
run: |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Notebooks that are ready for use and exploration.
- [Bio-Scales Biogeochemical MetaData](https://github.com/microbiomedata/nmdc_notebooks/tree/main/bioscales_biogeochemical_metadata)
- [NEON Soil Microbial Community Composition](https://github.com/microbiomedata/nmdc_notebooks/tree/main/taxonomic_dist_by_soil_layer)
- [Natural Organic Matter Composition by Sample Type](https://github.com/microbiomedata/nmdc_notebooks/tree/main/NOM_visualizations)
- [Omics Types Data Integration](https://github.com/microbiomedata/nmdc_notebooks/tree/main/NOM_visualizations/omics_types_integration)


## Overview
Expand Down
8 changes: 7 additions & 1 deletion libraries.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ library(lubridate)
library(GGally)
library(stringr)
library(ggExtra)
library(readr)
library(readr)
library(purrr)
library(tibble)
library(jsonlite)
library(KEGGREST)
library(circlize)
library(pathview)
1,242 changes: 1,242 additions & 0 deletions omics_types_integration/R/integration_notebook.ipynb

Large diffs are not rendered by default.

Binary file added omics_types_integration/R/ko00710.pathview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions omics_types_integration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Integrating Different Types of Omics Data

This folder includes two notebooks (in R and Python) that illustrate how metagenomic, metaproteomic, and metabolomic data from the same sample can be retrieved from the [NMDC-runtime API](https://api.microbiomedata.org/docs) and integrated using KEGG annotations.

## R
### TODO update links once the branch is merged into main
- [Static rendered Jupyter notebook](https://nbviewer.org/github/microbiomedata/nmdc_notebooks/blob/91-create-notebook-integrating-metag-metap-metab-data-r/omics_types_integration/R/integration_notebook.ipynb). This is the recommended way to interact with the notebook. _Viewing only, not editable_
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/microbiomedata/nmdc_notebooks/blob/91-create-notebook-integrating-metag-metap-metab-data-r/omics_types_integration/R/integration_notebook.ipynb). **Running this notebook in the colab interactive environment is not recommended due to long API calls** _You need a google account to use this option_

## Python
Coming soon!
Loading
Loading