Issue 509 & 313#533
Conversation
fe98514 to
0c242bc
Compare
maxulysse
left a comment
There was a problem hiding this comment.
Easy to do indeed.
Should we have some tests for that?
Co-authored-by: Maxime U. Garcia <maxime.garcia@scilifelab.se>
Probably a good idea. Let me add some |
| test,XX,0,sample1,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/cram/test.paired_end.recalibrated.sorted.cram,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/cram/test.paired_end.recalibrated.sorted.cram.crai | ||
| test1,XX,1,sample2,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/cram/test2.paired_end.recalibrated.sorted.cram,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/cram/test2.paired_end.recalibrated.sorted.cram.crai | ||
| test3,XX,0,sample3,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/cram/test.paired_end.recalibrated.sorted.cram,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/cram/test.paired_end.recalibrated.sorted.cram.crai | ||
| test3,XX,1,sample4,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/cram/test2.paired_end.recalibrated.sorted.cram,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/illumina/cram/test2.paired_end.recalibrated.sorted.cram.crai |
There was a problem hiding this comment.
I used to make sure that sample3 is not run. I think I am missing a couple of check sthough
There was a problem hiding this comment.
So basically I justed wanted to make sure we can test all options of the channel magic, that is why two "pairs". Single-normal, single-tumor, and a paired one. Or do you think that is too extensive?
There was a problem hiding this comment.
Ooooh I see.
May I suggest an alternative solution, not sure if it'll work or not, but could be worth a try
Have 3 different samplesheets:
- single normal
- single tumor
- pair
That way we can use those in different tests.
but call it here in this case with --input samplesheet1.csv,samplesheet2.csv,samplesheet3.csv
I know it worked on local with previous sarek version, might be working here as well in this case
There was a problem hiding this comment.
otherwise, happy with this idea, that's good and smart
There was a problem hiding this comment.
you can stop looking, managed to run:
nextflow run . -profile test,docker --input "tests/csv/3.0/fastq_*.csv"
There's no , involved, just * so won't work on https path, just s3 + local
There was a problem hiding this comment.
hm, ok what works locally now is nextflow run main.nf -profile test,variantcalling_channels,docker --input tests/csv/3.0/recalibrated_{germline,tumoronly,somatic}.csv --tools strelka
There was a problem hiding this comment.
it think it is the if (params.input) csv_file = file(params.input) line and how this is expanded https://www.nextflow.io/docs/latest/script.html#files-and-i-o
There was a problem hiding this comment.
yes, we can use globs, so * or {}, I'd say probably ?, but not https definitively
There was a problem hiding this comment.
ah never mind actually doesn't run the processes except for the first file.
|
ok one last thing, there is actually a |
Closes #509
closes #313
PR checklist
scrape_software_versions.pynf-core lint .).nextflow run . -profile test,docker).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).