annotate sam_dump.xml @ 28:fdc981664a43

Update to most recent GitHub version passing tests.
author Matt Shirley <mdshw5@gmail.com>
date Wed, 01 Apr 2015 12:35:38 -0400
parents 393a04ec0fa9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
548b3e8d7a0a bump sam-dump version
Matt Shirley <mdshw5@gmail.com>
parents: 2
diff changeset
1 <tool id="sam_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> in SAM format from NCBI SRA.</description>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
3 <command>
28
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
4 sam-dump --log-level fatal --disable-multithreading
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
5 #if str( $region ) != "":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
6 --aligned-region $region
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
7 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
8 #if str( $matepairDist ) != "":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
9 --matepair-distance $matepairDist
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
10 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
11 #if str( $minMapq ) != "":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
12 --minmapq $minMapq
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
13 #end if
28
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
14 #if str( $header ) == "yes":
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
15 --header
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
16 #else:
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 4
diff changeset
17 --no-header
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
18 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
19 #if str( $alignments ) == "both":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
20 --unaligned
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
21 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
22 #if str( $alignments ) == "unaligned":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
23 --unaligned-spots-only
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
24 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
25 #if (str( $primary ) == "yes") and (str ( $alignments != "unaligned") ):
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
26 --primary
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
27 #end if
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
28 #if $input.input_select == "file":
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
29 $input.file
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
30 #elif $input.input_select == "accession_number":
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 4
diff changeset
31 $input.accession
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 > $output
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 4
diff changeset
34 </command>
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
35 <version_string>sam-dump --version</version_string>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
36 <inputs>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
37 <conditional name="input">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
38 <param name="input_select" type="select" label="select input type">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
39 <option value="accession_number">SRR accession</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
40 <option value="file">SRA archive in current history</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
41 </param>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
42 <when value="file">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
43 <param format="sra" name="file" type="data" label="sra archive"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
44 </when>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
45 <when value="accession_number">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
46 <param format="text" name="accession" type="text" label="accession"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
47 </when>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
48 </conditional>
28
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
49 <param format="text" name="region" type="text" label="aligned region (chr:start-end)"/>
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
50 <param format="text" name="matepairDist" type="text" label="mate-pair distance (from-to)"/>
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
51 <param format="text" name="header" type="select" value="yes">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
52 <label>output SAM header</label>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
53 <option value="yes">Yes</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
54 <option value="no">No</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
55 </param>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
56 <param format="text" name="alignments" type="select" value="both">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
57 <label>aligned or unaligned reads</label>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
58 <option value="both">both</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
59 <option value="aligned">aligned only</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
60 <option value="unaligned">unaligned only</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 <param format="text" name="primary" type="select" value="no">
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
63 <label>only primary aligments</label>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
64 <option value="no">No</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
65 <option value="yes">Yes</option>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
66 </param>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
67 <param format="text" name="minMapq" type="text" label="minimum mapping quality"/>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
68 </inputs>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
69 <outputs>
28
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
70 <data name="output" format="sam"/>
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
71 </outputs>
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
72 <requirements>
25
393a04ec0fa9 Update tool requirement versions.
Matt Shirley <mdshw5@gmail.com>
parents: 8
diff changeset
73 <requirement type="package" version="2.4.5">sra_toolkit</requirement>
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
74 </requirements>
28
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
75 <tests>
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
76 <test>
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
77 <param name="input_select" value="accession_number"/>
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
78 <param name="accession" value="SRR925743"/>
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
79 <param name="region" value="17:41243452-41277500"/>
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
80 <output name="output" file="sam_dump_result.sam" ftype="sam" />
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
81 </test>
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
82 </tests>
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
83 <help>
28
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
84 This tool extracts reads from sra archives using sam-dump.
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
85 Browse the NCBI SRA for SRR accessions at http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=studies.
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
86 The sam-dump program is developed at NCBI, and is available at: http://github.com/ncbi/sra-tools
fdc981664a43 Update to most recent GitHub version passing tests.
Matt Shirley <mdshw5@gmail.com>
parents: 25
diff changeset
87 Please submit inquiries and bug reports to http://github.com/mdshw5/sra-tools-galaxy.
2
293927a46697 Move from test tool shed
Matt Shirley <mdshw5@gmail.com>
parents:
diff changeset
88 </help>
8
558a88cd49e4 bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents: 4
diff changeset
89 </tool>