i can't figure out for the life of me why this met...
# modules
a
i can't figure out for the life of me why this meta.yml is failing: https://github.com/nf-core/modules/blob/16c478db437884b110659b2609bf387d3a4e93a0/modules/nf-core/ctatsplicing/startocancerintrons/meta.yml it seems to be valid against the yaml schema (double-checked with json schema validator), the error actually says
Module *meta.yml* does not match
. i tried running the lint fixer but there are all sort of problems in the result, everything that should be a
type: file
comes out as
type: map
, among other issues.
the full failed test message is the following:
Copy code
Module meta.yml does not match main.nf. Outputs should contain: {'cancer_introns_sorted_bam': ['meta', '.cancer_intron_reads.sorted.bam'], 'cancer_introns_sorted_bai': ['meta', '.cancer_intron_reads.sorted.bam.bai'], 'gene_reads_sorted_bam': ['meta', '.gene_reads.sorted.sifted.bam'], 'gene_reads_sorted_bai': ['meta', '.gene_reads.sorted.sifted.bam.bai'], 'cancer_introns': ['meta', '.cancer.introns'], 'cancer_introns_prelim': ['meta',  '.cancer.introns.prelim'], 'introns': ['meta', '${prefix}.introns'], 'introns_igv_bed': ['meta', '.introns.for_IGV.bed'], 'igv_html': ['meta', '.ctat-splicing.igv.html'], 'igv_tracks': ['meta', '.igv.tracks'], 'chckpts': ['meta', '*.chckpts'], 'versions': ['versions.yml']} Run nf-core modules lint --fix to update the meta.yml file.
woops just found it...
o
It looks like it is complaining about the glob
*
in the filename:
Copy code
- cancer_introns_sorted_bam:
    - meta:
        type: map
        description: |
          Groovy Map containing sample information
          e.g. [ id:'test', single_end:false ]
    - '.cancer_intron_reads.sorted.bam':  <-- this line doesn't have a `*` to start with
        type: file
        description: "Sorted BAM file containing reads mapped to cancer introns"
        pattern: "*.cancer_intron_reads.sorted.bam"
I had an issue like that last week where I had a typo or other mismatch between filenames in the
meta.yml
and
meta.nf
a
i did notice that the test message didn't have the asterisks, but it looks like the linter will accept both. but that's good to know that it's not required!
what actually was the problem was a small typo, which i fixed here: https://github.com/nf-core/modules/pull/8144/commits/d50cacf2c6d79560adc90957c4e56f39950f064d
🎉 1
it was just hiding all along 😄
o
Whoo! Congrats for finding it!
🙌 1