Skip to content

FastQ-Screen does not recognize BWA index file with ".64" extension #75

@LauraEgolf

Description

@LauraEgolf

Hello,

If I understand correctly, FastQ-Screen checks for the existence of a BWA index by looking for the extension ".amb", ex. here and here:

  } elsif ( $aligner eq 'bwa' ) {    #BWA
      unless ( -e "$db_path.amb" ) {
          warn "Skipping DATABASE '$db_name' since no BWA index was found at '$db_path'\n";
$database_skipped_flag = 1;
          next;
      }

However, sometimes 64-bit BWA indices have the extension ".64.amb" (created when bwa index is run with the -6 option enabled):

Usage:   bwa index [options] <in.fasta>

Options: -a STR    BWT construction algorithm: bwtsw, is or rb2 [auto]
         -p STR    prefix of the index [same as fasta name]
         -b INT    block size for the bwtsw algorithm (effective with -a bwtsw) [10000000]
         -6        index files named as <in.fasta>.64.* instead of <in.fasta>.* 

We have found that FastQ-Screen doesn't recognize the indices provided in the Broad Institute resource bundle, ex. Homo_sapiens_assembly38.fasta.64.amb.

Not sure if others have noted this problem as well - but maybe the index check could be revised to accommodate the .64 extension?

Thank you!
Laura

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions