changeset 0:f57f28bdd39b draft

"planemo upload for repository https://github.com/phac-nml/galaxy_tools commit 6d09bbbbade6035f9acc0345bee9f4bb71cfc102"
author nml
date Thu, 19 Dec 2019 10:07:39 -0500
parents
children 4a80a8ffb288
files spades_header_fixer.xml test-data/spades_before.fasta test-data/spades_header_fixed.fasta
diffstat 3 files changed, 65 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/spades_header_fixer.xml	Thu Dec 19 10:07:39 2019 -0500
@@ -0,0 +1,35 @@
+<tool id="spades_header_fixer" name="SPAdes fasta header fixer" version="1.1.1">
+	<description>Fixes Spades Fasta ids</description>
+  <requirements>
+      <requirement type="package" version="4.7.0">sed</requirement>
+  </requirements>
+	<command >sed -r "s/>NODE(_[0-9]+)_(.*)/>${input.element_identifier}\1 \2/g" $input >$output</command>
+	<inputs>
+		<param name="input" type="data" format="fasta" label="Fix these fasta headers"/>
+		</inputs>
+	<outputs>
+		<data name="output" format="fasta"/>
+	</outputs>
+  <tests>
+    <test>
+         <param name="input" value="spades_before.fasta" />
+         <output name="output" file="spades_header_fixed.fasta" ftype="fasta"/>
+    </test>
+  </tests>
+
+	<help><![CDATA[
+    SPAdes fasta header fixer
+    =======
+
+    The SPAdes header fixer tool replaces the default value of NODE from SPAdes fasta header(s) to either a filename or a collection identifier.
+	]]></help>
+
+  <citations>
+        <citation type="bibtex">@ARTICLE{a1,
+            title = {SPAdes fasta header fixer},
+            author = {Philip Mabon},
+            url = {https://github.com/phac-nml/galaxy_tools}
+            }
+        }</citation>
+    </citations>
+</tool>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/spades_before.fasta	Thu Dec 19 10:07:39 2019 -0500
@@ -0,0 +1,15 @@
+>NODE_1_length_792_cov_31.561498
+TTGCCGTATACACACTTTCCAGGCGTGCTCCTTCAGCCACTCGGACACCTCACCAAATTG
+TCGCTCCAGCATTACTGGAACGGGCGCTAATGTAGGGAAATATCTTTTCTACGTCAATCA
+ACTTTTTTAAAAAAAAGCGCGTTTATACAAACTTCCACCAATCTGTGGTTTTAATAAGCG
+AAAACTGCTTTTTTTGCCCGCGCCGGGAAATTTGCTATGCTGCACATCCCGTTGAAAACG
+CTGATAACAGGCGCAATCACATTCCGCACAATACTGCTCAGGAGATAACATGGAGATAAT
+TTTTTATCACCCGACATTTAACACCGCCTGGTGGGTAAATGCGCTGGAGAAGGCTCTCCC
+ACATGCGCGCGTTCGTGAATGGAAGGTCGGTGATAACAACCCCGCAGACTATGCGCTTGT
+ATGGCAGCCCCCGGTTGAAATGCTGGCCGGAAGACGCTTAAAAGCCGTCTTTGCGCTGGG
+CGCGGGGGTGGATGCAATTCTGAGTAAATTAAATGCGCATCCGGAAATGCTGGACGCCTC
+CATTCCTCTATTCCGTCTGGAAGATACCGGAATGGGCCTGCAAATGCAGGAATATGCCGT
+AAGTCAGGTATTACACTGGTTCCGTCGTTTCGATGATTATCAGGCGCTGAAAAATCAGGC
+GCTATGGAAACCGTTGCCGGAATATACCCGCGAAGAGTTTAGCGTCGGTATCATGGGCGC
+AGGGGTACTGGGCGCAAAAGTGGCAGAAAGTCTACAGGCGTGGGGGTTCCCGTTACGTTG
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/spades_header_fixed.fasta	Thu Dec 19 10:07:39 2019 -0500
@@ -0,0 +1,15 @@
+>spades_before.fasta_1 length_792_cov_31.561498
+TTGCCGTATACACACTTTCCAGGCGTGCTCCTTCAGCCACTCGGACACCTCACCAAATTG
+TCGCTCCAGCATTACTGGAACGGGCGCTAATGTAGGGAAATATCTTTTCTACGTCAATCA
+ACTTTTTTAAAAAAAAGCGCGTTTATACAAACTTCCACCAATCTGTGGTTTTAATAAGCG
+AAAACTGCTTTTTTTGCCCGCGCCGGGAAATTTGCTATGCTGCACATCCCGTTGAAAACG
+CTGATAACAGGCGCAATCACATTCCGCACAATACTGCTCAGGAGATAACATGGAGATAAT
+TTTTTATCACCCGACATTTAACACCGCCTGGTGGGTAAATGCGCTGGAGAAGGCTCTCCC
+ACATGCGCGCGTTCGTGAATGGAAGGTCGGTGATAACAACCCCGCAGACTATGCGCTTGT
+ATGGCAGCCCCCGGTTGAAATGCTGGCCGGAAGACGCTTAAAAGCCGTCTTTGCGCTGGG
+CGCGGGGGTGGATGCAATTCTGAGTAAATTAAATGCGCATCCGGAAATGCTGGACGCCTC
+CATTCCTCTATTCCGTCTGGAAGATACCGGAATGGGCCTGCAAATGCAGGAATATGCCGT
+AAGTCAGGTATTACACTGGTTCCGTCGTTTCGATGATTATCAGGCGCTGAAAAATCAGGC
+GCTATGGAAACCGTTGCCGGAATATACCCGCGAAGAGTTTAGCGTCGGTATCATGGGCGC
+AGGGGTACTGGGCGCAAAAGTGGCAGAAAGTCTACAGGCGTGGGGGTTCCCGTTACGTTG
+