Skip to content

Commit

Permalink
Specify sample_id for rel_abundance matrix in ord techniques
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOafidian authored Mar 5, 2024
1 parent 81e6c66 commit 290d861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/adders_samples.R
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ add_ord <- function(ta, distance="bray", method="pcoa", dims=2, binary=FALSE, ..
}

# make relative abundance matrix
rel_abundance_matrix <- rel_abundance_matrix(ta)
rel_abundance_matrix <- rel_abundance_matrix(ta, sample_name=sample_id, taxon_name=taxon_id)

# make Bray-Curtis distance matrix
dist_matrix = vegan::vegdist(rel_abundance_matrix, method = distance, binary=binary)
Expand Down

0 comments on commit 290d861

Please sign in to comment.