changeset 0:89a569942df3 draft default tip

planemo upload commit c1f0c5ceaac87b6b1db12160a8f5b287635db61b
author yating-l
date Thu, 01 Jun 2017 14:07:15 -0400
parents
children
files fa_to_twobit.xml test-data/KB462401.fa test-data/KB462401.keepversion.2bit test-data/KB462401.masked.2bit test-data/KB462401.unmasked.2bit tool_dependencies.xml ucsc_macros.xml
diffstat 7 files changed, 201 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fa_to_twobit.xml	Thu Jun 01 14:07:15 2017 -0400
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<tool id="fa_to_twobit" name="faToTwoBit" version="1.0">
+    <description>Converts a FASTA sequence file into a twoBit file</description>
+
+    <macros>
+        <import>ucsc_macros.xml</import>
+    </macros>
+
+    <expand macro="requirements_twobit" />
+
+    <command detect_errors="exit_code">
+<![CDATA[
+    faToTwoBit
+        "${fasta_input}" ${no_mask} ${strip_version} "${twobit_output}"
+]]>
+    </command>
+    <inputs>
+        <param name="fasta_input" type="data" format="fasta" label="FASTA file" />
+
+        <param name="no_mask" type="boolean" checked="true"
+            truevalue="-noMask" falsevalue=""
+            label="Ignore lower-case masking in fa file"
+            help="-noMask" />
+
+        <param name="strip_version" type="boolean" checked="true"
+            truevalue="-stripVersion" falsevalue=""
+            label="Strip off version number after '.' for GenBank accessions"
+            help="-stripVersion" />
+    </inputs>
+    <outputs>
+        <data name="twobit_output" format="twobit" />
+    </outputs>
+    <tests>
+        <test>
+            <param name="fasta_input" value="KB462401.fa" ftype="fasta" />
+            <output name="twobit_output" file="KB462401.unmasked.2bit" />
+        </test>
+        <test>
+            <param name="fasta_input" value="KB462401.fa" ftype="fasta" />
+            <param name="no_mask" value="" />
+            <output name="twobit_output" file="KB462401.masked.2bit" />
+        </test>
+        <test>
+            <param name="fasta_input" value="KB462401.fa" ftype="fasta" />
+            <param name="strip_version" value="" />
+            <output name="twobit_output" file="KB462401.keepversion.2bit" />
+        </test>
+    </tests>
+    <help>
+<![CDATA[
+**What it does**
+
+faToTwoBit converts a DNA sequence file in FASTA format into a
+`twoBit Sequence Archive <https://genome.ucsc.edu/goldenpath/help/twoBit.html>`_.
+
+    ]]></help>
+
+    <expand macro="citations" />
+</tool>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/KB462401.fa	Thu Jun 01 14:07:15 2017 -0400
@@ -0,0 +1,92 @@
+>KB462401.1 Drosophila biarmipes unplaced genomic scaffold scf7180000301495, whole genome shotgun sequence
+TTAATATGAGAAAAGTGCAAGAAAAGTATAACAAGAAAGGAAGTAAACTTCGGCAAGCCGAAGTTTTTAT
+ACCCTTGCAGATATCTGCAAGGATTATTGCTAGCTTCAGTGGTATATGATATAGTCTTAATCAAATTTAT
+TTCGAAATTCAAAACTAATTAAACAATTTTATTTCCAAGCGTAGGAGGTTCAAGGTTAAAAAACCTCAAA
+TATATTTATTTTTTGTTCCGCACCCCGCTGAAACAAACTTGCGCTGCGCTGGAAGCCCAGGAATCTGCAT
+GCCAAGTTTGAATGTTCTATCTCTTATAGTTTCCGAGATCTCAGCGTTCATACGGACAGACAGACGGACA
+TGACTAGATCGACTCGGCTAGTGATCCTGATCATGAATATATATGGGGTCTGAAACGCTTCCTTCTACCT
+TTTACATACTTTCCGACGAAAGTAGCATACTTATATAAGTTTTACTTATTGGTTTATTAACATATTTGGA
+TACAATAACAATAGCCATTTGTAGCATACTTTGTATAATATGTATGTATCGTCCAATCGTGTGCAAATAA
+AATATTCCGGAACCAAAAAGTAAAAAAAACCGTAAAAAAGCATGTAAAAACTAAGTTTTTCTTTTTGTTT
+TATCAATTAATAGGTTAAGGAAGATGGTTAGCCTACCTATTTCGTCATTCTTTTTTATTTGCCATTTCAA
+TATAAAAAATCCAAAATAATCATTATGAATGAAAAAATAATTAAAAAGAACAGCAATAAACATGTTTTTA
+ATAGATTAGATTAGATAATAGAGTTCTTAAATTCACAAGAAGTCAAGGAAACGTATTCTTCTTCATGTCT
+TTATGAAACCAATATCAGAATAAGTAGCCTAGTTCATTTAGTCATATCCGTCGGTCCAAGCGAATGCTAA
+CATCTCCGAAATTATAAAAATAACTAGTTTGGATATGGGTCATGCAGATTCTTACATTTCCTGTACAGCA
+CAAGTTTGTTTCGTCGAAGTGCCACGCCCACTATTTCTTCTAATACGCGAACTCAATCTGTCTGGAGCCC
+AAACTTTTGAATATTGTGTCAACATTTAATTTTGTTTTGAATATCAACATGAGAATTATTCTTGGTGAAT
+ATCTTTATAAAGGTGTGCCAATGGTTTTAACTTGACCATTTATTTAAATTGATTACCTGAGTAAAGGTTA
+TCTTAAATTCGAGGCACTCAACTAAAGCGATCTCCCTTACTTACCCTTAAACTATTAATTGTTATTCTGA
+AAACTTAAATTCGATAGCTAAATGCCTTATTCAAAGTTCTCGTAATGTTATTTTTAACAGAAAGATTCCG
+TAAATATTTATTTTAAGTGACGACCAGATTATCTCGTTAAAGTTCGAGACGTGTAAAACTTTCTGAAAGT
+TTAAGAGCTGAACCAGGGAAGGTCTTCTTTATAGAATCGAAAACACTTTCTTTCACCTATTGCACTATTA
+AGTCAAGAACATATATAGTTTATGGGGTTGGAAACGTTTCCTTTACTGCGTTGCAAGCTTCTGACAGAAA
+TTATAATACCCTCTGCAAAAATAAAAAATTGCGGTTACAGTGTTGCACTATGATAAACACAGTGGGAAGT
+ACGTAAAAACATGGTTACTAAATCGAATCGGTCCGAAAGGTTTCCCTTTTAAGGCCCATACTGCACACTG
+GTGCAAACATATTTTTAAACATCTTTACTTTGTTAAACAAAAACAGAAGTCCCATAATTGCCCATTTATT
+TGGAAATATGTTTAAAATATATTGATATATACATAATACATGAATATTTATTAAAGTTATTTATTTCATA
+TGACTATAGGAATTACATTTAATTTTTGTATTTAATATAGCTTGTGTTACAAGGGGTCCTTTGGAACACG
+CTGTGATCTGAAAATAGTATTTAAATAGTTTATAAATGCATTAGTTAAACAAGAAAGGACGTTGGCTTTG
+GCAAGCCAAAGTTTGTATACCCTTGCAGCTATAAGAAATACTCTATATTAGTAACAGCATGTTAAATTTT
+TAAGGATTGTTCCTGGCTAGTGATGCTGATCAAGAATATATGTACTTTATGTGGTCGGAAACGTGTCGTT
+CACTGCGTTGCAAACTTCTGAATGAAATCATTATACCCTCTGCAGGCGTTTATAAATTTGTACAAATGGT
+ACAGACTCTTCCAAGGGAAGATGCCAAGAGCTAACGAATGATGAAAACGTTAAGAAGTAAAGAAAATTAT
+TTCGCAATACGCATCACTATCACTGAGGATGTCGATATATCGCCAGGCTCGGACCATGATATTTCCTCTA
+ATCGAAATTGCTAAATTTAGACCAAAACAAGAAAGGAAGTTAACTTCGGCAAGCTGAAGTTTGTATACCC
+TTGCAGACATAAGAAATAATAAGCTTTAGTAAATAATTTTTTCATATTATTTCCCACTAATTTCCCGATT
+GCTCCTATGACAGCTATATGATATAGGCGACCGATTTTGATACAATTTAAGTAGAAATTCAGAACTAATT
+AAAAAATTTTATTTCTATGCTTACAAGGTTATATGTTAAAAAACACCGAAGATATAATTTTTTCATATTA
+TTTTACTACTAATTTTCCGATCTTTCATATGGCAGCTATATGATATAGTCGTCCGATTTTGATAAAATTT
+AATTCGAAATTCAGACCTAACTATAAAATGACATTTCCAAGCTTAGAAGGTGATATGTTAAAAAACACCG
+AAGATATAATTTTTTCATATTATTTTAATACTAACTTTCCGATCTTTCATATGGCAGCTATATGATATAG
+TCGTCCGATTTTGATAAAATTTAATTCGAAATTCAGAACTAATTAAAAAATGTTATTTTCAAGCTTAGAA
+GGTGATATGTTAAAAATCACAGAAGATATAATTTTTTCATATTATTTTAATACTAATTTTCCGATCTTTC
+ATATGGCAGCTATATGATATAGTCGTCCGATTTTGATAAAATTTAATTCGAAATTCAGAACTAATTAAAA
+AATGTTATTTTCAAGCTTAGAAGGTGATATGTTAAAAAACAGCGAAGGTATAATTTTTTCATATTATTTT
+AATTCTATTGATATAGTGGTCCGATTTTGATTAAATTTAATTCGAAATTCAGAACTAATTAAAAAATGTC
+ATTTCCAAGCTTAGAAGGTTATATGCTACAAAACACCGAATATATAATTTTTAAAAATTTTTCCCCTATA
+GTTCCAATGGGAGCTATAAAATATAGTTGTCTGATCCGGCTGGTTCCGACTTATATACTACCTGCAATAC
+AAAGAAAACTTTTGGGAAAGTTTCAGCCCGATAGCTTCAGAACTGAGGGACTAGTTTGCGTAGAAACGGA
+CGGCCAGGCGGACGGACAGACGGACATGGCTAGATCGAATCGTCTAGTGACGTTGATTAAGAATGTATAT
+ATTTTATGGGGTCGGAAACGTCTCCTTCACTGCGTTGCAAACTTCTGACTGAAATTATTATACCCTCTGC
+AAGGGTATAATGAACATCACATAAGCACCGCACAAGAACTATTCAATGACGTCAACGACGATCCAGATTT
+ACTCAAAAAAGTCGTAGCTGGTCCCGAATTCTGGGTTTTTGCTTATAATTTCGGTACCAAAGCCCAATCC
+TTCTAACGGAAGAGCACAGATGAGCCAAGACCGAAAAAGCTAACCTTTACGCCTCTAACAACCGAACAAA
+GAATGATATAAACTTGAAACAAGGTACAGGTGTTTTGGAAAAAGTGTACCTATATACCAAACCAAAAAAA
+TTGATAATCGAAAATACGTGGCCCTCGAAGTTTGAAAAGTCACCTTTTTTTTTGAACACACCTCTTAGGT
+ATTCACTAGTCGGCATAATTATATTGACAAAACAAAAGTTAAATATACTCATAAATAAAACTTACTTCTT
+TTAACTTTTGGCATCAATGTAAATGTAATTTAAATGCTTGAACGCTTGCACTATACAATACGTATTCATT
+CAGTACTTATTGAAAAAGACGAATTTATGTTAGAATCTACTTTTAAGACTTTTTTCCTCGCCTTGAAAAC
+TTAAATTGTTTTATGCAAAAATGCTTTTTAAACCAAACTAGTAACTGTAAAGAGAAGTTTTCAAAAATCA
+TTTTGCTCATATTTTTATAATTTTTTAAGAATGATTATGTCTGAAAAAAATTGTATGAAAAAAATACAGT
+GAAGGAGAGGTTTCCGACCCCATAAAGTATATATATTCGTGATCAGCGTCACTAGACGAGTCGACCTAGC
+CAAGTCCGTCTGTCCGTCCGTCTGTCTGTCTGTTTCTACGCAAACTAGTCTCTCATTTTTAAAGCTATCG
+GTCTGAAACTTTTCCAAAAGTCTTCTTTCTATTGCAGGTAGTATAAGTCGGAACCAGCCGGATTGAACAA
+CTATATTTTATAGCTCCCATATCGGGAAAAAAACTTTTAAAAAAATATATCCTTGGTGTTTTTTAGCATA
+TACCTTTCTATATATAACATTTTTATATTATATATATTATATATCATATAGCTCCCATAGGAACAATCGG
+AAATGGTAAAATAATATTTAAAAATTATATCTTCGGTGTTTTTTAACATATAACCTCCTAAGCTTAGAAT
+TAACATTTATTATTCGGTTTTGAATTTCGAATTAAATTTGATAAAAATAGGACGACTATATCATATAGCT
+GCCATAGTAACGACCGGAAAATTAGTCAGAAAACATGAAAATTATATCTTTGGTGTTTTTAACATATAAC
+TTTATAAGTTCGAAAATAACATTTTTTAATTAGTTCTGAATTTCGAATTAAATTTTATTAAAATCGGGCG
+ACTATATCATATAGCTGTCATAGGAACGATCGGTTAATTGGTGGGAAATAATATGAAACAAATTATAGAT
+TTTTATGCTTTTTGACATATTATCTTATTATATTGGGAATATAAATTTTTATATTTTTAAGAATTTCGAA
+TTAAATTTAATAAAATTATTGATTATTTTTTACAACTGCAAGGGCTTACCGAAGTTTGTATTCTTTCCTG
+TTTTTTATCGAAACCGGATAATTTTCTTGAAGCCCAATGTGGGTCGGTGTATTGAAAACTCAAAAACTTT
+CCGTCTTGCTTTGTGATCGAATTTTTTTCGAGTTTTTATGATACAATTTTACAATGTAGGCCATACACTG
+CTTCGACAAAATGGCTAAGCGTAACTAGAAATATATAGCACAAGTCTTAAAACAAGAAATTTAGTTAACT
+TCGGCAAGCCGAAGTTTGTATACCCTTGCAGTTATAAGAAATAATCAACGTTAGTAACACCATGTTAAAT
+TTTTAAGGATTATTGCTAGCTTTAGTGATGTTAAACAATGATTTCAATACTTCTTTGATACTTTTTTTAT
+AGCAATATTTTAGAGTGGTCCAATTTTTATTAATTTTAGTTTGAAATTCCTAAAAATATAAAGAATTATA
+TTCCCAATATTATAGAATTATATATCAAAAAACACCGAAGCTATAATTTGTTTTATATTATTTTTCCACC
+AATTTTCCGATCGTTCCTATGACAGCTATATGATATAGTCGTCCGATTTTAATAAAAATGTAATTCGAAA
+TTCACAACTAATTAAAAAATGTTATTTCCAAACGAAGAAGGTTATATGTTACAAAACACCAAAGATATAA
+TTTTTATACACGTTACTCGTAGAGTAAAAGGGTATACTAGTTTCGTCGGAAAGTATGTAACAAGTAGAAG
+GAAGGAAACGCTTCCCCTTAAAGTATATATATTTTTGATCAGGATCACTAGCCGAGTCGATCTAGCCATC
+ACCGTCTGTCTGTCTATCCGAATGAACGCTGAAATCTCGGAAACTATACAAGCAAACTTGGCAATCAAAT
+TCCTGGGCTTCCTGCGCAGCGCAAGTTTGTTTCAGCGGCATGCGACGCCCACTCTACACCCACAATTCGA
+GAAAATCTGTAGCGCCTACAGTATGATAGGATCAAAATTTAAAGTGAATTGTATTTGTCTCATCAATACC
+TATCGACTGACCAAAAAAACATGTGACATTTTTCACTCCCACTCTAACTTCCACAAACGGCTTAAACGGC
+TTGTTTTAAAATTGATTTCCGATAGTTCCTATGGGATCTATAAGATACAGTTGTCCGGTTCCGTCATATA
+TACTACATGCAATAGAAAAAAGACTTTTGTGAAAGTTTCAGCCCGATAGCTCTAAAACTGAGAGACTACA
+TTTCGTAGAAGCGGACGGACAGACGGACATGGCTTGTGACGCTGATCAAAAATATATATACGTCTCCTTC
+ACTGCGTTAGAAACTTCTGACTGAATTCATTATATAGATAGATATAGAACGCGAAAGGGCTCGTGCAGAC
Binary file test-data/KB462401.keepversion.2bit has changed
Binary file test-data/KB462401.masked.2bit has changed
Binary file test-data/KB462401.unmasked.2bit has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml	Thu Jun 01 14:07:15 2017 -0400
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<tool_dependency>
+    <package name="ucsc_twobit" version="340">
+        <repository changeset_revision="f03dc0347e70" name="package_ucsc_twobit_340" owner="yating-l" toolshed="https://toolshed.g2.bx.psu.edu" />
+    </package>
+</tool_dependency>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ucsc_macros.xml	Thu Jun 01 14:07:15 2017 -0400
@@ -0,0 +1,44 @@
+<macros>
+    <xml name="requirements_twobit">
+        <requirements>
+            <requirement type="package" version="340">ucsc_twobit</requirement>
+            <yield />
+        </requirements>
+    </xml>
+    <xml name="environment_LC_COLLATE">
+        <environment_variables>
+            <!-- Sort uppercase letters before lowercase (required by UCSC tools) -->
+            <environment_variable name="LC_COLLATE">C</environment_variable>
+            <yield />
+        </environment_variables>
+    </xml>
+    <xml name="citations">
+        <citations>
+            <citation type="bibtex">
+        @article{Kent01062002,
+author = {Kent, W. James and Sugnet, Charles W. and Furey, Terrence S. and Roskin, Krishna M. and Pringle, Tom H. and Zahler, Alan M. and Haussler,  and David},
+title = {The Human Genome Browser at UCSC},
+volume = {12},
+number = {6},
+pages = {996-1006},
+year = {2002},
+doi = {10.1101/gr.229102},
+URL = {http://genome.cshlp.org/content/12/6/996.abstract},
+eprint = {http://genome.cshlp.org/content/12/6/996.full.pdf+html},
+journal = {Genome Research}
+}
+            </citation>
+            <yield />
+        </citations>
+    </xml>
+
+    <token name="@OPTIONAL_PARAM_FUNC@">
+<![CDATA[
+        #def optional_param($_flag, $_flag_value, $_sep="=")
+            #if str($_flag_value) and str($_flag_value).strip():
+                ${_flag}${_sep}${_flag_value}
+            #end if
+        #end def
+]]>
+    </token>
+</macros>