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!
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:It doesn't get caught there since there's some text in
$opt_ref_file, but later inlib/Fastq/Parser.pmwhen it tries to read the file.Maybe something like this would work instead?
I can make that a pull request if it's helpful. Thanks for proovread by the way!