Closed gregpinero closed 12 years ago
It looks like that missing file is the ref list:
-t FILE This file is TAB-delimited. Each line must contain the reference name and the length of the reference, one line for each distinct reference; additional fields are ignored. This file also defines the order of the reference sequences in sorting. If you run ‘samtools faidx
It appears that when this line is called: &system_call("samtools", "view", "-bt", "$genomes{$sp}.msg.fai", "-o $out.bam", "$out.filtered.sam") ;
That %genomes has not been defined yet. This creates a command where the fai file doesn't exist.
The bam file is still created so I'm not sure what adverse effect this is having but it's worth investigating.
Maybe it is a typo and was intended to say genomes_fa?
We should probably always use strict mode in Perl to avoid issues like this.