Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LauraEgolf opened this issue Oct 10, 2024 · 1 comment
Open

Comments

@LauraEgolf
Copy link

LauraEgolf commented Oct 10, 2024

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

StevenWingett added a commit that referenced this issue Nov 4, 2024
This allows the use of 64-bit BWA index files.  This was suggested in GitHub Issue #75.
@StevenWingett
Copy link
Owner

Hi @LauraEgolf

Thanks for your message. I've pushed a new version to the development branch that should allow these 64-bit BWA index files.

Please let me know if it works for you and I'll incorporate it into the next release.

Thanks,
Steven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants