diff galaxy-conf/FindNMers.xml @ 24:a77e126ae856 draft

Reupload since last upload did not load correctly
author timpalpant
date Tue, 19 Jun 2012 22:15:09 -0400
parents 9d56b5b85740
children b43c420a6135
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/galaxy-conf/FindNMers.xml	Tue Jun 19 22:15:09 2012 -0400
@@ -0,0 +1,52 @@
+<tool id="FindNMers" name="Find NMers" version="1.0.0">
+  <description>in a DNA sequence</description>
+  <command interpreter="sh">galaxyToolRunner.sh dna.FindNMers -i 
+    #if $refGenomeSource.genomeSource == "history":
+      $refGenomeSource.ownFile
+    #else
+      ${refGenomeSource.index.fields.path}
+    #end if
+	-m $mismatches -n $nmer $rc -o $output
+  </command>
+  <inputs>
+    <conditional name="refGenomeSource">
+      <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options">
+        <option value="indexed">Use a built-in index</option>
+        <option value="history">Use one from the history</option>
+      </param>
+      <when value="indexed">
+        <param name="index" type="select" label="Select a reference genome" help="if your genome of interest is not listed - contact Galaxy team">
+          <options from_data_table="sam_fa_indexes">
+            <filter type="sort_by" column="1" />
+            <validator type="no_options" message="No indexes are available" />
+          </options>
+        </param>
+      </when>
+      <when value="history">
+        <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
+      </when>  <!-- history -->
+    </conditional>  <!-- refGenomeSource -->
+    
+    <param name="nmer" type="text" optional="false" label="NMer to search for" />
+    <param name="mismatches" type="integer" value="0" label="Number of allowed mismatches (Hamming distance)" />
+    <param name="rc" type="boolean" checked="true" truevalue="--rc" falsevalue="" label="Search reverse-complement as well" />
+  </inputs>
+  <outputs>
+      <data format="bed" name="output"/>
+  </outputs>
+  <tests>
+    <test>
+      <param name="genomeSource" value="history"/>
+      <param name="ownFile" value="test.fasta"/>
+      <param name="property" value="Twist"/>
+      <param name="N" value="false"/>
+      <output name="output" file="twist.wig"/>
+  	</test>
+	</tests>
+  
+  <help>
+
+This tool will find all matches of a given NMer in a DNA sequence. Sequences may be provided in FASTA format or selected from available reference genomes. Mismatches are allowed, but not insertions/deletions. The output is a Bed file with the locations of matches in the reference sequence.
+
+  </help>
+</tool>