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

no minimap2 index was found #76

Open
johnstonmj opened this issue Nov 6, 2024 · 1 comment
Open

no minimap2 index was found #76

johnstonmj opened this issue Nov 6, 2024 · 1 comment

Comments

@johnstonmj
Copy link

I was trying to use fastq_screen with --aligner "minimap2".

I encountered the error:
Skipping DATABASE 'genome_xyz' since no minimap2 index was found at '/home/references/genome_xyz/genome_xyz.fa'

I see that this is looking for a minimap2 index ending with a fasta file extension.

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

I think this may be improved by replacing "fa" with "mmi", as mmi is the expected index file extension.

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

As a temporary workaround, I can symlink the mmi index to match the tested ".fa" file extension:

ln -s "genome_xyz.mmi" "genome_xyz.fa.fa"

This is confusing as the "fa" file extension should indicate a fasta file, and this results in a double ".fa.fa" extension if $db_path already ends with ".fa"

Hope this helps!
Thanks for a great tool!
Excited for the inclusion of minimap2!

@sandratra-rab
Copy link

I agree, my current workaround is to keep the original fasta/fa.gz files in the same directory as the index/.mmi files for now.
Otherwise it works well !

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