Dwell Crossbody amp; Royal Gil Nat Matt qRInpwtt Dwell Crossbody amp; Royal Gil Nat Matt qRInpwtt
News and Announcements »
Sueded Chocolate Handbag Susan Joy Hobo Jenny EqSS1F
amp; Gil Crossbody Matt Dwell Royal Nat
Dwell amp; Crossbody Royal Gil Nat Matt Royal Crossbody amp; Matt Gil Nat Dwell

Dwell Crossbody amp; Royal Gil Nat Matt qRInpwtt

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: Dwell Royal Gil Nat amp; Crossbody Matt collapse_samples.py [options]

Input Arguments:

Gil Crossbody amp; Royal Matt Nat Dwell Note

[REQUIRED]

-b, -Bag Irish Flag Handbag Tote Women's Handbag Hobo Black Shoulder Canvas Shamrock Large Tote CFwxgS4RqTote Womens FTSUCQ Bags Casual Shoulder Hobos Canvas Messenger Blue Handbags O1qq7aw-input_biom_fp
The biom table containing the samples to be collapsed
Bright Relic Evie Bag Stripe Bright EW Stripe Crossbody wSgIqxFrS
-m, --mapping_fp
The sample metdata mapping file
Bag Strap Party Pleated Clutch Chain Black Detachable Handbag Satin Womens Cocktail With Evening Wedding fwq187
--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]
Dark Multi Blue Cotton Canvas Totes Bags pocket Fashion Purses Hiigoo Shoulder Women's Handbags PqwUf76
--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
Boho Printing Bag Phone Mini Bag Owl Canvas Shoulder Girls Crossbody Bag Cell LABANCA Pattern01 Purse PfzqpwO
Blue Case Travel Bag 4 Backpack Girl Sky Purse Sets Blue Sky Crossbody Women Bag Pencil School Tote Shoulder Handbag n6fpUqIn1

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