Repository 'khmer'
hg clone https://testtoolshed.g2.bx.psu.edu/repos/crusoe/khmer

Changeset 13:3d81c3793820 (2014-06-29)
Previous changeset 12:760990dd7983 (2014-06-29) Next changeset 14:d1403ee80c1e (2014-06-29)
Commit message:
first test
modified:
abundance-dist-single.xml
filter-abund.xml
macros.xml
added:
test-data/test-abund-read-2.fa
b
diff -r 760990dd7983 -r 3d81c3793820 abundance-dist-single.xml
--- a/abundance-dist-single.xml Sun Jun 29 09:50:29 2014 -0400
+++ b/abundance-dist-single.xml Sun Jun 29 10:28:09 2014 -0400
[
@@ -34,6 +34,18 @@
  type="boolean"
  label="Save the k-mer counting table(s) in a file"
  help="" />
+ <param name="no_zero"
+ type="boolean"
+ truevalue=""
+ falsevalue="--no_zero"
+ checked="true" 
+ help="Output zero count bins" />
+ <param name="no_bigcount"
+ type="boolean"
+ truevalue=""
+ falsevalue="--no_bigcount"
+ checked="true"
+ help="Count k-mers past 255" />
  <expand macro="tableinputs" />
  </inputs>
  <outputs>
@@ -45,19 +57,21 @@
  level="fatal" />
  </stdio>
     
-    <!-- [OPTIONAL] Tests to be run manually by the Galaxy admin -->
     <tests>
-        <!-- [HELP] Test files have to be in the ~/test-data directory
-        <test>
-            <param name="input" value="input_test.tab" />
-            <param name="int"   value="10" />
-            <output name="output" file="output_test.txt" />
- </test> -->
-        <!-- [HELP] Multiple tests can be defined with different parameters -->
-<!--
-        <test>
-        </test>
--->
+     <test>
+     <param name="input_sequence_filename" value="test-abund-read-2.fa" />
+     <param name="type" value="specific" />
+     <param name="tablesize_specific" value="1e7" />
+     <param name="n_tables" value="2" />
+     <param name="ksize" value="17" />
+     <param name="no_zero" value="false" />
+     <output name="output_histogram_filename">
+     <assert_contents>
+     <has_text text="1 96 96 0.98" />
+     <has_text text="1001 2 98 1.0" />
+     </assert_contents>
+     </output>
+     </test>
     </tests>
     
     <!-- [OPTIONAL] Help displayed in Galaxy -->
b
diff -r 760990dd7983 -r 3d81c3793820 filter-abund.xml
--- a/filter-abund.xml Sun Jun 29 09:50:29 2014 -0400
+++ b/filter-abund.xml Sun Jun 29 10:28:09 2014 -0400
b
@@ -13,13 +13,13 @@
  </macros>
  <expand macro="requirements" />
  <command>
- mkdir output; cd output;
- filter-abund.py
- $variable_coverage
- $countingtable_to_load
- #for input in $inputs
- $input
- #end for
+mkdir output; cd output;
+filter-abund.py
+$variable_coverage
+$countingtable_to_load
+#for input in $inputs
+ $input
+#end for
  </command>
 
  <inputs>
b
diff -r 760990dd7983 -r 3d81c3793820 macros.xml
--- a/macros.xml Sun Jun 29 09:50:29 2014 -0400
+++ b/macros.xml Sun Jun 29 10:28:09 2014 -0400
b
@@ -20,7 +20,7 @@
  <param name="type"
  type="select"
  label="Advanced Parameters"
- help="ksize, n_hashess, a specific hashsize" >
+ help="ksize, n_tables, a specific tablesize" >
  <option value="simple"
  selected="true">
  Hide
@@ -30,7 +30,7 @@
  </option>
              </param>
  <when value="simple">
- <param name="hashsize"
+ <param name="tablesize"
  type="select"
  label="Sample Type"
  display="radio">
@@ -55,16 +55,16 @@
  value="20"
  label="ksize"
  help="k-mer size to use" />
- <param name="n_hashes"
+ <param name="n_tables"
  type="integer"
  min="1"
  value="4"
- label="n_hashes"
- help="number of hash tables to use" />
- <param name="hashsize_specifc"
+ label="n_tables"
+ help="number of tables to use" />
+ <param name="tablesize_specifc"
  type="text"
- label="hashsize"
- help="lower bound on the hashsize to use" />
+ label="tablesize"
+ help="lower bound on the tablesize to use" />
  </when>
  </conditional>
  </xml>
b
diff -r 760990dd7983 -r 3d81c3793820 test-data/test-abund-read-2.fa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/test-abund-read-2.fa Sun Jun 29 10:28:09 2014 -0400
b
@@ -0,0 +1,1 @@
+../../../tests/test-data/test-abund-read-2.fa
\ No newline at end of file