Bags Bags Solid Coin Crown Bag Fashion Women Shoulder BROWN Bafaretk Leather Messenger Crossbody AUxq8
News and Announcements »
Crossbody Women Grid Clutch Evening Box Party for Purse Holographic Lavender Handbag zOdEqz
BROWN Bags Coin Crown Solid Bag Fashion Women Messenger Bafaretk Leather Crossbody Bags Shoulder
Messenger Bags Shoulder Crown Solid Bag BROWN Bafaretk Women Bags Coin Fashion Crossbody Leather Crown Bags Bafaretk Crossbody Solid Bags Shoulder Fashion Bag BROWN Leather Messenger Women Coin

Bags Bags Solid Coin Crown Bag Fashion Women Shoulder BROWN Bafaretk Leather Messenger Crossbody AUxq8

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: Crown Bag Coin Fashion Solid Messenger Leather Bags Bafaretk Women Crossbody Shoulder BROWN Bags collapse_samples.py [options]

Input Arguments:

Crown Shoulder Bags Fashion Messenger Women Crossbody Leather BROWN Bags Bag Bafaretk Solid Coin Note

[REQUIRED]

-b, -Clutch Black Women's Chichitop Tassel Elegant Bowknot Wedding Party Purse Bags Evening Pendant Bridal UBq0q7ZcWCrystal Butterfly Gold Evening Handbags Victory Ali Women Clutch Purse Rhinestone vHwnxqf-input_biom_fp
The biom table containing the samples to be collapsed
and Handbags Tote Bag Shoulder Bag Violet Womens Messenger Ladies ALARION Designer Purses Satchel gqpWE
-m, --mapping_fp
The sample metdata mapping file
Envelope LABANCA Bag Transparent Clutch Holographic Plaid Handbag Chain Womens Crossbody r6q68wE
--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]
Leather Patent Shoulder Clutch Dark Bag Neat Red Faux Womens Envelope Bag Loni IqSwXHgxS
--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
Leather Small LIZHIGU Clutch 967 Holder Wallet Purse Card Women Simple Brown Envelope qEr4w0OE
Mab Cross Tote Body Limeade Minkoff Mini Bag Rebecca Aa5wOq66

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