changeset 14:6365217cd3de draft

Uploaded v0.2.3, adds unit tests for WoLF PSORT
author peterjc
date Thu, 25 Apr 2013 11:54:47 -0400
parents dc958c2a963a
children 6abd809cefdd
files test-data/empty_wolf_psort.tabular test-data/four_human_proteins.wolf_psort.tabular tools/protein_analysis/README tools/protein_analysis/wolf_psort.xml
diffstat 4 files changed, 40 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/empty_wolf_psort.tabular	Thu Apr 25 11:54:47 2013 -0400
@@ -0,0 +1,1 @@
+#ID	Compartment	Score	Rank
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/four_human_proteins.wolf_psort.tabular	Thu Apr 25 11:54:47 2013 -0400
@@ -0,0 +1,15 @@
+#ID	Compartment	Score	Rank
+sp|Q9BS26|ERP44_HUMAN	extr	18	1
+sp|Q9BS26|ERP44_HUMAN	E.R.	5	2
+sp|Q9BS26|ERP44_HUMAN	plas	3	3
+sp|Q9BS26|ERP44_HUMAN	mito	2	4
+sp|Q9BS26|ERP44_HUMAN	lyso	2	5
+sp|Q9NSY1|BMP2K_HUMAN	nucl	25	1
+sp|Q9NSY1|BMP2K_HUMAN	cyto_nucl	17	2
+sp|Q9NSY1|BMP2K_HUMAN	cyto	7	3
+sp|P06213|INSR_HUMAN	extr_plas	11.5	1
+sp|P06213|INSR_HUMAN	plas	10.5	2
+sp|P06213|INSR_HUMAN	extr	9.5	3
+sp|P06213|INSR_HUMAN	pero	5	4
+sp|P06213|INSR_HUMAN	E.R.	4	5
+sp|P08100|OPSD_HUMAN	plas	32	1
--- a/tools/protein_analysis/README	Tue Apr 23 12:47:49 2013 -0400
+++ b/tools/protein_analysis/README	Thu Apr 25 11:54:47 2013 -0400
@@ -141,6 +141,7 @@
 v0.2.1 - Use a script to create the Tool Shed tar-ball (removed some stray
          files accidentally included previously via a wildcard).
 v0.2.2 - Include missing test files.
+v0.2.3 - Added unit tests for WoLF PSORT.
 
 
 Developers
--- a/tools/protein_analysis/wolf_psort.xml	Tue Apr 23 12:47:49 2013 -0400
+++ b/tools/protein_analysis/wolf_psort.xml	Thu Apr 25 11:54:47 2013 -0400
@@ -1,4 +1,4 @@
-<tool id="wolf_psort" name="WoLF PSORT" version="0.0.3">
+<tool id="wolf_psort" name="WoLF PSORT" version="0.0.4">
     <description>Eukaryote protein subcellular localization prediction</description>
     <command interpreter="python">
       wolf_psort.py $organism 8 $fasta_file $tabular_file
@@ -23,6 +23,28 @@
     <requirements>
         <requirement type="binary">runWolfPsortSummary</requirement>
     </requirements>
+    <tests>
+        <test>
+            <param name="fasta_file" value="four_human_proteins.fasta" ftype="fasta"/>
+            <param name="organism" value="animal"/>
+            <output name="tabular_file" file="four_human_proteins.wolf_psort.tabular" ftype="tabular"/>
+        </test>
+        <test>
+            <param name="fasta_file" value="empty.fasta" ftype="fasta"/>
+            <param name="organism" value="animal"/>
+            <output name="tabular_file" file="empty_wolf_psort.tabular" ftype="tabular"/>
+        </test>
+        <test>
+            <param name="fasta_file" value="empty.fasta" ftype="fasta"/>
+            <param name="organism" value="plant"/>
+            <output name="tabular_file" file="empty_wolf_psort.tabular" ftype="tabular"/>
+        </test>
+        <test>
+            <param name="fasta_file" value="empty.fasta" ftype="fasta"/>
+            <param name="organism" value="fungi"/>
+            <output name="tabular_file" file="empty_wolf_psort.tabular" ftype="tabular"/>
+        </test>
+    </tests>
     <help>
     
 **What it does**