Skip to content

Commit

Permalink
minor fixes in the appearance of the plots
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Springer committed Mar 25, 2024
1 parent b4caf00 commit a062c5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plotting/functions_plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,9 @@ f_compute_PCoA <- function(meta_df, mat, method = "bray", threshold_for_prevalen
message(nrow(relAB_sel), " out of ", nrow(mat_clean), " features passed prevalence cutoff")

# remove empty columns
relAB_sel <- relAB_sel[, colSums(relAB_sel) > 0]

if (method == "bray") {
relAB_sel <- relAB_sel[, colSums(relAB_sel) > 0]
}
# Compute Bray-Curtis distances
dist <- vegan::vegdist(x = t(relAB_sel), method = method)
pco <- labdsv::pco(dis = dist, k = 2)
Expand Down

0 comments on commit a062c5b

Please sign in to comment.