Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run nallo without --vep_cache #547

Open
lasseringstedmark opened this issue Jan 27, 2025 · 3 comments
Open

Not able to run nallo without --vep_cache #547

lasseringstedmark opened this issue Jan 27, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@lasseringstedmark
Copy link

Description of the bug

It does not seems to be possible to run Nallo version 0.4.0 without specifing --vep_cache even with --skip_snv_annotation

The following error are present

WARN: Access to undefined parameter `genomes` -- Initialise it to a default value eg. `params.genomes = some_value`
[-        ] process > GENOMICMEDICINESWEDEN_NALLO:NALLO:CONVERT_INPUT_FILES:SAMTOOLS_FASTQ  -
[-        ] process > GENOMICMEDICINESWEDEN_NALLO:NALLO:CONVERT_INPUT_FILES:SAMTOOLS_IMPORT -
ERROR ~ Cannot invoke method endsWith() on null object

 -- Check script '.nextflow/assets/genomic-medicine-sweden/nallo/./workflows/nallo.nf' at line: 131 or see '.nextflow.log' file for more details

From the file nallo.nf specified in above

    126         // Prepeare references
    127         PREPARE_GENOME (
    128             ch_fasta,
    129             ch_vep_cache_unprocessed,
    130             params.fasta.endsWith('.gz'),       // should we unzip fasta
    131             params.vep_cache.endsWith("tar.gz") // should we untar vep cache
    132         )
    133         ch_versions = ch_versions.mix(PREPARE_GENOME.out.versions)
    134

When looking into the nallo.nf from former version 0.3.2, there are some checks on params.vep_cache, which seems to be missing in version 0.4.0

    //
    // Prepare references
    //
    if(!params.skip_mapping_wf | !params.skip_assembly_wf ) {

        PREPARE_GENOME (
            ch_fasta,
            ch_vep_cache_unprocessed,
        )
        ch_versions = ch_versions.mix(PREPARE_GENOME.out.versions)

        if(!params.skip_snv_annotation) {
            if (params.vep_cache) {
                if (params.vep_cache.endsWith("tar.gz")) {
                    ch_vep_cache = PREPARE_GENOME.out.vep_resources
                } else {
                    ch_vep_cache = Channel.fromPath(params.vep_cache).collect()
                }
            }
        }

When I specify --vep_cache it works fine. Both with and without --skip_snv_annotation

The documentation does not say anything vep_cache being mandatory. Is this as intended or a bug?

Settings
Nextflow version 24.04.2
Nallo version 0.4.0
Running with Docker

Command used and terminal output

Relevant files

No response

System information

No response

@lasseringstedmark lasseringstedmark added the bug Something isn't working label Jan 27, 2025
@fellen31
Copy link
Collaborator

Hi, thanks for reporting this.

It's indeed a bug, the CI-tests always run without any of the --skip´s so this has slipped through (hope to adress this soon). Also, I see the I have missed a point in the documentation.

The pipeline should be able to run without --vep_cache if you also have both of these active:

Will try to get a fix out for this soon.

@lasseringstedmark
Copy link
Author

@fellen31 sounds good!

Just to let you know - I did actually run with both parameters --skip_snv_annotation and --skip_sv_annotation, so I think this behaviour are present regardsless of this.

@fellen31
Copy link
Collaborator

@fellen31 sounds good!

Just to let you know - I did actually run with both parameters --skip_snv_annotation and --skip_sv_annotation, so I think this behaviour are present regardsless of this.

You are right, I meant should in the sense that's how I'd like it to work, but currently it does not 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants