All Projects → lch14forever → microbiomeViz

lch14forever / microbiomeViz

Licence: other
Visualize microbiome data with black magic ggtree

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to microbiomeViz

ggtrack
restlessdata.com.au/ggtrack
Stars: ✭ 39 (-29.09%)
Mutual labels:  ggplot2
dataviz
Course materials for Kieran Healy's rstudio::conf 2020 data visualization workshop
Stars: ✭ 75 (+36.36%)
Mutual labels:  ggplot2
BuenColors
R package of colors for the Buenrostro Lab
Stars: ✭ 53 (-3.64%)
Mutual labels:  ggplot2
Stata-schemes
Here you will find various ready-to-use Stata schemes.
Stars: ✭ 85 (+54.55%)
Mutual labels:  ggplot2
ggfx
Filters and Shaders for 'ggplot2'
Stars: ✭ 150 (+172.73%)
Mutual labels:  ggplot2
figpatch
Easily Arrange Images with Patchwork Alongside ggplot2 Figures.
Stars: ✭ 46 (-16.36%)
Mutual labels:  ggplot2
R4Econ
R Code Examples Multi-dimensional/Panel Data
Stars: ✭ 16 (-70.91%)
Mutual labels:  ggplot2
DataViz-Teaching
📈 Visualizations for DataViz Teaching
Stars: ✭ 29 (-47.27%)
Mutual labels:  ggplot2
MSG-Book
📖 现代统计图形(已由人民邮电出版社出版) Modern Statistical Graphics
Stars: ✭ 95 (+72.73%)
Mutual labels:  ggplot2
scclusteval
Single Cell Cluster Evaluation
Stars: ✭ 57 (+3.64%)
Mutual labels:  ggplot2
melonnpan
Model-based Genomically Informed High-dimensional Predictor of Microbial Community Metabolic Profiles
Stars: ✭ 20 (-63.64%)
Mutual labels:  microbiome
platetools
An R package for plotting microtitre plates
Stars: ✭ 45 (-18.18%)
Mutual labels:  ggplot2
MicEco
Various functions for analysis of microbial community data
Stars: ✭ 25 (-54.55%)
Mutual labels:  microbiome
basemapR
Contains functions to add base maps to ggplot2 maps
Stars: ✭ 14 (-74.55%)
Mutual labels:  ggplot2
gglmannotate
📈Annotate a ggplot with a description of a linear model
Stars: ✭ 24 (-56.36%)
Mutual labels:  ggplot2
rockthemes
R colour palettes based on classic rock album covers.
Stars: ✭ 30 (-45.45%)
Mutual labels:  ggplot2
cusumcharter
Easier CUSUM control charts. Returns simple CUSUM statistics, CUSUMs with control limit calculations, and function to generate faceted CUSUM Control Charts
Stars: ✭ 17 (-69.09%)
Mutual labels:  ggplot2
ggchicklet
🀫 Create Chicklet (Rounded Segmented Column) Charts
Stars: ✭ 130 (+136.36%)
Mutual labels:  ggplot2
SWDchallenge
📈 My contributions to the #SWDchallenge
Stars: ✭ 20 (-63.64%)
Mutual labels:  ggplot2
ggbash
A simpler ggplot2 syntax, saving half of your typing.
Stars: ✭ 79 (+43.64%)
Mutual labels:  ggplot2

microbiomeViz -- An R package for visualizing microbiome data

Authors:

Chenhao Li, Guangchuang Yu, Chenghao Zhu

Description:

  • parse taxonomic profiling table
  • GraPhlAn like tree visualization and annotation
  • support cladograme visualization from phyloseq objects and .biom files

Showcase:

Example:

Install:

## ## run the following command first if you don't have ggtree installed.
## setRepositories(ind=1:2)
devtools::install_github("lch14forever/microbiomeViz")

Parse a MetaPhlAn table

library(microbiomeViz)
data("SRS014459_Stool_profile")
tr <- parseMetaphlanTSV(SRS014459_Stool_profile)

Create a backbone

p <- tree.backbone(tr)
p

Add annotation

anno.data <- data.frame(node=c("g__Roseburia", "c__Clostridia", "s__Bacteroides_ovatus"),
                       color='red', stringsAsFactors = FALSE)
p <- clade.anno(p, anno.data)
p

From phyloseq objects

library(phyloseq)
data("GlobalPatterns")
GP = GlobalPatterns

GP = transform_sample_counts(GlobalPatterns, function(otu) otu/sum(otu))
GP = filter_taxa(GP, function(x) max(x)>=0.01,TRUE)
GP = fix_duplicate_tax(GP)

tr = parsePhyloseq(GP)
p = tree.backbone(tr, size=1)

From .biom files

The phyloseq package can import the otu table from .biom files.

rich_dense_biom  = system.file("extdata", "rich_dense_otu_table.biom",  package="phyloseq")
rich_dense = import_biom(rich_dense_biom, parseFunction=parse_taxonomy_greengenes)
tr = parsePhyloseq(rich_dense)
p = tree.backbone(tr, size=1)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].