diff coverage_sampler.xml @ 1:fa1aae53a2f3 draft

planemo upload for repository https://github.com/cdeanj/galaxytools/tree/master/tools/gene_fraction commit b9f62f2ab10f5ff1c56edb895323820df36bdd0e-dirty
author chrisd
date Tue, 28 Jun 2016 23:31:46 -0400
parents
children ec439b0e7512
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/coverage_sampler.xml	Tue Jun 28 23:31:46 2016 -0400
@@ -0,0 +1,80 @@
+<tool id="gene_fraction" name="Coverage Sampler" version="0.1.0">
+    <description>A simple tool for calculating the amount of a gene that is covered by a sample of alignments</description>
+    <requirements>
+	<requirement type="package" version="0.1">csa</requirement>
+    </requirements>
+    <stdio>
+        <exit_code range="1:" />
+    </stdio>
+    <command><![CDATA[
+	csa
+	  -ref_fp $reference
+	  -sam_fp $sam
+	  -min $min
+	  -max $max
+	  -t $threshold
+	  -skip $skip
+	  -samples $samples
+	  -out_fp $output
+    ]]></command>
+    <inputs>
+	<param type="data" name="reference" format="fasta" label="Reference sequence" />
+	<param type="data" name="sam" format="sam" label="SAM file" />
+	<param name="min" type="integer" label="Starting sample level"
+	       value="1" min="1" max="100" help="(-min)" />
+	<param name="max" type="integer" label="Ending sample level"
+	       value="1" min="1" max="100" help="(-max)" />
+	<param name="threshold" type="integer" label="Gene fraction threshold"
+	       value="0" min="0" max="100" help="(-t)" />
+	<param name="skip" type="integer" label="Amount of sample levels to skip"
+	       value="1" min="1" max="100" help="(-skip)" />
+	<param name="samples" type="integer" label="Iterations per sample level"
+	       value="1" min="1" max="100" help="(-samples)" />
+    </inputs>
+    <outputs>
+	<data name="output" format="tabular" />
+    </outputs>
+    <tests>
+      <test>
+          <param name="reference" value="ref.fa"/>
+      	  <param name="sam" value="sampe.sam"/>
+	  <param name="min" value="100"/>
+	  <param name="max" value="100"/>
+	  <param name="threshold" value="50"/>
+	  <param name="skip" value="5"/>
+	  <param name="samples" value="1"/>
+      	  <output name="output" file="csa_result" ftype="tabular"/>
+      </test>
+      <test>
+	  <param name="reference" value="ref.fa"/>
+          <param name="sam" value="sampe.sam"/>
+          <param name="min" value="100"/>
+          <param name="max" value="100"/>
+          <param name="threshold" value="80"/>
+          <param name="skip" value="5"/>
+          <param name="samples" value="1"/>
+          <output name="output" file="csa_no_result" ftype="tabular"/>
+      </test>
+    </tests>
+    <help><![CDATA[
+A simple tool for calculating the amount of a gene that is covered by a sample of alignments.
+
+Program: Coverage Sampler
+
+Contact: Chris Dean <cdean11@rams.colostate.edu>
+
+Usage: csa [options]
+
+Options:
+    -ref_fp    STR/FILE	    	ref file path
+    -sam_fp    STR/FILE	    	sam file path
+    -min       INT      		starting sample level
+    -max       INT	        	ending sample level
+    -skip      INT	        	amount of sample levels to skip
+    -t         INT	        	gene fraction threshold
+    -samples   INT	        	iterations per sample level
+    -out_fp    STR/FILE	    	output file path
+    ]]></help>
+    <citations>
+    </citations>
+</tool>