Mercurial > repos > florianbegusch > qiime2_all
comparison merge_feature_table_and_taxonomy.xml @ 0:09b7bcb72fa7 draft
Uploaded
| author | florianbegusch |
|---|---|
| date | Thu, 24 May 2018 02:11:44 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:09b7bcb72fa7 |
|---|---|
| 1 <?xml version="1.0" ?> | |
| 2 <tool id="merge_feature_table_and_taxonomy" name="merge feature table and taxonomy" version="2018.4"> | |
| 3 <description>- Merge features and taxonomy into a single biom file.</description> | |
| 4 <requirements> | |
| 5 <requirement type="package" version="2018.4">qiime2</requirement> | |
| 6 </requirements> | |
| 7 <command> | |
| 8 mkdir out; | |
| 9 | |
| 10 qiime tools export --output-dir out $taxonomy_qza; | |
| 11 qiime tools export --output-dir out $biom_qza; | |
| 12 | |
| 13 sed -i '1s;^;#;' out/*.tsv; | |
| 14 sed -i 's/Confidence/confidence/g' out/*.tsv; | |
| 15 sed -i 's/Taxon/taxonomy/g' out/*.tsv; | |
| 16 sed -i 's/Feature ID/OTU ID/g' out/*.tsv; | |
| 17 | |
| 18 biom add-metadata -i out/*.biom -o table_with_sample_metadata.biom --observation-metadata-fp out/*.tsv | |
| 19 ; | |
| 20 mv *.biom $biom_and_tax_merged</command> | |
| 21 <inputs> | |
| 22 <param label="Feature table" name="biom_qza" type="data" format="qza,no_unzip.zip" collection_type="list"/> | |
| 23 <param label="Taxonomy" name="taxonomy_qza" type="data" format="qza,no_unzip.zip"/> | |
| 24 </inputs> | |
| 25 <outputs> | |
| 26 <data format="biom2" label="${tool.name} on ${on_string}: biom_and_tax_merged.biom" name="biom_and_tax_merged"/> | |
| 27 </outputs> | |
| 28 <help> | |
| 29 </help> | |
| 30 </tool> |
