annotate aws_sra.xml @ 8:ef51d44623c2 draft

planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 37694a2c524c1c5124f0da25ee49077717438a59
author galaxytrakr
date Mon, 23 Mar 2026 18:42:57 +0000
parents 3529ce6bcde7
children 40b61da6c6c5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
ef51d44623c2 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 37694a2c524c1c5124f0da25ee49077717438a59
galaxytrakr
parents: 7
diff changeset
1 <tool id="aws_sra" name="NCBI SRA AWS Fetch" version="0.3.0+gt_0.8" profile="23.0">
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
2 <description>Fetch SRA data files from NCBI's public AWS S3 buckets</description>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
3
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
4 <requirements>
2
83c923bd9da6 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit a95de952e58b29875b31e55f0ef06a83a18618fc
galaxytrakr
parents: 1
diff changeset
5 <requirement type="package" version="2.34.8">awscli</requirement>
83c923bd9da6 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit a95de952e58b29875b31e55f0ef06a83a18618fc
galaxytrakr
parents: 1
diff changeset
6 <requirement type="package" version="3.2.1">sra-tools</requirement>
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.8">pigz</requirement>
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
8 </requirements>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
9
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
10 <version_command>aws --version</version_command>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
11
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
12 <command detect_errors="exit_code"><![CDATA[
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
13 ## ── Resolve bucket base URL ──────────────────────────────────────────────
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
14 #if $source.bucket == 'sra_pub_run_odp'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
15 #set $s3_base = 's3://sra-pub-run-odp'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
16 #elif $source.bucket == 'sra_pub_src_1'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
17 #set $s3_base = 's3://sra-pub-src-1'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
18 #elif $source.bucket == 'sra_pub_src_2'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
19 #set $s3_base = 's3://sra-pub-src-2'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
20 #elif $source.bucket == 'sra_pub_metadata'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
21 #set $s3_base = 's3://sra-pub-metadata-us-east-1/sra/metadata'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
22 #end if
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
23
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
24 ## ── LIST mode ────────────────────────────────────────────────────────────
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
25 #if $action.mode == 'list'
6
8c60cd4c0ca7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 69bae7a0b8011217f6c61fbc62344bcd6a445160
galaxytrakr
parents: 5
diff changeset
26 #set $s3_path = $s3_base
8c60cd4c0ca7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 69bae7a0b8011217f6c61fbc62344bcd6a445160
galaxytrakr
parents: 5
diff changeset
27 #if $source.prefix
8c60cd4c0ca7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 69bae7a0b8011217f6c61fbc62344bcd6a445160
galaxytrakr
parents: 5
diff changeset
28 #set $s3_path = $s3_path + '/' + $source.prefix.strip("/")
8c60cd4c0ca7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 69bae7a0b8011217f6c61fbc62344bcd6a445160
galaxytrakr
parents: 5
diff changeset
29 #end if
8c60cd4c0ca7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 69bae7a0b8011217f6c61fbc62344bcd6a445160
galaxytrakr
parents: 5
diff changeset
30 aws s3 ls \
8c60cd4c0ca7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 69bae7a0b8011217f6c61fbc62344bcd6a445160
galaxytrakr
parents: 5
diff changeset
31 --no-sign-request \
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
32 #if $action.recursive
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
33 --recursive
6
8c60cd4c0ca7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 69bae7a0b8011217f6c61fbc62344bcd6a445160
galaxytrakr
parents: 5
diff changeset
34 #end if \
8c60cd4c0ca7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 69bae7a0b8011217f6c61fbc62344bcd6a445160
galaxytrakr
parents: 5
diff changeset
35 $s3_path/ \
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
36 > '$output_list'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
37
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
38 ## ── DOWNLOAD RAW mode ────────────────────────────────────────────────────
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
39 #elif $action.mode == 'copy'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
40 aws s3 cp
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
41 --no-sign-request
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
42 #if $action.recursive
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
43 --recursive
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
44 #end if
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
45 '${s3_base}/${ $action.s3_key.strip("/") }'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
46 '$output_data'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
47
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
48 ## ── FASTQ DUMP mode (sra-pub-run-odp only) ───────────────────────────────
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
49 #elif $action.mode == 'fastq_dump'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
50 #set $acc = $action.accession.strip()
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
51
7
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
52 ## 1. Download the file from S3
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
53 mkdir -p sra_cache &&
7
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
54 aws s3 cp \
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
55 --no-sign-request \
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
56 '${s3_base}/sra/${acc}/${acc}' \
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
57 ./sra_cache/${acc} &&
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
58
7
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
59 ## 2. Convert with fasterq-dump (CORRECTED: uses extensionless file)
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
60 mkdir -p fastq_out &&
7
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
61 fasterq-dump \
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
62 ./sra_cache/${acc} \
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
63 --outdir ./fastq_out \
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
64 --temp . \
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
65 --threads \${GALAXY_SLOTS:-4} \
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
66 --split-files
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
67 &&
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
68
7
3529ce6bcde7 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit 74cea66080315c44e81547de5fe02f046bcaa1f0
galaxytrakr
parents: 6
diff changeset
69 ## 3. Compress with pigz
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
70 pigz -p \${GALAXY_SLOTS:-4} ./fastq_out/*.fastq &&
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
71
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
72 ## 4. Stage outputs
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
73 #if $action.layout == 'paired'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
74 cp ./fastq_out/${acc}_1.fastq.gz '$output_r1' &&
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
75 cp ./fastq_out/${acc}_2.fastq.gz '$output_r2'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
76 #else
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
77 cp ./fastq_out/${acc}.fastq.gz '$output_r1'
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
78 #end if
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
79 #end if
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
80 ]]></command>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
81
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
82 <inputs>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
83 <section name="source" title="Data Source" expanded="true">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
84 <param name="bucket" type="select" label="SRA S3 Bucket"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
85 help="Select the NCBI SRA AWS Open Data bucket to access. FASTQ conversion is only available for sra-pub-run-odp.">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
86 <option value="sra_pub_run_odp" selected="true">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
87 sra-pub-run-odp — Open-access SRA runs (.sra format)
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
88 </option>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
89 <option value="sra_pub_src_1">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
90 sra-pub-src-1 — Source submissions: BAM/CRAM/FASTQ (PacBio, ONT, 10X) [bucket 1]
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
91 </option>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
92 <option value="sra_pub_src_2">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
93 sra-pub-src-2 — Source submissions: BAM/CRAM/FASTQ (PacBio, ONT, 10X) [bucket 2]
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
94 </option>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
95 <option value="sra_pub_metadata">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
96 sra-pub-metadata-us-east-1 — SRA metadata (Parquet/CSV for Athena/Glue)
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
97 </option>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
98 </param>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
99 <param name="prefix" type="text" value="" optional="true"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
100 label="S3 key prefix (optional)"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
101 help="Restrict listing to a sub-path, e.g. 'sra/SRR000001'. Used only in List mode.">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
102 <sanitizer invalid_char="">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
103 <valid initial="string.printable">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
104 <remove value="'"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
105 <remove value='"'/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
106 </valid>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
107 </sanitizer>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
108 </param>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
109 </section>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
110
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
111 <conditional name="action">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
112 <param name="mode" type="select" label="Action">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
113 <option value="list" selected="true">List objects</option>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
114 <option value="copy">Download raw file(s)</option>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
115 <option value="fastq_dump">Download and convert to FASTQ (sra-pub-run-odp only)</option>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
116 </param>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
117
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
118 <!-- ── LIST ── -->
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
119 <when value="list">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
120 <param name="recursive" type="boolean" truevalue="--recursive" falsevalue=""
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
121 checked="false" label="List recursively"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
122 help="List all objects under the prefix, not just the immediate level."/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
123 </when>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
124
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
125 <!-- ── COPY ── -->
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
126 <when value="copy">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
127 <param name="s3_key" type="text" label="S3 key to download"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
128 help="Full key of the object to download, e.g. 'sra/SRR000001/SRR000001.sra'.">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
129 <validator type="empty_field" message="An S3 key is required for download."/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
130 <sanitizer invalid_char="">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
131 <valid initial="string.printable">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
132 <remove value="'"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
133 <remove value='"'/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
134 </valid>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
135 </sanitizer>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
136 </param>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
137 <param name="recursive" type="boolean" truevalue="--recursive" falsevalue=""
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
138 checked="false" label="Download recursively"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
139 help="Download all objects with this prefix rather than a single object."/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
140 </when>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
141
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
142 <!-- ── FASTQ DUMP ── -->
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
143 <when value="fastq_dump">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
144 <param name="accession" type="text" label="SRA Accession"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
145 help="SRA run accession to fetch and convert, e.g. SRR000001. Must be present in sra-pub-run-odp.">
2
83c923bd9da6 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit a95de952e58b29875b31e55f0ef06a83a18618fc
galaxytrakr
parents: 1
diff changeset
146 <validator type="empty_field" message="An SRA accession is required."/>
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
147 </param>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
148 <param name="layout" type="select" label="Read layout"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
149 help="Paired-end produces two datasets labelled accession_1 and accession_2. Single-end produces one dataset. Check the SRA record to confirm layout before running.">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
150 <option value="paired" selected="true">Paired-end (R1 + R2)</option>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
151 <option value="single">Single-end</option>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
152 </param>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
153 </when>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
154 </conditional>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
155 </inputs>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
156
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
157 <outputs>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
158 <!-- List output -->
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
159 <data name="output_list" format="txt"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
160 label="SRA S3 listing: ${source.prefix}">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
161 <filter>action['mode'] == 'list'</filter>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
162 </data>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
163
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
164 <!-- Raw download -->
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
165 <data name="output_data" format="auto"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
166 label="SRA download: ${action.s3_key}">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
167 <filter>action['mode'] == 'copy'</filter>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
168 </data>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
169
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
170 <!-- FASTQ R1 / single.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
171 Label matches fasterq-dump's native _1 suffix so Galaxy's
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
172 "Build List of Dataset Pairs" can auto-detect pairings. -->
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
173 <data name="output_r1" format="fastqsanger.gz"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
174 label="${action.accession}_1">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
175 <filter>action['mode'] == 'fastq_dump'</filter>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
176 </data>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
177
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
178 <!-- FASTQ R2 (paired-end only) -->
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
179 <data name="output_r2" format="fastqsanger.gz"
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
180 label="${action.accession}_2">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
181 <filter>action['mode'] == 'fastq_dump' and action['layout'] == 'paired'</filter>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
182 </data>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
183 </outputs>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
184
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
185 <tests>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
186 <!-- Test 1: list mode -->
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
187 <test expect_num_outputs="1">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
188 <section name="source">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
189 <param name="bucket" value="sra_pub_run_odp"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
190 <param name="prefix" value="sra/SRR000001"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
191 </section>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
192 <conditional name="action">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
193 <param name="mode" value="list"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
194 <param name="recursive" value="false"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
195 </conditional>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
196 <output name="output_list">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
197 <assert_contents>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
198 <has_text text="SRR000001"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
199 </assert_contents>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
200 </output>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
201 </test>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
202
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
203 <!-- Test 2: fastq_dump paired -->
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
204 <test expect_num_outputs="2">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
205 <section name="source">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
206 <param name="bucket" value="sra_pub_run_odp"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
207 </section>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
208 <conditional name="action">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
209 <param name="mode" value="fastq_dump"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
210 <param name="accession" value="SRR000001"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
211 <param name="layout" value="paired"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
212 </conditional>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
213 <output name="output_r1">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
214 <assert_contents>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
215 <has_text text="@SRR000001"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
216 </assert_contents>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
217 </output>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
218 <output name="output_r2">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
219 <assert_contents>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
220 <has_text text="@SRR000001"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
221 </assert_contents>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
222 </output>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
223 </test>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
224
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
225 <!-- Test 3: fastq_dump single-end -->
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
226 <test expect_num_outputs="1">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
227 <section name="source">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
228 <param name="bucket" value="sra_pub_run_odp"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
229 </section>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
230 <conditional name="action">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
231 <param name="mode" value="fastq_dump"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
232 <param name="accession" value="SRR000001"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
233 <param name="layout" value="single"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
234 </conditional>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
235 <output name="output_r1">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
236 <assert_contents>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
237 <has_text text="@SRR000001"/>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
238 </assert_contents>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
239 </output>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
240 </test>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
241 </tests>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
242
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
243 <help><![CDATA[
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
244 **NCBI SRA AWS Fetch**
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
245
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
246 This tool fetches data from the `NCBI Sequence Read Archive (SRA)`_ hosted on Amazon S3
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
247 as part of the AWS Open Data program. No AWS account is required.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
248
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
249 -----
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
250
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
251 **Available Buckets**
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
252
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
253 +------------------------------+------------------------------------------------------------+
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
254 | Bucket | Contents |
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
255 +==============================+============================================================+
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
256 | sra-pub-run-odp | All open-access SRA runs in SRA Normalized format (.sra). |
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
257 | | Supports FASTQ conversion via this tool. |
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
258 +------------------------------+------------------------------------------------------------+
2
83c923bd9da6 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit a95de952e58b29875b31e55f0ef06a83a18618fc
galaxytrakr
parents: 1
diff changeset
259 | sra-pub-src-1 | Source BAM, CRAM, and FASTQ files from PacBio, ONT, 10X. |
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
260 +------------------------------+------------------------------------------------------------+
2
83c923bd9da6 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit a95de952e58b29875b31e55f0ef06a83a18618fc
galaxytrakr
parents: 1
diff changeset
261 | sra-pub-src-2 | Same as above (second bucket for source submissions). |
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
262 +------------------------------+------------------------------------------------------------+
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
263 | sra-pub-metadata-us-east-1 | SRA metadata in Parquet/CSV format (for Athena / Glue). |
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
264 +------------------------------+------------------------------------------------------------+
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
265
2
83c923bd9da6 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit a95de952e58b29875b31e55f0ef06a83a18618fc
galaxytrakr
parents: 1
diff changeset
266
0
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
267 -----
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
268
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
269 **Listing objects**
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
270
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
271 Select **List objects** to see what files are available under a given prefix, e.g. ``sra/SRR000001``.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
272 Leave the prefix blank to browse the bucket root (may return a very large listing).
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
273
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
274 -----
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
275
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
276 **Downloading raw files**
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
277
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
278 Select **Download raw file(s)** and provide the full S3 key, e.g.::
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
279
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
280 sra/SRR000001/SRR000001.sra
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
281
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
282 -----
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
283
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
284 **Download and convert to FASTQ**
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
285
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
286 Fetches a single SRA run from ``sra-pub-run-odp`` and converts it to gzip-compressed
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
287 FASTQ using ``fasterq-dump``.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
288
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
289 Outputs are labelled ``<accession>_1`` (R1 / forward) and ``<accession>_2`` (R2 / reverse)
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
290 for paired-end runs, matching ``fasterq-dump``'s native ``--split-files`` naming.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
291 Single-end runs produce only ``<accession>_1``.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
292
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
293 *Fetching multiple accessions and building a paired collection*
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
294
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
295 Run this tool **once per accession** — either manually or by using Galaxy's dataset
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
296 collection mapping to fan out over a list of accession identifiers. Keeping one job per
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
297 accession means a failed download does not affect the others.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
298
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
299 Once all jobs are complete your history will contain datasets labelled::
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
300
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
301 SRR000001_1 SRR000001_2
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
302 SRR000002_1 SRR000002_2
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
303 ...
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
304
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
305 Use **Galaxy's "Build List of Dataset Pairs"** tool to assemble these into a
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
306 ``list:paired`` collection. Galaxy will auto-detect the ``_1`` / ``_2`` suffixes
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
307 and propose pairings — confirm and name the collection, then pass it directly to
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
308 any downstream tool that accepts a paired collection (aligners, QC tools, etc.).
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
309
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
310 .. warning::
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
311
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
312 This tool cannot auto-detect read layout from the accession. Check the SRA record
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
313 at https://www.ncbi.nlm.nih.gov/sra before running. Selecting the wrong layout will
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
314 produce incorrect output.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
315
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
316 -----
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
317
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
318 **Notes**
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
319
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
320 - All S3 requests are made without AWS credentials (``--no-sign-request``).
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
321 - There is typically a **1–2 day lag** between an accession appearing in SRA Search and
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
322 being available in the S3 buckets.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
323 - Controlled-access dbGaP data (``sra-ca-run-odp``) requires AWS credentials and is
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
324 **not** supported by this tool.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
325 - ``fasterq-dump`` and ``pigz`` both use ``\${GALAXY_SLOTS}`` threads. Allocate more
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
326 cores in your job configuration to speed up conversion of large runs.
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
327
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
328 .. _NCBI Sequence Read Archive (SRA): https://www.ncbi.nlm.nih.gov/sra
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
329 ]]></help>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
330
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
331 <citations>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
332 <citation type="bibtex">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
333 @misc{ncbi_sra_aws,
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
334 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
335 author = {{National Center for Biotechnology Information}},
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
336 howpublished = {\url{https://registry.opendata.aws/ncbi-sra/}},
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
337 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
338 }
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
339 </citation>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
340 <citation type="bibtex">
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
341 @article{sra_toolkit,
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
342 title = {The {NCBI} {SRA} and portable data in biology},
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
343 author = {Leinonen, Rasko and Sugawara, Hideaki and Shumway, Martin and
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
344 {International Nucleotide Sequence Database Collaboration}},
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
345 journal = {Nucleic Acids Research},
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
346 volume = {39},
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
347 number = {suppl\_1},
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
348 pages = {D19--D21},
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
349 year = {2011},
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
350 doi = {10.1093/nar/gkq1019}
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
351 }
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
352 </citation>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
353 </citations>
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
354
a4afe551dfc9 planemo upload for repository https://github.com/CFSAN-Biostatistics/galaxytrakr-tools commit c55c06b92c0ee0429047bcff1992bf2ec293284a
galaxytrakr
parents:
diff changeset
355 </tool>