Skip to content

bam2cns doesn't handle spaces in the reference path #116

@ressy

Description

@ressy

bam2cns bombs out if the path to the reference file contains whitespace (I know, not my idea of a good filename either) because of how glob() works here at line 244:

...
if($opt_ref_pat){
	($opt_ref_file) = glob($opt_ref_pat);
	$v->exit("Reference file not found ($opt_ref_pat)") unless $opt_ref_file;
...

It doesn't get caught there since there's some text in $opt_ref_file, but later in lib/Fastq/Parser.pm when it tries to read the file.

Maybe something like this would work instead?

	($opt_ref_file) = glob("'${opt_ref_pat}'");

I can make that a pull request if it's helpful. Thanks for proovread by the way!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions