Mercurial > repos > matt-shirley > ncbi_sra_toolkit
annotate sam_dump.xml @ 29:ce2bb7841f17 default tip
Fix for https://github.com/mdshw5/sra-tools-galaxy/issues/1
author | Matt Shirley <mdshw5@gmail.com> |
---|---|
date | Tue, 07 Apr 2015 09:09:23 -0400 |
parents | fdc981664a43 |
children |
rev | line source |
---|---|
4 | 1 <tool id="sam_dump" name="Extract reads" version="1.1.2"> |
2 | 2 <description> in SAM format from NCBI SRA.</description> |
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 | 5 #if str( $region ) != "": |
6 --aligned-region $region | |
7 #end if | |
8 #if str( $matepairDist ) != "": | |
9 --matepair-distance $matepairDist | |
10 #end if | |
11 #if str( $minMapq ) != "": | |
12 --minmapq $minMapq | |
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 | 15 --header |
16 #else: | |
8
558a88cd49e4
bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents:
4
diff
changeset
|
17 --no-header |
2 | 18 #end if |
19 #if str( $alignments ) == "both": | |
20 --unaligned | |
21 #end if | |
22 #if str( $alignments ) == "unaligned": | |
23 --unaligned-spots-only | |
24 #end if | |
25 #if (str( $primary ) == "yes") and (str ( $alignments != "unaligned") ): | |
26 --primary | |
27 #end if | |
28 #if $input.input_select == "file": | |
29 $input.file | |
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 | 32 #end if |
33 > $output | |
8
558a88cd49e4
bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents:
4
diff
changeset
|
34 </command> |
2 | 35 <version_string>sam-dump --version</version_string> |
36 <inputs> | |
37 <conditional name="input"> | |
38 <param name="input_select" type="select" label="select input type"> | |
39 <option value="accession_number">SRR accession</option> | |
40 <option value="file">SRA archive in current history</option> | |
41 </param> | |
42 <when value="file"> | |
43 <param format="sra" name="file" type="data" label="sra archive"/> | |
44 </when> | |
45 <when value="accession_number"> | |
46 <param format="text" name="accession" type="text" label="accession"/> | |
47 </when> | |
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 | 51 <param format="text" name="header" type="select" value="yes"> |
52 <label>output SAM header</label> | |
53 <option value="yes">Yes</option> | |
54 <option value="no">No</option> | |
55 </param> | |
56 <param format="text" name="alignments" type="select" value="both"> | |
57 <label>aligned or unaligned reads</label> | |
58 <option value="both">both</option> | |
59 <option value="aligned">aligned only</option> | |
60 <option value="unaligned">unaligned only</option> | |
61 </param> | |
62 <param format="text" name="primary" type="select" value="no"> | |
63 <label>only primary aligments</label> | |
64 <option value="no">No</option> | |
65 <option value="yes">Yes</option> | |
66 </param> | |
67 <param format="text" name="minMapq" type="text" label="minimum mapping quality"/> | |
68 </inputs> | |
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 | 71 </outputs> |
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 | 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 | 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 | 88 </help> |
8
558a88cd49e4
bump toolkit versions, old registration path
Matt Shirley <mdshw5@gmail.com>
parents:
4
diff
changeset
|
89 </tool> |