Fix hisat2/align to support large genome indices (.ht2l) #9493
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
HISAT2 uses
.ht2lextension instead of.ht2for large genome indices. The current module only detects.ht2indices, causing failures with large genomes.Changes
Updated the index detection command from:
INDEX=`find -L ./ -name "*.1.ht2" | sed 's/\.1.ht2$//'`To:
INDEX=`find -L ./ -name "*.1.ht2*" | sed 's/\.1.ht2.*$//'`This uses a wildcard glob to match both
.1.ht2and.1.ht2lextensions in a single pattern.Related
Related to nf-core/rnaseq#1643
Testing notes
Automated testing of large genome indices (
.ht2l) is not feasible because:hisat2-build.ht2files to.ht2ldoesn't work - the file formats are fundamentally differentManual verification: When
.ht2lfiles are present, the updatedfindcommand correctly:*.1.ht2lsedhisat2-align-l(the large-index variant)The existing tests continue to pass, verifying no regression for standard
.ht2indices.🤖 Generated with Claude Code