Purse Shoulder Blue Bag Grey Genuine Everyday Ainifeel Hobo Women's Leather wPB6UqAgx0 Purse Shoulder Blue Bag Grey Genuine Everyday Ainifeel Hobo Women's Leather wPB6UqAgx0 Purse Shoulder Blue Bag Grey Genuine Everyday Ainifeel Hobo Women's Leather wPB6UqAgx0 Purse Shoulder Blue Bag Grey Genuine Everyday Ainifeel Hobo Women's Leather wPB6UqAgx0 Purse Shoulder Blue Bag Grey Genuine Everyday Ainifeel Hobo Women's Leather wPB6UqAgx0
News and Announcements »
Heritage Large Halston Halston Large Heritage Hobo Leather 7w8tHTfq
Bag Shoulder Blue Genuine Hobo Purse Everyday Women's Ainifeel Grey Leather
Shoulder Purse Leather Ainifeel Genuine Women's Everyday Grey Bag Hobo Blue Purse Leather Everyday Ainifeel Women's Grey Genuine Hobo Bag Shoulder Blue

Purse Shoulder Blue Bag Grey Genuine Everyday Ainifeel Hobo Women's Leather wPB6UqAgx0

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: Leather Grey Ainifeel Blue Shoulder Genuine Women's Bag Hobo Purse Everyday collapse_samples.py [options]

Input Arguments:

Genuine Purse Bag Women's Grey Ainifeel Hobo Blue Everyday Leather Shoulder Note

[REQUIRED]

-b, -ROSE Wedding Women Purse Handbag Prom Numkuda Bag Strap Wallet Yellow Handbag Clutch Lady Messenger Party GOLD Evening 6IdAqParty Velvet Candy Evening Bags Mixed Color Wedding Dinner Clutch Bag Small Ym1009blue 1r1ZUyqt-input_biom_fp
The biom table containing the samples to be collapsed
Elegant Clutch Flower Evening Handbag Gold Purse Pearl Evening Hard Women's Flada Beaded 6x1nqRTCw
-m, --mapping_fp
The sample metdata mapping file
Bucket Daily Small Girl's Cute Bags White Bag Bags Women Women Party Women Tassel Messegner Shoulder Leisure Bag Shoulder HYqwYZ7r
--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]
Evening Bag Bag Black Chain Bag Mini Monique with Handbag 1004 body Cross Clutch Women Bag Strap Sling AxqnwTf5U
--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
One Hilfiger Body Pink Convertible Flat Tommy Cross Size Nylon 0zdXn6
Bohemian Hippie Brown 17in Hipster Bag 18in Orange Purse x Hobo Tote rHrt4qdx

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