filter_keep_otus_by_sample¶
This filter allows for the removal of sequences not contained within a user- specified list of Sample IDs. This script examines each OTU and removes any sequences not originating from the specified set of allowed Sample IDs. Any empty OTUs that result are removed.
usage: filter_keep_otus_by_sample.py [-h] -i OTU_MAP -k SAMPLES_TO_KEEP_FP -o OUTPUT_OTU_MAP_FP [-v]
Required Arguments¶
-
-iOTU_MAP,--otu_mapOTU_MAP¶ Path to the input OTU map (i.e., the output from pick_otus.py)
-
-kSAMPLES_TO_KEEP_FP,--samples_to_keep_fpSAMPLES_TO_KEEP_FP¶ Path to the file containing Sample IDs to keep in the new OTU map. One Sample ID per line.
-
-oOUTPUT_OTU_MAP_FP,--output_otu_map_fpOUTPUT_OTU_MAP_FP¶ Path to the output filtered OTU map