knitr::opts_knit$set(root.dir = "../")
library(magrittr)
library(ggplot2)
smar::sourceDir("R/")
set.seed(1)
load("../data/genera.RData")
physeq <- physeq_genera %>% 
  phyloseq::subset_samples(dataset_name == "MucosalIBD") %>% 
  smar::prune_taxaSamples(flist_taxa = genefilter::kOverA(k = 5, A = 1))
mat_X_count <- smar::otu_table2(physeq)
mat_X_p <- apply(mat_X_count, 2, function(x) x / sum(x))


syma-research/CRT_microbiome documentation built on July 8, 2022, 8 a.m.