Add stub blocks to all local modules#368
Conversation
|
famosab
left a comment
There was a problem hiding this comment.
Looks good, do you plan to add stub tests somewhere to test? (ideally local modules should have tests and there you could have the stub test as well)
if you already have tests for local modules then add the stub tests now, if not then do it in the pr when you add the tests
| stub: | ||
| if (meta.single_end) { | ||
| """ | ||
| echo "" | gzip > ${meta.id}.fastq.gz |
There was a problem hiding this comment.
I know thats how its described in the docs but actually you do not even need the quotes.
| echo "" | gzip > ${meta.id}.fastq.gz | |
| echo | gzip > ${meta.id}.fastq.gz |
| echo "" | gzip > ${meta.id}_1.fastq.gz | ||
| echo "" | gzip > ${meta.id}_2.fastq.gz |
There was a problem hiding this comment.
| 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 |
| stub: | ||
| if (meta.single_end) { | ||
| """ | ||
| echo "" | gzip > ${meta.id}.fastq.gz |
There was a problem hiding this comment.
| echo "" | gzip > ${meta.id}.fastq.gz | |
| echo | gzip > ${meta.id}.fastq.gz |
| echo "" | gzip > ${meta.id}_1.fastq.gz | ||
| echo "" | gzip > ${meta.id}_2.fastq.gz |
There was a problem hiding this comment.
| 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 |
|
|
||
| stub: | ||
| """ | ||
| touch ${runinfo.toString().tokenize(".")[0]}.runinfo_ftp.tsv |
There was a problem hiding this comment.
do you have that info if its just a stub?
|
@famosab Good point! I'll add stub test cases to each of the local modules in this PR. |
Closes #367
What was done
stubblocks to all 6 local modules:sra_ids_to_runinfo,sra_runinfo_to_ftp,sra_fastq_ftp,aspera_cli,sra_to_samplesheet,and
multiqc_mappings_config.filter { it.size() > 0 }beforesplitCsvinworkflows/fetchngs.nfto handle empty TSV files (prevents a missing header error in stub mode)
PR checklist
nf-core lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).