annotate sra_tools-04cc8176e86f/fastq_dump.xml @ 0:c386fe82db82

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