annotate fasterq_dump.xml @ 26:f7732611d0fc draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
author iuc
date Mon, 26 Aug 2024 14:59:07 +0000
parents 6669afa92957
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
1 <tool id="fasterq_dump" name="Faster Download and Extract Reads in FASTQ" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
2 <description>format from NCBI SRA</description>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
3 <macros>
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
4 <import>macros.xml</import>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
5 </macros>
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
6 <expand macro="edam_ontology"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
7 <expand macro="bio_tools"/>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
8 <expand macro="requirements"/>
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
9 <version_command>fasterq-dump --version | tr -d $'\n'</version_command>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
10 <command detect_errors="exit_code"><![CDATA[
20
b50c21c6e6bb "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 3c5c7587a9e8f4177db5ff1390b7e29cb190eb72"
iuc
parents: 19
diff changeset
11 set -o | grep -q pipefail && set -o pipefail;
17
37f09413ddbf "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d22c001db39b52ebaa54837bebe2765c17b5c876"
iuc
parents: 16
diff changeset
12 @COPY_CONFIGFILE@
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
13 @CONFIGURE_RETRY@
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
14 @SET_ACCESSIONS@
16
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
15 while [ \$SRA_PREFETCH_ATTEMPT -le \$SRA_PREFETCH_RETRIES ] ; do
26
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
16 fasterq-dump "\$acc"
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
17 -e \${GALAXY_SLOTS:-1}
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
18 -t \${TMPDIR}
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
19 --seq-defline '$adv.seq_defline'
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
20 --qual-defline '+'
16
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
21 $adv.split
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
22 #if str( $adv.minlen ) != "":
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
23 --min-read-len "$adv.minlen"
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
24 #end if
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
25 $adv.skip_technical 2>&1 | tee -a '$log';
17
37f09413ddbf "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d22c001db39b52ebaa54837bebe2765c17b5c876"
iuc
parents: 16
diff changeset
26 if [ \$? == 0 ] && [ \$(ls *.fastq | wc -l) -ge 1 ]; then
16
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
27 break ;
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
28 else
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
29 echo "Prefetch attempt \$SRA_PREFETCH_ATTEMPT of \$SRA_PREFETCH_RETRIES exited with code \$?" ;
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
30 SRA_PREFETCH_ATTEMPT=`expr \$SRA_PREFETCH_ATTEMPT + 1` ;
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
31 sleep 1 ;
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
32 fi ;
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
33 done &&
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
34 mkdir -p output &&
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
35 mkdir -p outputOther &&
17
37f09413ddbf "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d22c001db39b52ebaa54837bebe2765c17b5c876"
iuc
parents: 16
diff changeset
36 count="\$(ls *.fastq | wc -l)" &&
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
37 echo "There are \$count fastq files" &&
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
38 data=(\$(ls *.fastq)) &&
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
39 if [ "\$count" -eq 1 ]; then
16
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
40 @COMPRESS@ "\${data[0]}" > output/"\${acc}"__single.fastqsanger.gz &&
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
41 rm "\${data[0]}";
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
42 elif [ "$adv.split" = "--split-3" ]; then
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
43 if [ -e "\${acc}".fastq ]; then
16
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
44 @COMPRESS@ "\${acc}".fastq > outputOther/"\${acc}"__single.fastqsanger.gz;
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
45 fi &&
16
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
46 @COMPRESS@ "\${acc}"_1.fastq > output/"\${acc}"_forward.fastqsanger.gz &&
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
47 @COMPRESS@ "\${acc}"_2.fastq > output/"\${acc}"_reverse.fastqsanger.gz &&
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
48 rm "\${acc}"*.fastq;
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
49 elif [ "\$count" -eq 2 ]; then
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
50 #if $adv.skip_technical:
16
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
51 @COMPRESS@ "\${data[0]}" > output/"\${acc}"_forward.fastqsanger.gz &&
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
52 @COMPRESS@ "\${data[1]}" > output/"\${acc}"_reverse.fastqsanger.gz &&
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
53 #else
16
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
54 @COMPRESS@ "\${data[0]}" > outputOther/"\${data[0]}"sanger.gz &&
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
55 @COMPRESS@ "\${data[1]}" > outputOther/"\${data[1]}"sanger.gz &&
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
56 #end if
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
57 rm "\${data[0]}" &&
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
58 rm "\${data[1]}";
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
59 else
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
60 for file in \${data[*]}; do
16
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
61 @COMPRESS@ "\$file" > outputOther/"\$file"sanger.gz &&
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
62 rm "\$file";
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
63 done;
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
64 fi;
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
65
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
66 #if $input.input_select != "sra_file":
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
67 ); done;
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
68 #end if
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
69 echo "Done with all accessions."
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
70 ]]>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
71 </command>
17
37f09413ddbf "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit d22c001db39b52ebaa54837bebe2765c17b5c876"
iuc
parents: 16
diff changeset
72 <expand macro="configfile_hack"/>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
73 <inputs>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
74 <expand macro="input_conditional"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
75 <section name="adv" title="Advanced Options" expanded="False">
26
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
76 <expand macro="defline" defline_param="--seq-defline" defline_default="@$ac.$sn/$ri"/>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
77 <param name="minlen" type="integer" label="Minimum read length" optional="true" help="Filter by sequence length. Will dump only reads longer or equal to this value." argument="--min-read-len"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
78 <param name="split" type="select" display="radio" label="Select how to split the spots" help="This option will only be used when there are multiple reads per spot (for example paired-end).">
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
79 <option value="--split-3">--split-3: write properly paired biological reads into different files and single reads in another file</option>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
80 <option value="--split-files">--split-files: write reads into different files (forward and reverse may not match if one read is empty)</option>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
81 <option value="--split-spot">--split-spot: split spots into reads (only one output file)</option>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
82 <option value="--concatenate-reads">--concatenate-reads: writes whole spots into one file</option>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
83 </param>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
84 <param name="skip_technical" type="boolean" truevalue="--skip-technical" falsevalue="--include-technical" checked="True" label="Dump only biological reads" help="Will not be used if --split-3 is selected." argument="--skip-technical/--include-technical"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
85 </section>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
86 </inputs>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
87 <outputs>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
88 <data name="log" format="txt" label="fasterq-dump log"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
89 <collection name="list_paired" type="list:paired" label="Pair-end data (fasterq-dump)">
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
90
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
91 <!-- Use named regex group to grab pattern
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
92 <identifier_0>_<identifier_1>.fq. Here identifier_0 is the list
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
93 identifier in the nested collection and identifier_1 is either
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
94 forward or reverse (for instance samp1_forward.fq).
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
95 -->
16
f61761f373ea "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit e00e33a3405201e8decbbb641ad0a8c3e16c8bef"
iuc
parents: 15
diff changeset
96
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
97 <discover_datasets pattern="(?P&lt;identifier_0&gt;[^_]+)_(?P&lt;identifier_1&gt;[^_]+)\.fastqsanger.gz" directory="output" ext="fastqsanger.gz" />
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
98 </collection>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
99 <collection name="output_collection" type='list' label="Single-end data (fasterq-dump)">
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
100 <discover_datasets pattern="(?P&lt;designation&gt;.+)__single\.fastqsanger.gz" directory="output" ext='fastqsanger.gz'/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
101 </collection>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
102 <collection name="output_collection_other" type='list' label="Other data (fasterq-dump)">
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
103 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.fastqsanger\.gz" directory="outputOther" format="fastqsanger.gz"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
104 </collection>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
105 </outputs>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
106 <tests>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
107 <test expect_num_outputs="4">
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
108 <param name="input_select" value="accession_number"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
109 <param name="accession" value="ERR086330"/>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
110 <output_collection name="list_paired" type="list:paired" count="1">
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
111 <element name="ERR086330">
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
112 <element name="forward" file="ERR086330_1.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
113 <element name="reverse" file="ERR086330_2.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
114 </element>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
115 </output_collection>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
116 </test>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
117 <test expect_num_outputs="4">
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
118 <param name="input_select" value="accession_number"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
119 <param name="accession" value="SRR002702"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
120 <param name="split" value="--split-files"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
121 <param name="skip_technical" value="False"/>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
122 <output_collection name="output_collection_other" type="list" count="2">
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
123 <element name="SRR002702_1" file="SRR002702_1.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
124 <element name="SRR002702_2" file="SRR002702_2.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
125 </output_collection>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
126 </test>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
127 <test expect_num_outputs="4">
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
128 <param name="input_select" value="accession_number"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
129 <param name="accession" value="ERR086330, SRR11953971"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
130 <output_collection name="list_paired" type="list:paired" count="2">
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
131 <element name="ERR086330">
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
132 <element name="forward" file="ERR086330_1.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
133 <element name="reverse" file="ERR086330_2.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
134 </element>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
135 <element name="SRR11953971">
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
136 <element name="forward" file="SRR11953971_1.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
137 <element name="reverse" file="SRR11953971_2.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
138 </element>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
139 </output_collection>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
140 </test>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
141 <test expect_num_outputs="4">
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
142 <param name="input_select" value="sra_file"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
143 <param name="sra_file" value="SRR522874.sra"/>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
144 <param name="split" value="--split-files"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
145 <param name="skip_technical" value="True"/>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
146 <output_collection name="list_paired" type="list:paired" count="1">
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
147 <element name="SRR522874.sra">
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
148 <element name="forward" file="SRR522874.sra_2.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
149 <element name="reverse" file="SRR522874.sra_4.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
150 </element>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
151 </output_collection>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
152 </test>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
153 <test expect_num_outputs="4">
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
154 <param name="input_select" value="sra_file"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
155 <param name="sra_file" value="SRR522874.sra"/>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
156 <param name="split" value="--split-files"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
157 <param name="skip_technical" value="False"/>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
158 <output_collection name="output_collection_other" type="list" count="4">
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
159 <element name="SRR522874_1" file="SRR522874.sra_1.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
160 <element name="SRR522874_2" file="SRR522874.sra_2.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
161 <element name="SRR522874_3" file="SRR522874.sra_3.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
162 <element name="SRR522874_4" file="SRR522874.sra_4.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
163 </output_collection>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
164 </test>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
165 <test expect_num_outputs="4">
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
166 <param name="input_select" value="file_list"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
167 <param name="file_list" value="list_sra"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
168 <param name="minlen" value="21"/>
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
169 <output_collection name="output_collection_other" type="list" count="1">
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
170 <element name="SRR522874__single" file="SRR522874.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
171 </output_collection>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
172 <output_collection name="list_paired" type="list:paired" count="1">
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
173 <element name="SRR522874">
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
174 <element name="forward" file="SRR522874_1.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
175 <element name="reverse" file="SRR522874_2.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
176 </element>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
177 </output_collection>
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
178 <output_collection name="output_collection" type="list" count="1">
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
179 <element name="SRR002702" file="SRR002702_2.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
180 </output_collection>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
181 </test>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
182 <test expect_num_outputs="4">
18
c8d04fc889f2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2646cabeb93bb9780c5c31839ea3189391b9a266"
iuc
parents: 17
diff changeset
183 <param name="input_select" value="file_list"/>
c8d04fc889f2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2646cabeb93bb9780c5c31839ea3189391b9a266"
iuc
parents: 17
diff changeset
184 <param name="file_list" value="sra_manifest.tabular" ftype="sra_manifest.tabular"/>
21
9828888fc245 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit a464017f4a599697101dbd26cf5eb902588359b5"
iuc
parents: 20
diff changeset
185 <output_collection name="list_paired" type="list:paired" count="1">
18
c8d04fc889f2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2646cabeb93bb9780c5c31839ea3189391b9a266"
iuc
parents: 17
diff changeset
186 <element name="SRR11953971">
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
187 <element name="forward" file="SRR11953971_1.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
188 <element name="reverse" file="SRR11953971_2.fastq.gz" ftype="fastqsanger.gz" decompress="True"/>
18
c8d04fc889f2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2646cabeb93bb9780c5c31839ea3189391b9a266"
iuc
parents: 17
diff changeset
189 </element>
c8d04fc889f2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2646cabeb93bb9780c5c31839ea3189391b9a266"
iuc
parents: 17
diff changeset
190 </output_collection>
c8d04fc889f2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2646cabeb93bb9780c5c31839ea3189391b9a266"
iuc
parents: 17
diff changeset
191 </test>
26
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
192 <test expect_num_outputs="4">
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
193 <param name="input_select" value="file_list"/>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
194 <param name="file_list" value="sra_manifest.tabular" ftype="sra_manifest.tabular"/>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
195 <section name="adv">
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
196 <param name="seq_defline" value="@$ac.$si/$ri $sn length=$rl"/>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
197 </section>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
198 <output_collection name="list_paired" type="list:paired" count="1">
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
199 <element name="SRR11953971">
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
200 <element name="forward" ftype="fastqsanger.gz" decompress="True">
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
201 <assert_contents>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
202 <!-- TODO replace has_size by has_line -->
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
203 <has_size min="56206"/>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
204 <!-- <has_line line="@SRR11953971.2053/1 2053 length=101"/> -->
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
205 </assert_contents>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
206 </element>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
207 <element name="reverse" ftype="fastqsanger.gz" decompress="True">
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
208 <assert_contents>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
209 <has_size min="59843"/>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
210 <!-- <has_line line="@SRR11953971.2053/2 2053 length=101"/> -->
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
211 </assert_contents>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
212 </element>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
213 </element>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
214 </output_collection>
f7732611d0fc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 7632986831e24fcd189a57d824b9e6b1d5dc5c4c
iuc
parents: 23
diff changeset
215 </test>
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
216 </tests>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
217 <help><![CDATA[
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
218 **What it does?**
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
219
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
220 This tool extracts data (in fastq_ format) from the Short Read Archive (SRA) at the National Center for Biotechnology Information (NCBI). It is based on the fasterq-dump_ utility of the SRA Toolkit. The following applies:
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
221
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
222 - if data is paired-ended (or mate-pair) the tool will generate a collection of file pairs, in which each element will be a pair of fastq_ files containing forward and reverse mates.
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
223 - if data is single ended, each element of the collection will be a single fastq_ dataset.
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
224
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
225
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
226 @HOW_TO_USE_IT@
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
227
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
228 -----
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
229
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
230 **Output**
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
231
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
232 In every case, fastq datasets produced will be saved in Galaxy's history as a collection_ - a single history element containing multiple datasets. In fact, regardless of the experimental design, three collections will be produced: one containing paired-end data, another containing single-end data, and a third one which contains reads which could not be classified.
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
233 Some collections may be empty if the accessions provided in the list do not contain one of the type of data.
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
234
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
235 .. class:: warningmark
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
236
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
237 When you decide to dump technical reads (in Advanced Options Dump only biological reads is set to No), you will probably find your PAIRED data in the other data collection as it is impossible to determine if it was 2 biological reads or one biological and one technical.
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
238
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
239 .. class:: warningmark
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
240
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
241 By default, only biological reads are dumped and in case of PAIRED dataset only the spots which have both reads will be in the paired-end collection. The remaining single reads will be in the other colletion.
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
242 To keep all reads, and potentially not have the same number of reads in forward and reverse use the --split-files option in Advanced Options, Select how to split the spots.
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
243
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
244 @ACCESSION_LIST_HOWTO@
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
245
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
246 -----
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
247
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
248
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
249 .. _fastq: https://en.wikipedia.org/wiki/FASTQ_format
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
250 .. _fasterq-dump: https://github.com/ncbi/sra-tools/wiki/HowTo:-fasterq-dump
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
251 .. _collection: https://galaxyproject.org/tutorials/collections/
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
252 .. _link: https://trace.ncbi.nlm.nih.gov/Traces/index.html?view=run_browser&display=reads
15
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
253
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
254 @SRATOOLS_ATTRRIBUTION@
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
255 ]]>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
256 </help>
54366e4d692a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit 2be63abd7e4db27fa32ecbbc10d48cacb0073115"
iuc
parents:
diff changeset
257 <expand macro="citation"/>
23
6669afa92957 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/sra-tools commit cbb1499906c801443d72bdf313d86f0182aca010
iuc
parents: 22
diff changeset
258 </tool>