Skip to content

Manually supplied reference indexes not found if not ending in .fasta #150

@jfy133

Description

@jfy133

Describe the bug

When supplying a reference FASTA file, and manually supplying pre-generated reference indexes (bwa, samtools, picard etc.), the current behavior of EAGER2 renaming a supplied fasta from the file ending to specifically .fasta breaks finding of the corresponding indices.

i.e. if the reference and and index file are supplied as reference.fa and reference.fa.idx, it appears EAGER2 renames reference.fa to reference.fasta, and then looks for reference.fasta.idx - which does not exist.

See #131 as this the original source of the issue.

Note: the error message is quite unclear and requires some hunting/familiarity with the code and would not be useful for a new user.

N E X T F L O W  ~  version 0.28.0
Launching `nf-core/eager` [silly_jang] - revision: 2786af36de [2.0.5]
ERROR ~ Unknown argument 'checkIfExists' for operator 'path' -- Possible arguments: type, followLinks, hidden, maxDepth, exists, glob, relative

 -- Check script 'main.nf' at line: 256 or see '.nextflow.log' file for more details

To Reproduce
This was run using EAGER version 2.0.5

nextflow run nf-core/eager \
-c "$NXF_PROFILE" \
-profile shh_custom \
--reads "$PROJDIR/03-preprocessing/unmapped_nonhg19_reads/*_R1_*fastq.gz" \
--singleEnd \
--fasta "$PROJDIR/01-data/reference_genomes/$reference/$reference.fa" \
--bwa_index "$PROJDIR/01-data/reference_genomes/r$reference/" \
--seq_dict "$PROJDIR/01-data/reference_genomes/$reference/$reference.fa.dict" \
--fasta_index ""$PROJDIR/01-data/reference_genomes/$reference/$reference.fa.fai \
--outdir ""$PROJDIR/04-analysis/mappings/$reference \
--name '$reference_mapping' \
--max_cpus 4 \
--max_mem '32.GB' \
--skip_preseq \
--min_adap_overlap 1 \
--clip_readlength 30 \
--clip_min_read_quality 20 \
--bwaalnn 0.01 \
--bwaalnl 32 \
--bam_discard_unmapped \
--bam_unmapped_type fastq \
--dedupper dedup \
--dedup_all_merged \
-with-dag flowchart.pdf \
-resume \
-r 2.0.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions