i'm getting some sort of linting error with my met...
# modules
a
i'm getting some sort of linting error with my meta.yml input block:
Copy code
Module name  │ File path                                  │ Test message                                                                                                                         │
│╶─────────────┼────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╴│
│ lohhla       │ modules/msk/lohhla/meta.yml                │ The meta.yml of the module lohhla is not valid: [ordereddict([('meta', ordereddict([('type', 'map'), ('description', 'Groovy Map     │
│              │                                            │ containing sample information\n')]))]), ordereddict([('bamTumor', ordereddict([('type', 'file'), ('description', 'Sorted tumor BAM   │
│              │                                            │ file'), ('pattern', '.{bam}')]))]), ordereddict([('bamNormal', ordereddict([('type', 'file'), ('description', 'Sorted normal BAM     │
│              │                                            │ file'), ('pattern', '.{bam}')]))]), ordereddict([('winnersHla', ordereddict([('type', 'file'), ('description', 'hla calls matching   │
│              │                                            │ polysolver output format'), ('pattern', '.hla.txt')]))]), ordereddict([('purityOut', ordereddict([('type', 'file'), ('description',  │
│              │                                            │ 'facets purityOut'), ('pattern', '_purity.out')]))])] is not of type 'object'. Check the entry for input.                            │
here's the input block from meta.yml:
Copy code
input:
  - - meta:
        type: map
        description: |
          Groovy Map containing sample information
    - bamTumor:
        type: file
        description: Sorted tumor BAM file
        pattern: "*.{bam}"
    - bamNormal:
        type: file
        description: Sorted normal BAM file
        pattern: "*.{bam}"
    - winnersHla:
        type: file
        description: hla calls matching polysolver output format
        pattern: "*.hla.txt"
    - purityOut:
        type: file
        description: facets purityOut
        pattern: "*_purity.out"
here's the input block from main.nf:
Copy code
input:
    tuple val(meta), path(bamTumor), path(bamNormal), path(winnersHla), path(purityOut)
not sure what the problem could be...
j
try indenting all the type/description/pattern sections once more
m
Try using the
--fix
flag on the end of your lint command and see if it helps.
a
this is the result after using --fix unfortunately...after running
nf-core modules -b lohhla lint --fix lohhla
it automatically runs a lint check and this is the result
m
Which version of tools are you using? There's normally an extra line following the meta map description with the
.e.g ...
, but I don't know if that makes a difference.
j
can you run the command using the
--verbose
flag and post the output here? like
nf-core --verbose modules ...
a
unfortunately --verbose didn't give me any extra information related to the failed lint test. i had just updated my nf-core tools package to 3.0.2, and even tried the dev version, however, maybe it's my outdated meta schema. i'll check on those.
j
oh, is this from a custom modules repo? In such case it is probably related to the schema, you can check the one in the nf-core/modules repo for reference. And let me know if something is not clear 🙂
a
yes, i am thinking that it is related to the schema that we have in custom modules repo...although i did try to replace the schema files in my local codebase. not sure if it's using the local files or grabbing from the remote. i'll definitely look further into this