Mercurial > repos > q2d2 > qiime2__feature_table__split
changeset 0:2d32c53669d7 draft
planemo upload for repository https://github.com/qiime2/galaxy-tools/tree/main/tools/suite_qiime2__feature_table commit 389df0134cd0763dcf02aac6e623fc15f8861c1e
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qiime2__feature_table__split.xml Thu Apr 25 21:12:19 2024 +0000 @@ -0,0 +1,84 @@ +<?xml version='1.0' encoding='utf-8'?> +<!-- +Copyright (c) 2024, QIIME 2 development team. + +Distributed under the terms of the Modified BSD License. (SPDX: BSD-3-Clause) +--> +<!-- +This tool was automatically generated by: + q2galaxy (version: 2024.2.1) +for: + qiime2 (version: 2024.2.0) +--> +<tool name="qiime2 feature-table split" id="qiime2__feature_table__split" version="2024.2.2+q2galaxy.2024.2.1" profile="22.05" license="BSD-3-Clause"> + <description>Split one feature table into many</description> + <requirements> + <container type="docker">quay.io/qiime2/amplicon:2024.2</container> + </requirements> + <version_command>q2galaxy version feature_table</version_command> + <command detect_errors="exit_code">q2galaxy run feature_table split '$inputs'</command> + <configfiles> + <inputs name="inputs" data_style="staging_path_and_source_path"/> + </configfiles> + <inputs> + <param name="table" type="data" format="qza" label="table: FeatureTable[Frequency¹ | RelativeFrequency² | PresenceAbsence³ | Composition⁴]" help="[required] The table to split."> + <options options_filter_attribute="metadata.semantic_type"> + <filter type="add_value" value="FeatureTable[Composition]"/> + <filter type="add_value" value="FeatureTable[PresenceAbsence]"/> + <filter type="add_value" value="FeatureTable[Frequency]"/> + <filter type="add_value" value="FeatureTable[RelativeFrequency]"/> + </options> + <validator type="expression" message="Incompatible type">hasattr(value.metadata, "semantic_type") and value.metadata.semantic_type in ['FeatureTable[Composition]', 'FeatureTable[Frequency]', 'FeatureTable[PresenceAbsence]', 'FeatureTable[RelativeFrequency]']</validator> + </param> + <conditional name="metadata"> + <param name="type" type="select" label="metadata: MetadataColumn[Categorical]" help="[required] A column defining the groups. Each unique value will define a split feature table."> + <option value="tsv" selected="true">Metadata from TSV</option> + <option value="qza">Metadata from Artifact</option> + </param> + <when value="tsv"> + <param name="source" type="data" format="tabular,qiime2.tabular" label="Metadata Source"/> + <param name="column" type="data_column" label="Column Name" data_ref="source" use_header_names="true"> + <validator type="expression" message="The first column cannot be selected (they are IDs).">value != "1"</validator> + </param> + </when> + <when value="qza"> + <param name="source" type="data" format="qza" label="Metadata Source"/> + <param name="column" type="text" label="Column Name"> + <validator type="empty_field"/> + </param> + </when> + </conditional> + <section name="__q2galaxy__GUI__section__extra_opts__" title="Click here for additional options"> + <param name="filter_empty_features" type="boolean" truevalue="__q2galaxy__::literal::True" falsevalue="__q2galaxy__::literal::False" checked="true" label="filter_empty_features: Bool" help="[default: Yes] If true, features which are not present in a split feature table are dropped."/> + </section> + </inputs> + <outputs> + <collection name="tables" type="list"> + <discover_datasets directory="tables" pattern="__name_and_ext__"/> + </collection> + </outputs> + <tests/> + <help> +QIIME 2: feature-table split +============================ +Split one feature table into many + + +Outputs: +-------- +:tables.qza: Directory where feature tables split based on metadata values should be written. + +| + +Description: +------------ +Splits one feature table into many feature tables, where splits are defined by values in metadata column. + + +| + +</help> + <citations> + <citation type="doi">10.1038/s41587-019-0209-9</citation> + </citations> +</tool>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/filter_samples.test0.sample-metadata.tsv Thu Apr 25 21:12:19 2024 +0000 @@ -0,0 +1,36 @@ +sample-id barcode-sequence body-site year month day subject reported-antibiotic-usage days-since-experiment-start +#q2:types categorical categorical numeric numeric numeric categorical categorical numeric +L1S8 AGCTGACTAGTC gut 2008 10 28 subject-1 Yes 0 +L1S57 ACACACTATGGC gut 2009 1 20 subject-1 No 84 +L1S76 ACTACGTGTGGT gut 2009 2 17 subject-1 No 112 +L1S105 AGTGCGATGCGT gut 2009 3 17 subject-1 No 140 +L2S155 ACGATGCGACCA left palm 2009 1 20 subject-1 No 84 +L2S175 AGCTATCCACGA left palm 2009 2 17 subject-1 No 112 +L2S204 ATGCAGCTCAGT left palm 2009 3 17 subject-1 No 140 +L2S222 CACGTGACATGT left palm 2009 4 14 subject-1 No 168 +L3S242 ACAGTTGCGCGA right palm 2008 10 28 subject-1 Yes 0 +L3S294 CACGACAGGCTA right palm 2009 1 20 subject-1 No 84 +L3S313 AGTGTCACGGTG right palm 2009 2 17 subject-1 No 112 +L3S341 CAAGTGAGAGAG right palm 2009 3 17 subject-1 No 140 +L3S360 CATCGTATCAAC right palm 2009 4 14 subject-1 No 168 +L5S104 CAGTGTCAGGAC tongue 2008 10 28 subject-1 Yes 0 +L5S155 ATCTTAGACTGC tongue 2009 1 20 subject-1 No 84 +L5S174 CAGACATTGCGT tongue 2009 2 17 subject-1 No 112 +L5S203 CGATGCACCAGA tongue 2009 3 17 subject-1 No 140 +L5S222 CTAGAGACTCTT tongue 2009 4 14 subject-1 No 168 +L1S140 ATGGCAGCTCTA gut 2008 10 28 subject-2 Yes 0 +L1S208 CTGAGATACGCG gut 2009 1 20 subject-2 No 84 +L1S257 CCGACTGAGATG gut 2009 3 17 subject-2 No 140 +L1S281 CCTCTCGTGATC gut 2009 4 14 subject-2 No 168 +L2S240 CATATCGCAGTT left palm 2008 10 28 subject-2 Yes 0 +L2S309 CGTGCATTATCA left palm 2009 1 20 subject-2 No 84 +L2S357 CTAACGCAGTCA left palm 2009 3 17 subject-2 No 140 +L2S382 CTCAATGACTCA left palm 2009 4 14 subject-2 No 168 +L3S378 ATCGATCTGTGG right palm 2008 10 28 subject-2 Yes 0 +L4S63 CTCGTGGAGTAG right palm 2009 1 20 subject-2 No 84 +L4S112 GCGTTACACACA right palm 2009 3 17 subject-2 No 140 +L4S137 GAACTGTATCTC right palm 2009 4 14 subject-2 No 168 +L5S240 CTGGACTCATAG tongue 2008 10 28 subject-2 Yes 0 +L6S20 GAGGCTCATCAT tongue 2009 1 20 subject-2 No 84 +L6S68 GATACGTCCTGA tongue 2009 3 17 subject-2 No 140 +L6S93 GATTAGCACTCT tongue 2009 4 14 subject-2 No 168
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/filter_samples.test1.sample-metadata.tsv Thu Apr 25 21:12:19 2024 +0000 @@ -0,0 +1,36 @@ +sample-id barcode-sequence body-site year month day subject reported-antibiotic-usage days-since-experiment-start +#q2:types categorical categorical numeric numeric numeric categorical categorical numeric +L1S8 AGCTGACTAGTC gut 2008 10 28 subject-1 Yes 0 +L1S57 ACACACTATGGC gut 2009 1 20 subject-1 No 84 +L1S76 ACTACGTGTGGT gut 2009 2 17 subject-1 No 112 +L1S105 AGTGCGATGCGT gut 2009 3 17 subject-1 No 140 +L2S155 ACGATGCGACCA left palm 2009 1 20 subject-1 No 84 +L2S175 AGCTATCCACGA left palm 2009 2 17 subject-1 No 112 +L2S204 ATGCAGCTCAGT left palm 2009 3 17 subject-1 No 140 +L2S222 CACGTGACATGT left palm 2009 4 14 subject-1 No 168 +L3S242 ACAGTTGCGCGA right palm 2008 10 28 subject-1 Yes 0 +L3S294 CACGACAGGCTA right palm 2009 1 20 subject-1 No 84 +L3S313 AGTGTCACGGTG right palm 2009 2 17 subject-1 No 112 +L3S341 CAAGTGAGAGAG right palm 2009 3 17 subject-1 No 140 +L3S360 CATCGTATCAAC right palm 2009 4 14 subject-1 No 168 +L5S104 CAGTGTCAGGAC tongue 2008 10 28 subject-1 Yes 0 +L5S155 ATCTTAGACTGC tongue 2009 1 20 subject-1 No 84 +L5S174 CAGACATTGCGT tongue 2009 2 17 subject-1 No 112 +L5S203 CGATGCACCAGA tongue 2009 3 17 subject-1 No 140 +L5S222 CTAGAGACTCTT tongue 2009 4 14 subject-1 No 168 +L1S140 ATGGCAGCTCTA gut 2008 10 28 subject-2 Yes 0 +L1S208 CTGAGATACGCG gut 2009 1 20 subject-2 No 84 +L1S257 CCGACTGAGATG gut 2009 3 17 subject-2 No 140 +L1S281 CCTCTCGTGATC gut 2009 4 14 subject-2 No 168 +L2S240 CATATCGCAGTT left palm 2008 10 28 subject-2 Yes 0 +L2S309 CGTGCATTATCA left palm 2009 1 20 subject-2 No 84 +L2S357 CTAACGCAGTCA left palm 2009 3 17 subject-2 No 140 +L2S382 CTCAATGACTCA left palm 2009 4 14 subject-2 No 168 +L3S378 ATCGATCTGTGG right palm 2008 10 28 subject-2 Yes 0 +L4S63 CTCGTGGAGTAG right palm 2009 1 20 subject-2 No 84 +L4S112 GCGTTACACACA right palm 2009 3 17 subject-2 No 140 +L4S137 GAACTGTATCTC right palm 2009 4 14 subject-2 No 168 +L5S240 CTGGACTCATAG tongue 2008 10 28 subject-2 Yes 0 +L6S20 GAGGCTCATCAT tongue 2009 1 20 subject-2 No 84 +L6S68 GATACGTCCTGA tongue 2009 3 17 subject-2 No 140 +L6S93 GATTAGCACTCT tongue 2009 4 14 subject-2 No 168
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/filter_samples.test2.sample-metadata.tsv Thu Apr 25 21:12:19 2024 +0000 @@ -0,0 +1,36 @@ +sample-id barcode-sequence body-site year month day subject reported-antibiotic-usage days-since-experiment-start +#q2:types categorical categorical numeric numeric numeric categorical categorical numeric +L1S8 AGCTGACTAGTC gut 2008 10 28 subject-1 Yes 0 +L1S57 ACACACTATGGC gut 2009 1 20 subject-1 No 84 +L1S76 ACTACGTGTGGT gut 2009 2 17 subject-1 No 112 +L1S105 AGTGCGATGCGT gut 2009 3 17 subject-1 No 140 +L2S155 ACGATGCGACCA left palm 2009 1 20 subject-1 No 84 +L2S175 AGCTATCCACGA left palm 2009 2 17 subject-1 No 112 +L2S204 ATGCAGCTCAGT left palm 2009 3 17 subject-1 No 140 +L2S222 CACGTGACATGT left palm 2009 4 14 subject-1 No 168 +L3S242 ACAGTTGCGCGA right palm 2008 10 28 subject-1 Yes 0 +L3S294 CACGACAGGCTA right palm 2009 1 20 subject-1 No 84 +L3S313 AGTGTCACGGTG right palm 2009 2 17 subject-1 No 112 +L3S341 CAAGTGAGAGAG right palm 2009 3 17 subject-1 No 140 +L3S360 CATCGTATCAAC right palm 2009 4 14 subject-1 No 168 +L5S104 CAGTGTCAGGAC tongue 2008 10 28 subject-1 Yes 0 +L5S155 ATCTTAGACTGC tongue 2009 1 20 subject-1 No 84 +L5S174 CAGACATTGCGT tongue 2009 2 17 subject-1 No 112 +L5S203 CGATGCACCAGA tongue 2009 3 17 subject-1 No 140 +L5S222 CTAGAGACTCTT tongue 2009 4 14 subject-1 No 168 +L1S140 ATGGCAGCTCTA gut 2008 10 28 subject-2 Yes 0 +L1S208 CTGAGATACGCG gut 2009 1 20 subject-2 No 84 +L1S257 CCGACTGAGATG gut 2009 3 17 subject-2 No 140 +L1S281 CCTCTCGTGATC gut 2009 4 14 subject-2 No 168 +L2S240 CATATCGCAGTT left palm 2008 10 28 subject-2 Yes 0 +L2S309 CGTGCATTATCA left palm 2009 1 20 subject-2 No 84 +L2S357 CTAACGCAGTCA left palm 2009 3 17 subject-2 No 140 +L2S382 CTCAATGACTCA left palm 2009 4 14 subject-2 No 168 +L3S378 ATCGATCTGTGG right palm 2008 10 28 subject-2 Yes 0 +L4S63 CTCGTGGAGTAG right palm 2009 1 20 subject-2 No 84 +L4S112 GCGTTACACACA right palm 2009 3 17 subject-2 No 140 +L4S137 GAACTGTATCTC right palm 2009 4 14 subject-2 No 168 +L5S240 CTGGACTCATAG tongue 2008 10 28 subject-2 Yes 0 +L6S20 GAGGCTCATCAT tongue 2009 1 20 subject-2 No 84 +L6S68 GATACGTCCTGA tongue 2009 3 17 subject-2 No 140 +L6S93 GATTAGCACTCT tongue 2009 4 14 subject-2 No 168
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/filter_samples.test3.sample-metadata.tsv Thu Apr 25 21:12:19 2024 +0000 @@ -0,0 +1,36 @@ +sample-id barcode-sequence body-site year month day subject reported-antibiotic-usage days-since-experiment-start +#q2:types categorical categorical numeric numeric numeric categorical categorical numeric +L1S8 AGCTGACTAGTC gut 2008 10 28 subject-1 Yes 0 +L1S57 ACACACTATGGC gut 2009 1 20 subject-1 No 84 +L1S76 ACTACGTGTGGT gut 2009 2 17 subject-1 No 112 +L1S105 AGTGCGATGCGT gut 2009 3 17 subject-1 No 140 +L2S155 ACGATGCGACCA left palm 2009 1 20 subject-1 No 84 +L2S175 AGCTATCCACGA left palm 2009 2 17 subject-1 No 112 +L2S204 ATGCAGCTCAGT left palm 2009 3 17 subject-1 No 140 +L2S222 CACGTGACATGT left palm 2009 4 14 subject-1 No 168 +L3S242 ACAGTTGCGCGA right palm 2008 10 28 subject-1 Yes 0 +L3S294 CACGACAGGCTA right palm 2009 1 20 subject-1 No 84 +L3S313 AGTGTCACGGTG right palm 2009 2 17 subject-1 No 112 +L3S341 CAAGTGAGAGAG right palm 2009 3 17 subject-1 No 140 +L3S360 CATCGTATCAAC right palm 2009 4 14 subject-1 No 168 +L5S104 CAGTGTCAGGAC tongue 2008 10 28 subject-1 Yes 0 +L5S155 ATCTTAGACTGC tongue 2009 1 20 subject-1 No 84 +L5S174 CAGACATTGCGT tongue 2009 2 17 subject-1 No 112 +L5S203 CGATGCACCAGA tongue 2009 3 17 subject-1 No 140 +L5S222 CTAGAGACTCTT tongue 2009 4 14 subject-1 No 168 +L1S140 ATGGCAGCTCTA gut 2008 10 28 subject-2 Yes 0 +L1S208 CTGAGATACGCG gut 2009 1 20 subject-2 No 84 +L1S257 CCGACTGAGATG gut 2009 3 17 subject-2 No 140 +L1S281 CCTCTCGTGATC gut 2009 4 14 subject-2 No 168 +L2S240 CATATCGCAGTT left palm 2008 10 28 subject-2 Yes 0 +L2S309 CGTGCATTATCA left palm 2009 1 20 subject-2 No 84 +L2S357 CTAACGCAGTCA left palm 2009 3 17 subject-2 No 140 +L2S382 CTCAATGACTCA left palm 2009 4 14 subject-2 No 168 +L3S378 ATCGATCTGTGG right palm 2008 10 28 subject-2 Yes 0 +L4S63 CTCGTGGAGTAG right palm 2009 1 20 subject-2 No 84 +L4S112 GCGTTACACACA right palm 2009 3 17 subject-2 No 140 +L4S137 GAACTGTATCTC right palm 2009 4 14 subject-2 No 168 +L5S240 CTGGACTCATAG tongue 2008 10 28 subject-2 Yes 0 +L6S20 GAGGCTCATCAT tongue 2009 1 20 subject-2 No 84 +L6S68 GATACGTCCTGA tongue 2009 3 17 subject-2 No 140 +L6S93 GATTAGCACTCT tongue 2009 4 14 subject-2 No 168
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/filter_samples.test4.sample-metadata.tsv Thu Apr 25 21:12:19 2024 +0000 @@ -0,0 +1,36 @@ +sample-id barcode-sequence body-site year month day subject reported-antibiotic-usage days-since-experiment-start +#q2:types categorical categorical numeric numeric numeric categorical categorical numeric +L1S8 AGCTGACTAGTC gut 2008 10 28 subject-1 Yes 0 +L1S57 ACACACTATGGC gut 2009 1 20 subject-1 No 84 +L1S76 ACTACGTGTGGT gut 2009 2 17 subject-1 No 112 +L1S105 AGTGCGATGCGT gut 2009 3 17 subject-1 No 140 +L2S155 ACGATGCGACCA left palm 2009 1 20 subject-1 No 84 +L2S175 AGCTATCCACGA left palm 2009 2 17 subject-1 No 112 +L2S204 ATGCAGCTCAGT left palm 2009 3 17 subject-1 No 140 +L2S222 CACGTGACATGT left palm 2009 4 14 subject-1 No 168 +L3S242 ACAGTTGCGCGA right palm 2008 10 28 subject-1 Yes 0 +L3S294 CACGACAGGCTA right palm 2009 1 20 subject-1 No 84 +L3S313 AGTGTCACGGTG right palm 2009 2 17 subject-1 No 112 +L3S341 CAAGTGAGAGAG right palm 2009 3 17 subject-1 No 140 +L3S360 CATCGTATCAAC right palm 2009 4 14 subject-1 No 168 +L5S104 CAGTGTCAGGAC tongue 2008 10 28 subject-1 Yes 0 +L5S155 ATCTTAGACTGC tongue 2009 1 20 subject-1 No 84 +L5S174 CAGACATTGCGT tongue 2009 2 17 subject-1 No 112 +L5S203 CGATGCACCAGA tongue 2009 3 17 subject-1 No 140 +L5S222 CTAGAGACTCTT tongue 2009 4 14 subject-1 No 168 +L1S140 ATGGCAGCTCTA gut 2008 10 28 subject-2 Yes 0 +L1S208 CTGAGATACGCG gut 2009 1 20 subject-2 No 84 +L1S257 CCGACTGAGATG gut 2009 3 17 subject-2 No 140 +L1S281 CCTCTCGTGATC gut 2009 4 14 subject-2 No 168 +L2S240 CATATCGCAGTT left palm 2008 10 28 subject-2 Yes 0 +L2S309 CGTGCATTATCA left palm 2009 1 20 subject-2 No 84 +L2S357 CTAACGCAGTCA left palm 2009 3 17 subject-2 No 140 +L2S382 CTCAATGACTCA left palm 2009 4 14 subject-2 No 168 +L3S378 ATCGATCTGTGG right palm 2008 10 28 subject-2 Yes 0 +L4S63 CTCGTGGAGTAG right palm 2009 1 20 subject-2 No 84 +L4S112 GCGTTACACACA right palm 2009 3 17 subject-2 No 140 +L4S137 GAACTGTATCTC right palm 2009 4 14 subject-2 No 168 +L5S240 CTGGACTCATAG tongue 2008 10 28 subject-2 Yes 0 +L6S20 GAGGCTCATCAT tongue 2009 1 20 subject-2 No 84 +L6S68 GATACGTCCTGA tongue 2009 3 17 subject-2 No 140 +L6S93 GATTAGCACTCT tongue 2009 4 14 subject-2 No 168
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/group.test0.sample-metadata.tsv Thu Apr 25 21:12:19 2024 +0000 @@ -0,0 +1,36 @@ +sample-id barcode-sequence body-site year month day subject reported-antibiotic-usage days-since-experiment-start +#q2:types categorical categorical numeric numeric numeric categorical categorical numeric +L1S8 AGCTGACTAGTC gut 2008 10 28 subject-1 Yes 0 +L1S57 ACACACTATGGC gut 2009 1 20 subject-1 No 84 +L1S76 ACTACGTGTGGT gut 2009 2 17 subject-1 No 112 +L1S105 AGTGCGATGCGT gut 2009 3 17 subject-1 No 140 +L2S155 ACGATGCGACCA left palm 2009 1 20 subject-1 No 84 +L2S175 AGCTATCCACGA left palm 2009 2 17 subject-1 No 112 +L2S204 ATGCAGCTCAGT left palm 2009 3 17 subject-1 No 140 +L2S222 CACGTGACATGT left palm 2009 4 14 subject-1 No 168 +L3S242 ACAGTTGCGCGA right palm 2008 10 28 subject-1 Yes 0 +L3S294 CACGACAGGCTA right palm 2009 1 20 subject-1 No 84 +L3S313 AGTGTCACGGTG right palm 2009 2 17 subject-1 No 112 +L3S341 CAAGTGAGAGAG right palm 2009 3 17 subject-1 No 140 +L3S360 CATCGTATCAAC right palm 2009 4 14 subject-1 No 168 +L5S104 CAGTGTCAGGAC tongue 2008 10 28 subject-1 Yes 0 +L5S155 ATCTTAGACTGC tongue 2009 1 20 subject-1 No 84 +L5S174 CAGACATTGCGT tongue 2009 2 17 subject-1 No 112 +L5S203 CGATGCACCAGA tongue 2009 3 17 subject-1 No 140 +L5S222 CTAGAGACTCTT tongue 2009 4 14 subject-1 No 168 +L1S140 ATGGCAGCTCTA gut 2008 10 28 subject-2 Yes 0 +L1S208 CTGAGATACGCG gut 2009 1 20 subject-2 No 84 +L1S257 CCGACTGAGATG gut 2009 3 17 subject-2 No 140 +L1S281 CCTCTCGTGATC gut 2009 4 14 subject-2 No 168 +L2S240 CATATCGCAGTT left palm 2008 10 28 subject-2 Yes 0 +L2S309 CGTGCATTATCA left palm 2009 1 20 subject-2 No 84 +L2S357 CTAACGCAGTCA left palm 2009 3 17 subject-2 No 140 +L2S382 CTCAATGACTCA left palm 2009 4 14 subject-2 No 168 +L3S378 ATCGATCTGTGG right palm 2008 10 28 subject-2 Yes 0 +L4S63 CTCGTGGAGTAG right palm 2009 1 20 subject-2 No 84 +L4S112 GCGTTACACACA right palm 2009 3 17 subject-2 No 140 +L4S137 GAACTGTATCTC right palm 2009 4 14 subject-2 No 168 +L5S240 CTGGACTCATAG tongue 2008 10 28 subject-2 Yes 0 +L6S20 GAGGCTCATCAT tongue 2009 1 20 subject-2 No 84 +L6S68 GATACGTCCTGA tongue 2009 3 17 subject-2 No 140 +L6S93 GATTAGCACTCT tongue 2009 4 14 subject-2 No 168