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.biom on the ‘Treatment’ column in Fasting_Map.txt and write the resulting OTU table to otu_table_by_treatment.biom
summarize_otu_by_cat.py -i otu_table.biom -m Fasting_Map.txt -c Treatment -o otu_table_by_treatment.biom
Combine two categories and collapse otu_table.biom on the 'Sex' and 'Age' columns in map.txt and write the resulting OTU table to otu_table_by_sex_and_age.txt
summarize_otu_by_cat.py -i otu_table.biom -m Fasting_Map.txt -c 'Treatment&&DOB' -o otu_table_by_sex_and_age.txt