canvas/germline: Added tests and missing inputs, some cleanup - #12462
canvas/germline: Added tests and missing inputs, some cleanup#12462Schmytzi wants to merge 17 commits into
Conversation
9a66019 to
73f2e34
Compare
|
I don't like that no tests at all are run for this module |
| -o ./ | ||
| --bam ${bam} \\ | ||
| --genome-folder ./Sequence/WholeGenomeFasta \\ | ||
| --reference ${kmer_fasta} \\ |
There was a problem hiding this comment.
I am a little confused by this one, but I don't know the tool. If I understand the input logic correctly, than the only file in the genome-folder is the kmer-fasta. Why do you need to point to it twice? From the doc it sounds like these might be different files: ```
-r, --reference=VALUE Canvas-ready reference fasta file (required)
-g, --genome-folder=VALUE folder that contains both genome.fa and
GenomeSize.xml (required)
There was a problem hiding this comment.
Canvas doesn't actually use the genome.fa file that is in the genome folder, it only reads GenomeSize.xml and uses the masked FASTA as its reference. I assume the parameters are the way they are for consistency with other Illumina tools. The module even works the same if kmer_fasta is not staged as Sequence/WholeGenomeFasta/genome.fa, so maybe it would be more straightforward to not to that?
| { | ||
| "id": "NA12878" | ||
| }, | ||
| "NA12878.CoverageAndVariantFrequency.txt:md5,7a0bf126ad613632eabcc2d5b20034c5" |
There was a problem hiding this comment.
it looks like all test scenarios end up with exactly the same output. Is this intended? Could you check that there are no mix up of files in the module?
There was a problem hiding this comment.
Canvas emits a single REF call for the region, which I would expect here regardless of optional input files. So I think that should be fine.
genomedirinput with separatekmer_fastaandgenomesizeinputsstageAsCanvas --versionRequires nf-core/test-datasets#2188 to be merged first.
PR checklist
topic: versions- See version_topicslabelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile conda