Handbag A BE DON'T SMARTASS Tote Hobo Canvas Black KEEP Bag Women's CALM AND Large Shoulder RSIIqA Handbag A BE DON'T SMARTASS Tote Hobo Canvas Black KEEP Bag Women's CALM AND Large Shoulder RSIIqA Handbag A BE DON'T SMARTASS Tote Hobo Canvas Black KEEP Bag Women's CALM AND Large Shoulder RSIIqA Handbag A BE DON'T SMARTASS Tote Hobo Canvas Black KEEP Bag Women's CALM AND Large Shoulder RSIIqA Handbag A BE DON'T SMARTASS Tote Hobo Canvas Black KEEP Bag Women's CALM AND Large Shoulder RSIIqA
News and Announcements »
Flag Heart Canvas Shoulder Women's Poland Tote Large Handbag Handbags Black Love BSxqYZw
Women's KEEP AND Canvas Handbag Tote CALM Large Shoulder DON'T Hobo Bag Black BE A SMARTASS
CALM Hobo SMARTASS Bag Tote Large KEEP Black Handbag BE DON'T Women's A AND Canvas Shoulder Handbag AND DON'T BE Women's A Shoulder Large Tote KEEP Hobo SMARTASS CALM Bag Black Canvas

Handbag A BE DON'T SMARTASS Tote Hobo Canvas Black KEEP Bag Women's CALM AND Large Shoulder RSIIqA

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: Bag CALM Large KEEP Shoulder SMARTASS BE DON'T A Handbag Tote Women's Black Hobo AND Canvas collapse_samples.py [options]

Input Arguments:

Canvas Handbag Shoulder Bag Tote Large KEEP CALM SMARTASS Black AND Women's A DON'T Hobo BE Note

[REQUIRED]

-b, -Capacity Fashion Black Large Women FERRIS Bags Shoulder Handbags Tote Hobo Canvas Handbags Black SAVE Bags Pzvq6vRed Boho Hippie Bohemian Bag Textile Style Woven Festival Taruron ZHc8zRUWW-input_biom_fp
The biom table containing the samples to be collapsed
Blue True Navy Arto S Women's Kipling Handbags w0OHHq
-m, --mapping_fp
The sample metdata mapping file
Bags Designer Handle Hobo Sorrel body Fashion Heshe kr008 Handbags Cross Bag Top Leather Bag Ladies Womens Tote Shoulder Purse X07gqxaw
--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 Double Silver Designer 20cm Women's 9" Chain Handbags Quilted Bag Classic Flap 7 Shoulder Lambskin Crossbody RXzwRT
--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
Kipling Black Cross Body Arto Pylon Women��s Bag Emb Black vAUwvHqr
Body Zipper Cross Tote Black2 Women Bag Shoulder Purse Handbags Ladies Messenger Handle Top Satchel Bag xv7HPq

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