annotate fastq_dump.xml @ 24:22d9fe442c50

This is coming together.
author Matt Shirley <mdshw5@gmail.com>
date Mon, 30 Mar 2015 21:33:57 -0400
parents eb55ff614fed
children 393a04ec0fa9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
eb55ff614fed Fixed bug affecting --split-spot option.
Matt Shirley <mdshw5@gmail.com>
parents: 8
diff changeset
1 <tool id="fastq_dump" name="Extract reads" version="1.1.2">
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
2 <description> from NCBI SRA.</description>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
3 <command>
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
4 fastq-dump --log-level fatal
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
5 #if $input.input_select == "file":
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
6 --accession '${input.file.name}'
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
7 #else:
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
8 --accession $input.accession
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
9 #end if
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
10 --defline-seq '@\$sn[_\$rn]/\$ri'
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
11 --stdout
9
eb55ff614fed Fixed bug affecting --split-spot option.
Matt Shirley <mdshw5@gmail.com>
parents: 8
diff changeset
12 #if str( $split ) == "yes":
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
13 --split-spot
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
14 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
15 #if str( $alignments ) == "aligned":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
16 --aligned
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
17 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
18 #if str( $alignments ) == "unaligned":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
19 --unaligned
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
20 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
21 #if str( $minID ) != "":
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
22 --minSpotId $minID
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
23 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
24 #if str( $maxID ) != "":
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
25 --maxSpotId $maxID
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
26 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
27 #if str( $minlen ) != "":
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
28 --minReadLen $minlen
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
29 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
30 #if str( $readfilter ) != "":
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
31 --read-filter $readfilter
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
32 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
33 #if str( $region ) != "":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
34 --aligned-region $region
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
35 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
36 #if str( $spotgroups ) != "":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
37 --spot-groups $spotgroups
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
38 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
39 #if str( $matepairDist ) != "":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
40 --matepair-distance $matepairDist
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
41 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
42 #if $clip == "yes":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
43 --clip
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
44 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
45 #if str( $outputformat ) == "fasta":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
46 --fasta
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
47 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
48 #if $input.input_select=="file":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
49 $input.file
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
50 #else:
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
51 $input.accession
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
52 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
53 > $output
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
54 </command>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
55 <version_string>fastq-dump --version</version_string>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
56 <inputs>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
57 <conditional name="input">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
58 <param name="input_select" type="select" label="select input type">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
59 <option value="accession_number">SRR accession</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
60 <option value="file">SRA archive in current history</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
61 </param>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
62 <when value="file">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
63 <param format="sra" name="file" type="data" label="sra archive"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
64 </when>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
65 <when value="accession_number">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
66 <param format="text" name="accession" type="text" label="accession"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
67 </when>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
68 </conditional>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
69 <param format="text" name="minID" type="text" label="minimum spot ID"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
70 <param format="text" name="maxID" type="text" label="maximum spot ID"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
71 <param format="text" name="minlen" type="text" label="minimum read length"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
72 <param format="text" name="split" type="select" value="yes">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
73 <label>split spot by read pairs</label>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
74 <option value="yes">Yes</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
75 <option value="no">No</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
76 </param>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
77 <param format="text" name="alignments" type="select" value="both">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
78 <label>aligned or unaligned reads</label>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
79 <option value="both">both</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
80 <option value="aligned">aligned only</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
81 <option value="unaligned">unaligned only</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
82 </param>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
83 <param format="text" name="region" type="text" label="aligned region"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
84 <param format="text" name="matepairDist" type="text" label="mate-pair distance (from-to|unknown)"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
85 <param format="text" name="readfilter" type="select" value="">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
86 <label>filter by value</label>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
87 <option value="">None</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
88 <option value="pass">pass</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
89 <option value="reject">reject</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
90 <option value="criteria">criteria</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
91 <option value="redacted">redacted</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
92 </param>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
93 <param name="outputformat" type="select" label="select output format">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
94 <option value="fastqsanger">fastq</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
95 <option value="fasta">fasta</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
96 </param>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
97 <param format="text" name="spotgroups" type="text" label="filter by spot-groups"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
98 <param format="text" name="clip" type="select" value="no">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
99 <label>apply left and right clips</label>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
100 <option value="no">No</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
101 <option value="yes">Yes</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
102 </param>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
103 </inputs>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
104 <outputs>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
105 <data format="fastq" name="output">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
106 <change_format>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
107 <when input="outputformat" value="fasta" format="fasta" />
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
108 </change_format>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
109 </data>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
110 </outputs>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
111 <stdio>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
112 <exit_code range="127" level="fatal" description="Could not locate fastq-dump binary"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
113 </stdio>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
114 <requirements>
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
115 <requirement type="package" version="2.3.4-2">sra_toolkit</requirement>
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
116 </requirements>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
117 <help>
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
118 This tool extracts reads from SRA archives using fastq-dump.
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
119 Browse the NCBI SRA for SRR accessions at http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=studies.
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
120 The fastq-dump program is developed at NCBI, and is available at: http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software.
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
121 Contact Matt Shirley at mdshw5@gmail.com for support and bug reports.
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
122 </help>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
123 </tool>