Skip to content

Instantly share code, notes, and snippets.

@lwaldron
Last active March 18, 2024 10:34
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/535179b86235fa86d3e885a8e7948a21 to your computer and use it in GitHub Desktop.
Save lwaldron/535179b86235fa86d3e885a8e7948a21 to your computer and use it in GitHub Desktop.
lefser on pathway abundances using ZellerG_2014 from cMD
suppressPackageStartupMessages({
library(lefser)
library(curatedMetagenomicData)
})
zeller <-
curatedMetagenomicData("ZellerG_2014.pathway_abundance",
counts = TRUE,
dryrun = FALSE)[[1]]
zeller <- zeller[, zeller$study_condition != "adenoma"]
zeller <- relativeAb(zeller)
lefse_results1 <-
lefser(
zeller,
groupCol = "study_condition",
kruskal.threshold = 0.05,
lda.threshold = 2
)
head(lefse_results1)
lefse_results2 <-
lefser(
zeller,
groupCol = "study_condition",
kruskal.threshold = 1e-6,
lda.threshold = 2
)
head(lefse_results2)
lefse_results3 <-
lefser(
zeller,
groupCol = "study_condition",
kruskal.threshold = 0.05,
lda.threshold = 2000
head(lefse_results3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment