Mercurial > repos > galaxytrakr > aws_sra
annotate aws_sra.xml @ 30:73ee30eb273a draft
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
| author | galaxytrakr |
|---|---|
| date | Tue, 24 Mar 2026 03:09:41 +0000 |
| parents | 569a598c7e68 |
| children | 90ae4d437133 |
| rev | line source |
|---|---|
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
1 <tool id="aws_sra" name="NCBI SRA AWS Fetch" version="0.4.0+gt_0.50" profile="22.01"> |
|
23
d7f68b3cde39
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit e9adf514c1b6b341c9e5bf8cc5a41c79b738d48e
galaxytrakr
parents:
22
diff
changeset
|
2 <description>Fetches one or more SRA runs from AWS S3 and converts them to FASTQ</description> |
|
21
02f45c03c306
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit f72940592c22c9ba88f1dcb23ef8bb5199ce434e
galaxytrakr
parents:
20
diff
changeset
|
3 |
|
0
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
4 <requirements> |
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
5 <requirement type="package" version="3.1.1">sra-tools</requirement> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
6 <requirement type="package" version="2.8">pigz</requirement> |
|
2
83c923bd9da6
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit a95de952e58b29875b31e55f0ef06a83a18618fc
galaxytrakr
parents:
1
diff
changeset
|
7 <requirement type="package" version="2.34.8">awscli</requirement> |
|
0
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
8 </requirements> |
|
21
02f45c03c306
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit f72940592c22c9ba88f1dcb23ef8bb5199ce434e
galaxytrakr
parents:
20
diff
changeset
|
9 |
|
13
2897d365dd62
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 619ebd7e6a24be0ec6c2728511290f43b0bad89f
galaxytrakr
parents:
12
diff
changeset
|
10 <version_command>fasterq-dump --version</version_command> |
|
2897d365dd62
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 619ebd7e6a24be0ec6c2728511290f43b0bad89f
galaxytrakr
parents:
12
diff
changeset
|
11 |
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
12 <command detect_errors="exit_code"><![CDATA[ |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
13 #if $input.input_select == "accession_number": |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
14 echo '${input.accession}' | sed -r 's/(\,|\;|__cn__)/\n/g' > accessions && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
15 #else: |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
16 grep '^[[:space:]]*[ESD]RR[0-9]\{1,\}[[:space:]]*$' '${input.file_list}' > accessions && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
17 #end if |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
18 mkdir -p output && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
19 mkdir -p outputOther && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
20 for acc in \$(cat ./accessions); |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
21 do ( |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
22 echo "Processing accession: \$acc" && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
23 mkdir -p sra_cache_\${acc} && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
24 aws s3 cp --no-sign-request "s3://sra-pub-run-odp/sra/\${acc}/\${acc}" ./sra_cache_\${acc}/\${acc} && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
25 fasterq-dump -e \${GALAXY_SLOTS:-4} -t . --split-3 ./sra_cache_\${acc}/\${acc} && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
26 rm -rf sra_cache_\${acc} && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
27 count="\$(ls \${acc}*.fastq 2>/dev/null | wc -l)" && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
28 echo "Found \$count fastq file(s) for \$acc" && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
29 data=(\$(ls \${acc}*.fastq 2>/dev/null)) && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
30 if [ "\$count" -eq 1 ]; then |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
31 pigz -cqp \${GALAXY_SLOTS:-4} "\${data[0]}" > output/"\${acc}".fastqsanger.gz && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
32 rm "\${data[0]}"; |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
33 elif [ -e "\${acc}".fastq ]; then |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
34 pigz -cqp \${GALAXY_SLOTS:-4} "\${acc}".fastq > outputOther/"\${acc}"__single.fastqsanger.gz && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
35 pigz -cqp \${GALAXY_SLOTS:-4} "\${acc}"_1.fastq > output/"\${acc}"_1.fastqsanger.gz && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
36 pigz -cqp \${GALAXY_SLOTS:-4} "\${acc}"_2.fastq > output/"\${acc}"_2.fastqsanger.gz && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
37 rm "\${acc}"*.fastq; |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
38 elif [ "\$count" -eq 2 ]; then |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
39 pigz -cqp \${GALAXY_SLOTS:-4} "\${acc}"_1.fastq > output/"\${acc}"_1.fastqsanger.gz && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
40 pigz -cqp \${GALAXY_SLOTS:-4} "\${acc}"_2.fastq > output/"\${acc}"_2.fastqsanger.gz && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
41 rm "\${acc}"*.fastq; |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
42 else |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
43 for file in \${data[*]}; do |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
44 pigz -cqp \${GALAXY_SLOTS:-4} "\$file" > outputOther/"\$file"sanger.gz && |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
45 rm "\$file"; |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
46 done; |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
47 fi |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
48 ); done; |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
49 echo "Done with all accessions." |
|
0
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
50 ]]></command> |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
51 |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
52 <inputs> |
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
53 <conditional name="input"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
54 <param name="input_select" type="select" label="Select input type"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
55 <option value="accession_number">SRA Accession number(s)</option> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
56 <option value="file_list">File containing accession list</option> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
57 </param> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
58 <when value="accession_number"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
59 <param name="accession" type="text" label="SRA Accession(s)" |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
60 help="One or more SRA run accessions (SRR, ERR, or DRR), separated by commas or spaces."> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
61 <validator type="empty_field" message="At least one SRA accession is required."/> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
62 <sanitizer> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
63 <valid initial="string.printable"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
64 <remove value="'"/> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
65 </valid> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
66 <mapping initial="none"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
67 <add source="'" target="'"'"'"/> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
68 </mapping> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
69 </sanitizer> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
70 </param> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
71 </when> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
72 <when value="file_list"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
73 <param name="file_list" type="data" format="txt,tabular" label="Accession list file" |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
74 help="A text file with one SRA accession (SRR, ERR, or DRR) per line."/> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
75 </when> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
76 </conditional> |
|
0
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
77 </inputs> |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
78 |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
79 <outputs> |
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
80 <collection name="list_paired" type="list:paired" label="Paired-end FASTQ (aws_sra)"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
81 <discover_datasets |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
82 pattern="(?P<identifier_0>[^_]+)_(?P<identifier_1>[12])\.fastqsanger\.gz" |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
83 directory="output" |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
84 ext="fastqsanger.gz"/> |
|
23
d7f68b3cde39
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit e9adf514c1b6b341c9e5bf8cc5a41c79b738d48e
galaxytrakr
parents:
22
diff
changeset
|
85 </collection> |
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
86 <collection name="output_single" type="list" label="Single-end FASTQ (aws_sra)"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
87 <discover_datasets |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
88 pattern="(?P<designation>.+)\.fastqsanger\.gz" |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
89 directory="output" |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
90 ext="fastqsanger.gz"/> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
91 </collection> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
92 <collection name="output_other" type="list" label="Other FASTQ (aws_sra)"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
93 <discover_datasets |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
94 pattern="(?P<designation>.+)\.fastqsanger\.gz" |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
95 directory="outputOther" |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
96 format="fastqsanger.gz"/> |
|
23
d7f68b3cde39
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit e9adf514c1b6b341c9e5bf8cc5a41c79b738d48e
galaxytrakr
parents:
22
diff
changeset
|
97 </collection> |
|
21
02f45c03c306
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit f72940592c22c9ba88f1dcb23ef8bb5199ce434e
galaxytrakr
parents:
20
diff
changeset
|
98 </outputs> |
|
17
9fb80e0392ce
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 9707fa5e3ca6db5b58f271d133484d078cf65390
galaxytrakr
parents:
16
diff
changeset
|
99 |
|
21
02f45c03c306
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit f72940592c22c9ba88f1dcb23ef8bb5199ce434e
galaxytrakr
parents:
20
diff
changeset
|
100 <tests> |
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
101 <test expect_num_outputs="3"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
102 <conditional name="input"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
103 <param name="input_select" value="accession_number"/> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
104 <param name="accession" value="SRR13333333"/> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
105 </conditional> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
106 <output_collection name="list_paired" type="list:paired" count="1"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
107 <element name="SRR13333333"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
108 <element name="forward" ftype="fastqsanger.gz"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
109 <assert_contents> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
110 <has_text text="@SRR13333333"/> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
111 </assert_contents> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
112 </element> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
113 <element name="reverse" ftype="fastqsanger.gz"> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
114 <assert_contents> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
115 <has_text text="@SRR13333333"/> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
116 </assert_contents> |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
117 </element> |
|
24
7dbb60c48056
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 29ed254c4aaab320b5482db410bd236d00f1b70e
galaxytrakr
parents:
23
diff
changeset
|
118 </element> |
|
23
d7f68b3cde39
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit e9adf514c1b6b341c9e5bf8cc5a41c79b738d48e
galaxytrakr
parents:
22
diff
changeset
|
119 </output_collection> |
|
21
02f45c03c306
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit f72940592c22c9ba88f1dcb23ef8bb5199ce434e
galaxytrakr
parents:
20
diff
changeset
|
120 </test> |
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
121 |
|
21
02f45c03c306
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit f72940592c22c9ba88f1dcb23ef8bb5199ce434e
galaxytrakr
parents:
20
diff
changeset
|
122 </tests> |
|
02f45c03c306
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit f72940592c22c9ba88f1dcb23ef8bb5199ce434e
galaxytrakr
parents:
20
diff
changeset
|
123 |
|
0
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
124 <help><![CDATA[ |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
125 **NCBI SRA AWS Fetch** |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
126 |
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
127 Fetches one or more SRA runs from the public ``sra-pub-run-odp`` S3 bucket and converts them to |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
128 gzip-compressed FASTQ using ``fasterq-dump``. Downloads use ``aws s3 cp`` with no credentials |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
129 required (public bucket). |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
130 |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
131 **Inputs** |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
132 |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
133 - **SRA Accession number(s)**: Type one or more accessions (SRR, ERR, or DRR) directly, comma- or space-separated. |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
134 - **File containing accession list**: A text file with one accession per line. This option is connectable as a workflow input. |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
135 |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
136 **Outputs** |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
137 |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
138 Three collections are always created (some may be empty depending on the data): |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
139 |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
140 - **Paired-end FASTQ**: A nested ``list:paired`` collection — each accession contains a forward/reverse pair. |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
141 - **Single-end FASTQ**: A flat list for reads confirmed single-end by ``--split-3``. |
|
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
142 - **Other FASTQ**: Reads that could not be cleanly classified. |
|
0
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
143 ]]></help> |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
144 |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
145 <citations> |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
146 <citation type="bibtex"> |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
147 @misc{ncbi_sra_aws, |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
148 title = {{NCBI} {SRA} on {AWS} Open Data}, |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
149 author = {{National Center for Biotechnology Information}}, |
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
150 howpublished = {\url{https://registry.opendata.aws/ncbi-sra/}}, |
|
0
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
151 note = {Accessed via AWS S3 without credentials} |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
152 } |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
153 </citation> |
|
30
73ee30eb273a
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit d0c08749588099d40db3c23bfd554800ac307a30
galaxytrakr
parents:
29
diff
changeset
|
154 <citation type="doi">10.1093/nar/gkq1019</citation> |
|
0
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
155 </citations> |
|
a4afe551dfc9
planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff
changeset
|
156 </tool> |
