Skip to content

Instantly share code, notes, and snippets.

@lwaldron
Created July 3, 2023 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lwaldron/05feaa569ac7a312be4f252ba957a45a to your computer and use it in GitHub Desktop.
Save lwaldron/05feaa569ac7a312be4f252ba957a45a to your computer and use it in GitHub Desktop.
Compare lefser output with relab and counts
suppressPackageStartupMessages(library(curatedMetagenomicData))
zeller <- curatedMetagenomicData::curatedMetagenomicData("Zeller.+relative_abundance", counts = FALSE, dryrun = FALSE)[[1]]
zellercounts <- curatedMetagenomicData::curatedMetagenomicData("Zeller.+relative_abundance", counts = TRUE, dryrun = FALSE)[[1]]
zeller <- zeller[, zeller$study_condition != "adenoma"]
zellercounts <- zellercounts[, zellercounts$study_condition != "adenoma"]
suppressPackageStartupMessages(library(lefser))
res_group <- lefser(zeller, groupCol = "study_condition")
res_group_counts <- lefser(zellercounts, groupCol = "study_condition")
head(res_group)
head(res_group_counts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment