News and Announcements » |
Description:
Collapse an OTU table based on values in a single column in the mapping file. For example, if you have 10 samples, five of which are from females and five of which are from males, you could use this script to collapse the ten samples into two corresponding based on their values in a ‘Sex’ column in your mapping file.
Usage: summarize_otu_by_cat.py [options]
Input Arguments:
Note
[REQUIRED]
[OPTIONAL]
Output:
Example:
Collapsed otu_table.txt on the ‘Sex’ column in map.txt and write the resulting OTU table to otu_table_by_sex.txt
summarize_otu_by_cat.py -c otu_table.txt -i map.txt -m Sex -o otu_table_by_sex.txt