tax_circlize | R Documentation |
Input taxonomy composition, and metadata (SampleID and groupID). Then select top N high abundance taxonomy and group other low abundance. When Select samples can draw sample composition by facet groups. If used group can show mean of each group. Finally, return a ggplot2 object.
tax_circlize(tax_sum, metadata, topN = 5, groupID = "Group")
tax_sum |
composition matrix, like OTU table and rowname is taxonomy, typical output of usearch -sintax_summary; |
metadata |
matrix or dataframe, including sampleID and groupID; |
topN |
Top N taxonomy to show, default 8, alternative 4, 6, 10 ...; |
groupID |
column name for groupID; |
style |
group or sample, default group |
sorted |
Legend sorted type, default abundance, alternative alphabet |
By default, returns top 8 taxonomy and group mean stackplot The available style include the following:
group: group mean circlize
sample: each sample circlize
ggplot2 object.
Contact: Yong-Xin Liu metagenome@126.com
Yong-Xin Liu, Yuan Qin, Tong Chen, Meiping Lu, Xubo Qian, Xiaoxuan Guo & Yang Bai. A practical guide to amplicon and metagenomic analysis of microbiome data. Protein Cell, 2020, DOI: https://doi.org/10.1007/s13238-020-00724-8
Jingying Zhang, Yong-Xin Liu, Na Zhang, Bin Hu, Tao Jin, Haoran Xu, Yuan Qin, Pengxu Yan, Xiaoning Zhang, Xiaoxuan Guo, Jing Hui, Shouyun Cao, Xin Wang, Chao Wang, Hui Wang, Baoyuan Qu, Guangyi Fan, Lixing Yuan, Ruben Garrido-Oter, Chengcai Chu & Yang Bai. NRT1.1B is associated with root microbiota composition and nitrogen use in field-grown rice. Nature Biotechnology, 2019(37), 6:676-684, DOI: https://doi.org/10.1038/s41587-019-0104-4
tax_circlize
# Taxonomy table in phylum level, rownames is Phylum, colnames is SampleID
data(tax_phylum)
# metadata, include SampleID, Group and Site
data(metadata)
# Set 4 parameters: set top 5 taxonomy, group by "Group"
tax_circlize(tax_sum = tax_phylum, metadata, topN = 5, groupID = "Group")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.