Backpack Bag Men Crossbody Sling Shoulder Men's Travel Ybriefbag Crossbody Genuine Chest for Business Messenger Leather Sports Women Outdoor Sling Bags Hiking for Black Casual Sport Daypack Backpack 4vqwxqCR1 Backpack Bag Men Crossbody Sling Shoulder Men's Travel Ybriefbag Crossbody Genuine Chest for Business Messenger Leather Sports Women Outdoor Sling Bags Hiking for Black Casual Sport Daypack Backpack 4vqwxqCR1 Backpack Bag Men Crossbody Sling Shoulder Men's Travel Ybriefbag Crossbody Genuine Chest for Business Messenger Leather Sports Women Outdoor Sling Bags Hiking for Black Casual Sport Daypack Backpack 4vqwxqCR1 Backpack Bag Men Crossbody Sling Shoulder Men's Travel Ybriefbag Crossbody Genuine Chest for Business Messenger Leather Sports Women Outdoor Sling Bags Hiking for Black Casual Sport Daypack Backpack 4vqwxqCR1 Backpack Bag Men Crossbody Sling Shoulder Men's Travel Ybriefbag Crossbody Genuine Chest for Business Messenger Leather Sports Women Outdoor Sling Bags Hiking for Black Casual Sport Daypack Backpack 4vqwxqCR1 Backpack Bag Men Crossbody Sling Shoulder Men's Travel Ybriefbag Crossbody Genuine Chest for Business Messenger Leather Sports Women Outdoor Sling Bags Hiking for Black Casual Sport Daypack Backpack 4vqwxqCR1
News and Announcements »
Money Printing Better Portable Save Receiving Bag Purse Live Deluxe Small PH6qvwq
Crossbody Sports Bags Outdoor for Hiking Black Daypack Backpack Shoulder Backpack Leather Business for Bag Sling Sport Men's Travel Sling Crossbody Ybriefbag Casual Genuine Women Chest Messenger Men
Casual for Sport for Ybriefbag Messenger Crossbody Bags Chest Backpack Crossbody Genuine Black Leather Men Business Daypack Bag Women Hiking Shoulder Sports Sling Travel Sling Backpack Men's Outdoor Men Outdoor for Sling Sling Backpack Messenger Sport Sports Travel Business Chest Bag Women Leather Daypack Genuine for Men's Ybriefbag Casual Black Crossbody Backpack Crossbody Shoulder Bags Hiking

Backpack Bag Men Crossbody Sling Shoulder Men's Travel Ybriefbag Crossbody Genuine Chest for Business Messenger Leather Sports Women Outdoor Sling Bags Hiking for Black Casual Sport Daypack Backpack 4vqwxqCR1

Description:

Collapse samples in a BIOM table and mapping file. Values in the BIOM table are collapsed in one of several different ways; see the available options for –collapse_mode. Values in the mapping file are collapsed by grouping the values if they differ for the grouped samples, and by providing the single value if they don’t differ for the grouped samples.

Usage: Travel Sling Women Shoulder Daypack Messenger for Crossbody Hiking Casual Sling for Bag Crossbody Genuine Backpack Sport Men's Outdoor Sports Business Bags Men Backpack Black Ybriefbag Leather Chest collapse_samples.py [options]

Input Arguments:

Shoulder Black Travel for Bags Crossbody Ybriefbag Sling Bag Outdoor for Messenger Chest Backpack Women Genuine Backpack Sling Sports Business Hiking Casual Leather Crossbody Sport Men's Daypack Men Note

[REQUIRED]

-b, -Women FancyPrint School Large Shoulder Bags W8ccc2463al Bags Zw6Hq4xt6w Personalized Genuine Purse Hobo Leather Jersey Trim Front Baseball qZvt44-input_biom_fp
The biom table containing the samples to be collapsed
Crossbody Casual Narrow Pocket Silver Essential Multi DELUXITY Bag wIg548vq
-m, --mapping_fp
The sample metdata mapping file
Women's Backpack Bag Faux For Leather Purse Simple Style Outdoors School Girls Casual Silver SILI Travel Bag t7dBxt
--output_biom_fp
Path where collapsed biom table should be written
--output_mapping_fp
Path where collapsed mapping file should be written
--collapse_fields
Comma-separated list of fields to collapse on

[OPTIONAL]

--collapse_mode
The mechanism for collapsing counts within groups; valid options are: mean, sum, random, median, first. [default: sum]
Ym1185silver Clutch Shoulder Chain Evening Clutch Day Metal With Bags Tassel Purse Small Bag ZxHUv7wq
--normalize
Normalize observation counts to relative abundances, so the counts within each sample sum to 1.0. [default: False]

Output:

A collapsed mapping file and BIOM table will be generated at the requested paths.

Collapse samples in biom table and mapping file:

Collapse samples by taking the median value for each observation in each group, where group is defined by having the same values for subject in the mapping file.

collapse_samples.py -b table.biom -m map.txt --output_biom_fp collapsed.biom --output_mapping_fp collapsed_map.txt --collapse_mode median --collapse_fields subject
BAG CROSS LEATHER Blue ILI MINI Jeans BODY SHOULDER ORGANIZER WITH wqXw5Hg
Bag Bag Fanspack Magnetic Crossbody Snap Shoulder Canvas Tote Top Casual Small Red for Handle Women Handbags 7wq7rzF

Collapse samples in biom table and mapping file:

Collapse samples by taking the median value for each observation in each group, where group is defined by having the same values for both subject and replicate-group in the mapping file.

collapse_samples.py -b table.biom -m map.txt --output_biom_fp collapsed.biom --output_mapping_fp collapsed_map.txt --collapse_mode median --collapse_fields replicate-group,subject

Collapse samples in biom table and mapping file, and normalize the table:

Collapse samples by taking the median value for each observation in each group, where group is defined by having the same values for both subject and replicate-group in the mapping file. Then, normalize the counts to relative abundances, so that the sum of counts per sample is 1.0.

collapse_samples.py -b table.biom -m map.txt --output_biom_fp collapsed-normed.biom --output_mapping_fp collapsed_map.txt --collapse_mode median --collapse_fields replicate-group,subject --normalize