diff complexity_bam.xml @ 8:9def47f3c1e4 draft

planemo upload for repository https://github.com/phac-nml/quasitools commit 940b463cac33438233bc7a8a1695ca6d34b31a35
author nml
date Tue, 06 Aug 2019 08:50:28 -0400
parents
children 18aad692772a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/complexity_bam.xml	Tue Aug 06 08:50:28 2019 -0400
@@ -0,0 +1,57 @@
+<tool id="complexity_bam" name="Complexity BAM" version="0.7.0">
+    <requirements>
+        <requirement type="package" version="0.7.0">quasitools</requirement>
+    </requirements>
+    <command detect_errors="exit_code"><![CDATA[
+
+        ln -f -s '${input_bam.metadata.bam_index}' '${input_bam}.bai' &&
+
+        quasitools complexity bam '$ref_file' '$input_bam'  $k -f '$filter_size' -o output.csv
+
+    ]]></command>
+    <inputs>
+        <param name="ref_file" type="data" format="fasta" optional="false" label="Reference file" />
+        <param name="input_bam" type="data" format="bam" optional="false" label="BAM file" />
+        <param name="k" type="integer" label="k-mer size" value="0" min="0" />
+        <param name="filter_size" type="integer" label="Filter size" value="0" min="0" />
+    </inputs>
+    <outputs>
+        <data format="csv" name="output" from_work_dir="output.csv" />
+    </outputs>
+   <tests>
+        <test>
+            <param name="ref_file" value="generated.fasta" />
+            <param name="input_bam" value="generated.bam" />
+	    <param name="k" value="200" />
+	    <param name="filter_size" value="0" />
+            <output name="output" >
+                <assert_contents>
+                    <has_text text="Position" />
+                    <has_text text="0" />
+                </assert_contents>
+            </output>
+        </test>
+    </tests>
+   
+    <help><![CDATA[
+Quasispecies Complexity
+=======================
+
+Calculates various quasispecies complexity measures on next generation sequenced data from a BAM file and it's corresponding reference file.
+
+The measures of complexity are taken from the following work:
+Gregori, Josep, et al. "Viral quasispecies complexity measures." Virology 493 (2016): 227-237.
+
+
+]]></help>
+    <citations>
+		<citation type="bibtex">
+			@misc{GitHubquasitoolscomplexity,
+			title = {quasitools complexity},
+			publisher = {phac-nml},
+			journal = {GitHub repository},
+			url = {https://github.com/phac-nml/quasitools},
+			}
+		</citation>
+	</citations>
+</tool>