annotate qiime2-2020.8/merge_feature_table_and_taxonomy.xml @ 21:a98d7ab297f1 draft

Deleted selected files
author florianbegusch
date Fri, 04 Sep 2020 12:46:48 +0000
parents d93d8888f0b0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
1 <?xml version="1.0" ?>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
2 <tool id="merge_feature_table_and_taxonomy" name="merge feature table and taxonomy" version="2019.7">
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
3 <description>- Merge features and taxonomy into a single biom file.</description>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
4 <requirements>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
5 <requirement type="package" version="2019.7">qiime2</requirement>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
6 </requirements>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
7 <command>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
8 mkdir out;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
9
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
10 qiime tools export --input-path $taxonomy_qza --output-path out;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
11 qiime tools export --input-path $biom_qza --output-path out;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
12
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
13 sed -i '1s;^;#;' out/*.tsv;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
14 sed -i 's/Confidence/confidence/g' out/*.tsv;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
15 sed -i 's/Taxon/taxonomy/g' out/*.tsv;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
16 sed -i 's/Feature ID/OTU ID/g' out/*.tsv;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
17
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
18 biom add-metadata -i out/*.biom -o table_with_sample_metadata.biom --observation-metadata-fp out/*.tsv
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
19 ;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
20 mv *.biom $biom_and_tax_merged</command>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
21 <inputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
22 <param label="Feature table" name="biom_qza" type="data" format="qza,no_unzip.zip" collection_type="list"/>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
23 <param label="Taxonomy" name="taxonomy_qza" type="data" format="qza,no_unzip.zip"/>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
24 </inputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
25 <outputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
26 <data format="biom2" label="${tool.name} on ${on_string}: biom_and_tax_merged.biom" name="biom_and_tax_merged"/>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
27 </outputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
28 <help>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
29 </help>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
30 <macros>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
31 <import>qiime_citation.xml</import>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
32 </macros>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
33 <expand macro="qiime_citation" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
34 </tool>