LangilleLab / microbiome_helper

A repository of bioinformatic scripts, SOPs, and tutorials for analyzing microbiome data.
GNU General Public License v3.0
433 stars 205 forks source link

Added filter_feature_table.R #18

Closed gavinmdouglas closed 6 years ago

gavinmdouglas commented 6 years ago

filter_feature_table.R reads in tab-delimited files with samples as columns and features as rows. It assumes that the first N columns contain the feature information (N can be specified with -f). Features can be filtered either by the proportion of samples that have non-zero observations (--prop) and by and matching strings to the feature description columns (--exclude).

For instance, users might want to specify --exclude "Human Diseases" to screen out all KEGG Pathways within that hierarchy.

mlangill commented 6 years ago

Looks good to me!