You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.nf
+24-38Lines changed: 24 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -34,37 +34,21 @@ include { Sample } from './workflows/sra'
34
34
params {
35
35
36
36
// TODO: declare as Set<SraId> and construct SraId with isSraId()
37
-
input: Set<String> {
38
-
description 'Set of SRA/ENA/GEO/DDBJ identifiers to download their associated metadata and FastQ files'
39
-
}
37
+
// Set of SRA/ENA/GEO/DDBJ identifiers to download their associated metadata and FastQ files
38
+
input: Set<String>
40
39
41
40
// TODO: declare as EnaMetadataFields and construct with sraCheckENAMetadataFields()
42
-
ena_metadata_fields: String {
43
-
description "Comma-separated list of ENA metadata fields to fetch before downloading data."
44
-
help "The default list of fields used by the pipeline can be found at the top of the [`bin/sra_ids_to_runinfo.py`](https://github.com/nf-core/fetchngs/blob/master/bin/sra_ids_to_runinfo.py) script within the pipeline repo. This pipeline requires a minimal set of fields to download FastQ files i.e. `'run_accession,experiment_accession,library_layout,fastq_ftp,fastq_md5'`. Full list of accepted metadata fields can be obtained from the [ENA API](https://www.ebi.ac.uk/ena/portal/api/returnFields?dataPortal=ena&format=tsv&result=read_run)."
45
-
icon 'fas fa-columns'
46
-
defaultValue ''
47
-
}
48
-
49
-
download_method: DownloadMethod {
50
-
description "Method to download FastQ files. Available options are 'aspera', 'ftp' or 'sratools'. Default is 'ftp'."
51
-
help 'FTP and Aspera CLI download FastQ files directly from the ENA FTP whereas sratools uses sra-tools to download *.sra files and convert to FastQ.'
52
-
icon 'fas fa-download'
53
-
defaultValue 'ftp'
54
-
}
41
+
// Comma-separated list of ENA metadata fields to fetch before downloading data.
42
+
ena_metadata_fields: String=''
55
43
56
-
skip_fastq_download: boolean {
57
-
description "Only download metadata for public data database ids and don't download the FastQ files."
58
-
icon 'fas fa-fast-forward'
59
-
}
44
+
// Method to download FastQ files. Available options are 'aspera', 'ftp' or 'sratools'. Default is 'ftp'.
45
+
download_method: DownloadMethod='ftp'
60
46
61
-
dbgap_key: Path? {
62
-
description 'dbGaP repository key.'
63
-
help 'Path to a JWT cart file used to access protected dbGAP data on SRA using the sra-toolkit. Users with granted access to controlled data can download the JWT cart file for the study from the SRA Run Selector upon logging in. The JWT file can only be used on cloud platforms and is valid for 1 hour upon creation.'
64
-
icon 'fas fa-address-card'
65
-
}
47
+
// Only download metadata for public data database ids and don't download the FastQ files.
48
+
skip_fastq_download: boolean=false
66
49
67
-
// TODO: ...
50
+
// dbGaP repository key.
51
+
dbgap_key: Path?=null
68
52
69
53
}
70
54
@@ -92,7 +76,7 @@ workflow {
92
76
//
93
77
// WORKFLOW: Run primary workflows for the pipeline
0 commit comments