qiime2 / q2-metadata

BSD 3-Clause "New" or "Revised" License
3 stars 17 forks source link

add action supporting generation of randomized metadata groups #48

Closed gregcaporaso closed 2 years ago

gregcaporaso commented 2 years ago

Resolves #47

This allows users to create one or more ~randomized~ shuffled categorical sample metadata columns, with the number of groups and the count of samples assigned to each group matching that of the input metadata column.

An example of how this can be used with the Moving Pictures data is as follows.

qiime metadata shuffle-groups --m-metadata-file sample-metadata.tsv --m-metadata-column body-site --o-shuffled-groups rand-md.qza

qiime diversity alpha-group-significance --i-alpha-diversity core-metrics-results/faith_pd_vector.qza --m-metadata-file rand-md.qza sample-metadata.tsv --o-visualization core-metrics-results/ags.qzv

First, alpha-group-significance on the body-site column: Screen Shot 2022-08-11 at 12 24 14 PM


Next, on a randomized metadata column modeled on the body-site column: Screen Shot 2022-08-11 at 12 24 05 PM

gregcaporaso commented 2 years ago

On it.