| #SampleID | Treatment | Rep | Season | Shannon |
|---|
qiime diversity core-metrics-phylogenetic \ --i-phylogeny rooted-tree.qza \ --i-table table-no-contam.qza \ --p-sampling-depth 50000 \ --m-metadata-file my_metadata.txt \ --output-dir core-metrics/
ggplot(alpha_df,
aes(Treatment, Shannon,
fill=Treatment)) +
geom_boxplot(alpha=.5) +
geom_jitter(width=.1, size=2) +
theme_bw()
library(vegan) dist_mat <- read.delim( "bray_distance/distance-matrix.tsv", row.names=1) dist_obj <- as.dist(dist_mat) adon <- adonis2( dist_obj ~ Treatment, data = meta, permutations = 999) # R² = variance explained # p < 0.05 → significant
| #SampleID | Bay | Season | Fraction | Salinity | Temp °C |
|---|---|---|---|---|---|
| CP_Sp_FL_01 | CP | Spring | FL | 8.2 | 14.3 |
| CP_Su_PA_01 | CP | Summer | PA | 12.7 | 26.8 |
| DE_Su_FL_01 | DE | Summer | FL | 28.6 | 25.4 |
| DE_Fa_PA_01 | DE | Fall | PA | 30.2 | 17.8 |
#SampleID, sample-id, or
id
Sample_ID not
Sample ID
# — rows starting with # are treated as comments
#q2:types row before reading into R with as.numeric()
setdiff(meta$SampleID, colnames(table)) should return character(0)
qiime metadata tabulate to check column types after import
#SampleID Treatment pH #q2:types categorical numeric S1a NC 6.8 S1b NC 6.7
as.numeric() in R.