ANCOMBC icon indicating copy to clipboard operation
ANCOMBC copied to clipboard

Errer on running feature.table_pre_process

Open khb3850 opened this issue 2 years ago • 5 comments

Hello,

I'm running on the ANCOM-BC tutorial. I got the error "could not find function "feature.table_pre_process". Do I need any more installation of prerequisites?

I attached my code first.

library(ANCOMBC) library(phyloseq) library(testthat) library(tidyverse) library(microbiome) library(rmeta) library(nlme) library(compositions)

Load example data

data(dietswap) pseq = dietswap n_taxa = ntaxa(pseq) n_samp = nsamples(pseq)

Metadata

meta_data = meta(pseq)

Taxonomy table

taxonomy = tax_table(pseq)

Absolute abundances

otu_absolute = abundances(pseq)

Pre-processing

feature.table = otu_absolute; sample.var = "sample"; group.var = "bmi_group"; zero.cut = 0.90; lib.cut = 1000; neg.lb = TRUE pre.process = feature.table_pre_process(feature.table, meta_data, sample.var, group.var, zero.cut, lib.cut, neg.lb)

R version is 4.2.1 patched.

Sincerely,

Hanbeen Kim

khb3850 avatar Dec 14 '22 14:12 khb3850