joey711 / phyloseq

phyloseq is a set of classes, wrappers, and tools (in R) to make it easier to import, store, and analyze phylogenetic sequencing data; and to reproducibly share that data and analysis with others. See the phyloseq front page:
http://joey711.github.io/phyloseq/
569 stars 187 forks source link

Filter ASV according to each group #1617

Open YuZhang-learner opened 1 year ago

YuZhang-learner commented 1 year ago

I have a Phyloseq file where the samples are divided into many groups, each with 4-8 replicates. I want to filter ASVs: if an ASV is present in more than 50% of the samples in a group, I keep it. How should I do in the phyloseq?