展开

Beta多样性可视化

最后发布时间 : 2022-11-04 13:02:51 浏览量 :

主坐标分析PCoA

SampleIDGroup
KO1KO
KO2KO
KO3KO
KO4KO
KO5KO
KO6KO

metadata

bray_curtisKO1KO2KO3KO4KO5KO6OE1OE2OE3OE4OE5OE6WT1WT2WT3WT4WT5WT6
KO100.3090.3380.3020.3390.2770.330.3570.3330.3110.2890.3070.3130.3370.310.3190.3350.308
KO20.30900.3740.360.4360.3220.3220.3320.3410.3380.2970.3210.3070.3510.2980.2990.3530.313
KO30.3380.37400.3360.3390.3460.4270.4150.3750.3680.3610.4120.3870.370.380.3620.3590.338
KO40.3020.360.33600.3410.2830.4050.4120.3750.3520.3450.3930.3440.3430.3690.360.3560.347
KO50.3390.4360.3390.34100.3390.4750.4480.440.4040.3920.4630.3960.3670.4140.4130.3710.384
KO60.2770.3220.3460.2830.33900.380.410.370.3390.320.3590.3470.3540.3550.3450.3470.353

bray_curtis

suppressWarnings(suppressMessages(library(amplicon)))
suppressMessages(library(tidyverse))
distance_mat = read.table("https://gitee.com/bioinfoFungi/amplicon/raw/master/results/beta/bray_curtis.txt", header=T, row.names=1, sep="\t", comment.char="", stringsAsFactors = F)
metadata = read.table("https://gitee.com/bioinfoFungi/amplicon/raw/master/data/metadata.txt", header=T, row.names=1, sep="\t", comment.char="", stringsAsFactors = F)
beta_pcoa(distance_mat, metadata, groupID = "Group", label=T)

图片alt

图片alt