changeset 0:4a455773d235 draft

Uploaded
author mandorodriguez
date Mon, 28 Sep 2015 12:53:10 -0400
parents
children 3c39bed00a4c
files fastq_dump_paired.xml
diffstat 1 files changed, 51 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fastq_dump_paired.xml	Mon Sep 28 12:53:10 2015 -0400
@@ -0,0 +1,51 @@
+<tool id="fastq_dump_paired" name="FASTQ Dump paired downloader" version="1.0">
+    <description>Downloads a set of paired reads by their accession number using fastq-dump tool from sra-toolkit.</description>
+    <requirements>
+       <!-- Should just use the samtools that's installed in the path -->
+       <requirement type="binary">fastq-dump</requirement>
+    </requirements>
+    <command>
+## The command is a Cheetah template which allows some Python based syntax.
+## Lines starting hash hash are comments. Galaxy will turn newlines into spaces
+## ! We only have a simple single command here.
+fastq-dump --log-level fatal --split-3 --accession ${accession_number};
+ls -lh | grep ${accession_number};
+mv -v ${accession_number}_1.fastq R1.fastq;
+mv -v ${accession_number}_2.fastq R2.fastq;
+    </command>
+    <inputs>
+        <param name="accession_number" size="10" type="text" value="" label="Accession Number"/>
+    </inputs>
+    <outputs>
+       <data format="fastq" label="${tool.name} on ${on_string}: Forward Reads" name="forward_reads" from_work_dir="R1.fastq" >
+       </data>
+       <data format="fastq" label="${tool.name} on ${on_string}: Reverse Reads" name="reverse_reads" from_work_dir="R2.fastq" >
+       </data>
+    </outputs>
+    
+    <tests>
+    <!-- Empty -->
+    </tests>
+
+    <help>
+
+.. class:: infomark
+
+**What it does**
+
+Performs a fastq-dump with the split-3 option.
+
+::
+
+  fastq-dump --log-level fatal --split-3 --accession accession_number
+
+------
+
+.. class:: infomark
+
+**Tool Author**
+
+Mando Rodriguez
+
+    </help>
+</tool>
\ No newline at end of file