Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ Thank you to everyone else that has contributed by reporting bugs, enhancements
- [PR #148](https://github.com/nf-core/fetchngs/pull/148) - Fix default metadata fields for ENA API v2.0
- [PR #150](https://github.com/nf-core/fetchngs/pull/150) - Add infrastructure and CI for multi-cloud full-sized tests run via Nextflow Tower
- [PR #157](https://github.com/nf-core/fetchngs/pull/157) - Add `public_aws_ecr.config` to source mulled containers when using `public.ecr.aws` Docker Biocontainer registry
- [PR #368](https://github.com/nf-core/fetchngs/pull/XXX) - Add stub blocks to all local modules

### Software dependencies

Expand Down
15 changes: 15 additions & 0 deletions modules/local/aspera_cli/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,19 @@ process ASPERA_CLI {
md5sum -c ${meta.id}_2.fastq.gz.md5
"""
}

stub:
if (meta.single_end) {
"""
echo "" | gzip > ${meta.id}.fastq.gz
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know thats how its described in the docs but actually you do not even need the quotes.

Suggested change
echo "" | gzip > ${meta.id}.fastq.gz
echo | gzip > ${meta.id}.fastq.gz

touch ${meta.id}.fastq.gz.md5
"""
} else {
"""
echo "" | gzip > ${meta.id}_1.fastq.gz
echo "" | gzip > ${meta.id}_2.fastq.gz
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "" | gzip > ${meta.id}_1.fastq.gz
echo "" | gzip > ${meta.id}_2.fastq.gz
echo | gzip > ${meta.id}_1.fastq.gz
echo | gzip > ${meta.id}_2.fastq.gz

touch ${meta.id}_1.fastq.gz.md5
touch ${meta.id}_2.fastq.gz.md5
"""
}
}
5 changes: 5 additions & 0 deletions modules/local/multiqc_mappings_config/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ process MULTIQC_MAPPINGS_CONFIG {
$csv \\
multiqc_config.yml
"""

stub:
"""
touch multiqc_config.yml
"""
}
15 changes: 15 additions & 0 deletions modules/local/sra_fastq_ftp/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,19 @@ process SRA_FASTQ_FTP {
md5sum -c ${meta.id}_2.fastq.gz.md5
"""
}

stub:
if (meta.single_end) {
"""
echo "" | gzip > ${meta.id}.fastq.gz
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "" | gzip > ${meta.id}.fastq.gz
echo | gzip > ${meta.id}.fastq.gz

touch ${meta.id}.fastq.gz.md5
"""
} else {
"""
echo "" | gzip > ${meta.id}_1.fastq.gz
echo "" | gzip > ${meta.id}_2.fastq.gz
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "" | gzip > ${meta.id}_1.fastq.gz
echo "" | gzip > ${meta.id}_2.fastq.gz
echo | gzip > ${meta.id}_1.fastq.gz
echo | gzip > ${meta.id}_2.fastq.gz

touch ${meta.id}_1.fastq.gz.md5
touch ${meta.id}_2.fastq.gz.md5
"""
}
}
5 changes: 5 additions & 0 deletions modules/local/sra_ids_to_runinfo/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ process SRA_IDS_TO_RUNINFO {
${id}.runinfo.tsv \\
$metadata_fields
"""

stub:
"""
touch ${id}.runinfo.tsv
"""
}
5 changes: 5 additions & 0 deletions modules/local/sra_runinfo_to_ftp/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ process SRA_RUNINFO_TO_FTP {
${runinfo.join(',')} \\
${runinfo.toString().tokenize(".")[0]}.runinfo_ftp.tsv
"""

stub:
"""
touch ${runinfo.toString().tokenize(".")[0]}.runinfo_ftp.tsv
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you have that info if its just a stub?

"""
}
6 changes: 6 additions & 0 deletions modules/local/sra_to_samplesheet/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,10 @@ process SRA_TO_SAMPLESHEET {
// Write mappings to file
def mappings_file = task.workDir.resolve("${meta.id}.mappings.csv")
mappings_file.text = mappings

stub:
"""
touch ${meta.id}.samplesheet.csv
touch ${meta.id}.mappings.csv
"""
}
1 change: 1 addition & 0 deletions workflows/fetchngs.nf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ workflow FETCHNGS {
SRA_RUNINFO_TO_FTP
.out
.tsv
.filter { it.size() > 0 }
.splitCsv(header:true, sep:'\t')
.map {
meta ->
Expand Down
Loading