annotate sam_dump.xml @ 16:aad3885b3216 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
author iuc
date Fri, 20 Mar 2020 12:47:18 -0400
parents 1790dcf3c32d
children 7068f48d0ef9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
aad3885b3216 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents: 14
diff changeset
1 <tool id="sam_dump" name="Download and Extract Reads in BAM" version="@VERSION@+galaxy1" profile="18.01">
7
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
2 <description>format from NCBI SRA</description>
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
3 <macros>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
4 <import>sra_macros.xml</import>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
5 </macros>
16
aad3885b3216 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents: 14
diff changeset
6 <expand macro="requirements">
aad3885b3216 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents: 14
diff changeset
7 <requirement type="package" version="1.10">samtools</requirement>
aad3885b3216 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents: 14
diff changeset
8 </expand>
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
9 <version_command>sam-dump --version</version_command>
4
62e4d56ebb6f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4091428e9e28ca06263bc00cdf938d20f620aa4d
iuc
parents: 3
diff changeset
10 <command detect_errors="exit_code">
10
8c00bc7fd8de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 48c9d7f30655d48c9b46b9ca7a17c454eb54694d
iuc
parents: 9
diff changeset
11 <![CDATA[
13
c38286ea7047 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 686710a7d313b828f1daed20c4055479727f2d91
iuc
parents: 10
diff changeset
12 @SET_ACCESSIONS@
1
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
13
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
14 ## Need to set the home directory to the current working directory,
2
f256cb398262 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4e83a7f6d542cd3129eb14a142f74c127f91d026
iuc
parents: 1
diff changeset
15 ## else the tool tries to write to home/.ncbi and fails when used
f256cb398262 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4e83a7f6d542cd3129eb14a142f74c127f91d026
iuc
parents: 1
diff changeset
16 ## with a cluster manager.
16
aad3885b3216 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents: 14
diff changeset
17 @CONFIGURE_TIMEOUT@
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
18 vdb-config -s "/repository/user/main/public/root=\$PWD" &&
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
19 ## Do not use prefetch if region is specified, to avoid downloading
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
20 ## the complete sra file.
14
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
21
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
22 #if $input.input_select == "file":
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
23 sam-dump --log-level fatal '${input.file.name}'
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
24 #else:
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
25 #if ( str( $adv.region ) == "" ):
16
aad3885b3216 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents: 14
diff changeset
26 prefetch -X 200000000 "\$acc" &&
14
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
27 ## Duplicate vdb-config, in case settings changed between prefetch and
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
28 ## dump command.
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
29 vdb-config -s "/repository/user/main/public/root=\$PWD" &&
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
30 #end if
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
31 sam-dump --log-level fatal --disable-multithreading
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
32 #end if
14
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
33
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
34 #if str( $adv.region ) != "":
10
8c00bc7fd8de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 48c9d7f30655d48c9b46b9ca7a17c454eb54694d
iuc
parents: 9
diff changeset
35 --aligned-region '$adv.region'
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
36 #end if
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
37 #if str( $adv.matepairDist ) != "":
10
8c00bc7fd8de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 48c9d7f30655d48c9b46b9ca7a17c454eb54694d
iuc
parents: 9
diff changeset
38 --matepair-distance '$adv.matepairDist'
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
39 #end if
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
40 #if str( $adv.minMapq ) != "":
10
8c00bc7fd8de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 48c9d7f30655d48c9b46b9ca7a17c454eb54694d
iuc
parents: 9
diff changeset
41 --min-mapq '$adv.minMapq'
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
42 #end if
10
8c00bc7fd8de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 48c9d7f30655d48c9b46b9ca7a17c454eb54694d
iuc
parents: 9
diff changeset
43 --header
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
44 #if str( $adv.alignments ) == "both":
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
45 --unaligned
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
46 #end if
14
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
47
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
48 #if str( $adv.alignments ) == "unaligned":
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
49 --unaligned-spots-only
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
50 #end if
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
51 #if (str( $adv.primary ) == "yes") and (str ( $adv.alignments != "unaligned") ):
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
52 --primary
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
53 #end if
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
54 #if $input.input_select == "file":
10
8c00bc7fd8de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 48c9d7f30655d48c9b46b9ca7a17c454eb54694d
iuc
parents: 9
diff changeset
55 '$input.file'
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
56 #elif $input.input_select == "accession_number":
1
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
57 "\$acc"
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
58 #elif $input.input_select=="file_list":
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
59 "\$acc"
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
60 #end if
2
f256cb398262 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4e83a7f6d542cd3129eb14a142f74c127f91d026
iuc
parents: 1
diff changeset
61
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
62 #if str( $outputformat ) == "bam":
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
63 | samtools view -Sb - 2> /dev/null
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
64 #end if
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
65 #if $input.input_select == "file":
10
8c00bc7fd8de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 48c9d7f30655d48c9b46b9ca7a17c454eb54694d
iuc
parents: 9
diff changeset
66 > '$output_file'
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
67 #elif $input.input_select == "accession_number":
10
8c00bc7fd8de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 48c9d7f30655d48c9b46b9ca7a17c454eb54694d
iuc
parents: 9
diff changeset
68 > '$output_accession' )
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
69 #end if
1
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
70
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
71 #if $input.input_select=="file_list":
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
72 #if str( $outputformat ) == "bam":
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
73 > "\$acc.bam"
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
74 #elif str( $outputformat ) == "sam":
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
75 > "\$acc.sam"
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
76 #end if
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
77 ) ; done
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
78 #end if
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
79
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
80 ]]>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
81 </command>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
82 <inputs>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
83 <expand macro="input_conditional"/>
7
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
84 <param name="outputformat" type="select" display="radio" label="select output format" help="In vast majority of cases you want to download data in bam format. It is more compact and is accepted by all downstream tools.">
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
85 <option value="bam">bam</option>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
86 <option value="sam">sam</option>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
87 </param>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
88 <section name="adv" title="Advanced Options" expanded="False">
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
89 <expand macro="alignments"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
90 <expand macro="region"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
91 <expand macro="matepairDist"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
92 <param name="primary" type="select" value="no">
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
93 <label>only primary aligments</label>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
94 <option value="no">No</option>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
95 <option value="yes">Yes</option>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
96 </param>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
97 <expand macro="minMapq"></expand>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
98 </section>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
99 </inputs>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
100 <outputs>
7
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
101 <collection name="output_collection" type="list" label="SAM/BAM data (fastq-dump)">
1
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
102 <filter>input['input_select'] == "file_list"</filter>
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
103 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.bam" directory="." ext='bam'/>
462ee06c9358 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4defaa3ff1c21e2ec39033bfe63ee69471104ede
iuc
parents: 0
diff changeset
104 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.sam" directory="." ext='sam'/>
2
f256cb398262 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 4e83a7f6d542cd3129eb14a142f74c127f91d026
iuc
parents: 1
diff changeset
105 </collection>
7
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
106 <data name="output_accession" format="bam" label="${input.accession} (sam-dump)">
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
107 <filter>input['input_select'] == "accession_number"</filter>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
108 <change_format>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
109 <when input="outputformat" value="sam" format="sam"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
110 </change_format>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
111 </data>
7
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
112 <data name="output_file" format="bam" label="${input.file.name} (sam-dump)">
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
113 <filter>input['input_select'] == "file"</filter>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
114 <change_format>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
115 <when input="outputformat" value="sam" format="sam"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
116 </change_format>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
117 </data>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
118 </outputs>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
119 <tests>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
120 <test>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
121 <param name="input_select" value="accession_number"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
122 <param name="accession" value="SRR925743"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
123 <param name="outputformat" value="sam"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
124 <param name="region" value="17:41243452-41277500"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
125 <output name="output_accession" file="sam_dump_result.sam" compare="contains" ftype="sam"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
126 </test>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
127 </tests>
7
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
128 <help><![CDATA[
10
8c00bc7fd8de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 48c9d7f30655d48c9b46b9ca7a17c454eb54694d
iuc
parents: 9
diff changeset
129
7
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
130 **What it does?**
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
131
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
132 This tool extracts data (in BAM_ format) from the Short Read Archive (SRA) at the National Center for Biotechnology Information (NCBI). It is based on the sam-dump_ utility of the SRA Toolkit.
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
133
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
134 **How to use it?**
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
135
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
136 There are three ways in which you can download data:
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
137
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
138 1. Data for single accession
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
139 2. Multiple datasets using a list of accessions
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
140 3. Extract data from already uploaded SRA dataset
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
141
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
142 Below we discuss each in detail.
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
143
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
144 ------
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
145
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
146 **Uploading data for a single accession**
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
147
14
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
148 When you type a single accession number (e.g., `SRR1582967`) into **Accession** box and click **Execute** the tool will fetch data for you. As a result you will get a single BAM (or SAM) dataset in the history.
7
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
149
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
150 -----
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
151
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
152 **Uploading multiple datasets using a list of accessions**
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
153
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
154 A more realistic scenario is when you want to upload a number of datasets at once. To do this you need a list of accession, where there is only one accession per line (see below for information on how to generate such a file). Once you have this file:
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
155
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
156 1. Upload it into your history using Galaxy's upload tool
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
157 2. Once the list of accessions is uploaded choose *List of SRA accessions, one per line* from **select input type** dropdown
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
158 3. Choose uploaded file within the **sra accession list** field
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
159 4. Click **Execute**
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
160
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
161 .. class:: warningmark
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
162
14
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
163 BAM datasets produced by this option will be saved in Galaxy's history as a collection_ - a single history element containing multiple datasets.
7
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
164
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
165 -----
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
166
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
167 **Extract data from already uploaded SRA dataset**
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
168
14
1790dcf3c32d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 30ec06de1f3056967f5cc2d8ef57f9692d5533d7
iuc
parents: 13
diff changeset
169 If a SRA dataset is present in the history, it can be converted into BAM dataset by setting **select input type** drop-down to *SRA archive in current history*. Just like in the case of extracting data for single accession number a single BAM dataset will be generated in the history.
7
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
170
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
171 @ACCESSION_LIST_HOWTO@
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
172
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
173 -----
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
174
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
175 .. _BAM: https://samtools.github.io/hts-specs/SAMv1.pdf
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
176 .. _sam-dump: http://ncbi.github.io/sra-tools/sam-dump.html
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
177 .. _collection: https://galaxyproject.org/tutorials/collections/
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
178 .. _link: http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=studies
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
179
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
180 @SRATOOLS_ATTRRIBUTION@
c7620aa7e1f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d1347141d384ed404f674d7ce408b6769e763ea1
iuc
parents: 4
diff changeset
181 ]]></help>
0
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
182 <expand macro="citation"/>
b723c120161a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d555f296be01d0c0fa5ac28d28a48cf4ada98297
iuc
parents:
diff changeset
183 </tool>