# HG changeset patch
# User yating-l
# Date 1471028518 14400
# Node ID 04e57f9ef873b7834d9e499e9f6cc60154c9d6f6
# Parent a7f57cf408e8f53b998e36ac393503a59b9ccd42
planemo upload commit 6e3286c6569d531846474dcd6959378af0317ce3-dirty
diff -r a7f57cf408e8 -r 04e57f9ef873 README.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/README.md Fri Aug 12 15:01:58 2016 -0400
@@ -0,0 +1,2 @@
+# SNAP
+Galaxy wrapper for SNAP gene prediction tool
diff -r a7f57cf408e8 -r 04e57f9ef873 README.rst
--- a/README.rst Fri Aug 12 12:03:46 2016 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-Galaxy wrapper for SNAP
-========================
-
-This wrapper is copyright 2016-2017 by Yating Liu
-
-This is a wrapper for the gene prediction tool SNAP. SNAP is a general purpose gene finding program suitable for both eukaryotic and prokaryotic genomes. SNAP is an acroynm for Semi-HMM-based Nucleic Acid
-Parser.
-
-Reference
-----------------------
-
- Korf I. Gene finding in novel Genomes. BMC Bioinformatics 2004, 5:59
-
-Installation
------------------------
-
-To install SNAP, please download SNAP from
-
-http://korflab.ucdavis.edu/Software/snap-2013-11-29.tar.gz
-
-and follow the installation instractions. The software is routinely compiled and tested on Mac OS X. It should compile
-fine on any Linux/Unix type operating systems.
-The default compiler is gcc. If you have gcc installed, the easiest is to just compile as:
-```
- make
-```
-
-The ZOE environment variable is used by SNAP to find the HMM files. Set this
-to the directory containing this file. For example, if you unpackaged the tar-ball in /usr/local/snap, set the ZOE environment variable to /usr/local/snap
-
-```
- setenv ZOE /usr/local/snap # csh, tcsh, etc
-```
- or
-```
- export ZOE=/usr/local/snap # sh, bash, etc
-```
-To install the wrapper copy the snap folder in the galaxy tools and modify the $GALAXY_ROOT/config/tool_conf.xml file to make the tool available to Galaxy. For example:
-```
-
-```
-
-
-
-
-
diff -r a7f57cf408e8 -r 04e57f9ef873 readme.rst
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/readme.rst Fri Aug 12 15:01:58 2016 -0400
@@ -0,0 +1,46 @@
+Galaxy wrapper for SNAP
+========================
+
+This wrapper is copyright 2016-2017 by Yating Liu
+
+This is a wrapper for the gene prediction tool SNAP. SNAP is a general purpose gene finding program suitable for both eukaryotic and prokaryotic genomes. SNAP is an acroynm for Semi-HMM-based Nucleic Acid
+Parser.
+
+Reference
+----------------------
+
+ Korf I. Gene finding in novel Genomes. BMC Bioinformatics 2004, 5:59
+
+Installation
+-----------------------
+
+To install SNAP, please download SNAP from
+
+http://korflab.ucdavis.edu/Software/snap-2013-11-29.tar.gz
+
+and follow the installation instractions. The software is routinely compiled and tested on Mac OS X. It should compile
+fine on any Linux/Unix type operating systems.
+The default compiler is gcc. If you have gcc installed, the easiest is to just compile as:
+```
+ make
+```
+
+The ZOE environment variable is used by SNAP to find the HMM files. Set this
+to the directory containing this file. For example, if you unpackaged the tar-ball in /usr/local/snap, set the ZOE environment variable to /usr/local/snap
+
+```
+ setenv ZOE /usr/local/snap # csh, tcsh, etc
+```
+ or
+```
+ export ZOE=/usr/local/snap # sh, bash, etc
+```
+To install the wrapper copy the snap folder in the galaxy tools and modify the $GALAXY_ROOT/config/tool_conf.xml file to make the tool available to Galaxy. For example:
+```
+
+```
+
+
+
+
+
diff -r a7f57cf408e8 -r 04e57f9ef873 snap.xml
--- a/snap.xml Fri Aug 12 12:03:46 2016 -0400
+++ b/snap.xml Fri Aug 12 15:01:58 2016 -0400
@@ -1,6 +1,6 @@
-
+
- snap
+ snap
@@ -19,9 +19,12 @@
#if $transcripts == "-tx":
$transcripts "$output3"
#end if
- $format
+ -gff
$organism
- "$input1" > "$output1"
+ from gff2Togff3 import Convertor
+ f = Convertor("$output1", "$output4")
+ f.convert()
+ "$input1" > "$output4"
]]>
@@ -54,10 +57,6 @@
-
-
-
-
@@ -91,13 +90,10 @@
-
-
-
proteins == "-aa"
- /Users/yating/Desktop/gonramp/snap-wrapper/thale.gff
+
transcripts == "-tx"
diff -r a7f57cf408e8 -r 04e57f9ef873 test-data/thale.gff3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/thale.gff3 Fri Aug 12 15:01:58 2016 -0400
@@ -0,0 +1,27 @@
+##gff-version 3
+At1g01040.0 SNAP gene 1007 5917 . + . ID=At1g01040.0-snap.1
+At1g01040.0 SNAP mRNA 1007 5917 . + . ID=mRNA_At1g01040.0-snap.1;Parent=At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 1007 1954 85.269 + 0 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 2024 2137 8.926 + 0 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 2234 2444 20.788 + 0 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 2523 2917 35.162 + 2 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 3006 3225 34.428 + 0 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 3307 3479 14.790 + 2 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 3563 3685 4.678 + 0 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 3774 3934 10.179 + 0 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 4025 4258 25.991 + 1 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 4344 4506 4.289 + 1 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 4581 4763 28.696 + 0 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 4854 5015 15.217 + 0 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 5100 5195 23.205 + 0 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP CDS 5285 5917 45.878 + 0 Parent=mRNA_At1g01040.0-snap.1
+At1g01040.0 SNAP gene 6086 8561 . + . ID=At1g01040.0-snap.2
+At1g01040.0 SNAP mRNA 6086 8561 . + . ID=mRNA_At1g01040.0-snap.2;Parent=At1g01040.0-snap.2
+At1g01040.0 SNAP CDS 6086 6144 6.596 + 0 Parent=mRNA_At1g01040.0-snap.2
+At1g01040.0 SNAP CDS 6190 6287 22.495 + 1 Parent=mRNA_At1g01040.0-snap.2
+At1g01040.0 SNAP CDS 6372 6562 17.809 + 2 Parent=mRNA_At1g01040.0-snap.2
+At1g01040.0 SNAP CDS 6642 6803 16.407 + 0 Parent=mRNA_At1g01040.0-snap.2
+At1g01040.0 SNAP CDS 6828 7547 69.159 + 0 Parent=mRNA_At1g01040.0-snap.2
+At1g01040.0 SNAP CDS 7629 7793 40.262 + 0 Parent=mRNA_At1g01040.0-snap.2
+At1g01040.0 SNAP CDS 7892 8298 46.310 + 0 Parent=mRNA_At1g01040.0-snap.2
+At1g01040.0 SNAP CDS 8384 8561 17.079 + 1 Parent=mRNA_At1g01040.0-snap.2
diff -r a7f57cf408e8 -r 04e57f9ef873 tool_dependencies.xml
--- a/tool_dependencies.xml Fri Aug 12 12:03:46 2016 -0400
+++ b/tool_dependencies.xml Fri Aug 12 15:01:58 2016 -0400
@@ -1,6 +1,25 @@
-
-
+
+
+
+
+ http://korflab.ucdavis.edu/Software/snap-2013-11-29.tar.gz
+ make
+
+ .
+ $INSTALL_DIR
+
+
+ $INSTALL_DIR
+ $INSTALL_DIR
+
+
+
+
+ SNAP is a general purpose gene finding program suitable for both eukaryotic
+ and prokaryotic genomes. SNAP is an acroynm for Semi-HMM-based Nucleic Acid
+ Parser.
+