Skip to content

Add file input sanity check #266

@jfy133

Description

@jfy133

Describe the bug
If you provide bam files without specifying --bam and skip earlier steps - processes will start running but start failing due to tag ${file.baseName} not correctly finding right type of input files.

Proposed solution
Add a check that the file suffixes correspond to the expected parameter specifications.

fastq: .fastq.gz, fastq, fq.gz, .fq
bam: .bam

Suggestion from @maxibor: combine a filter (e.g. .filter { it =~/.*.bam/} with ifEmpty.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions