crystal-minimap2
Crystal Minimap2
A crystal implementation of minimap2. Created as a practice exercise for Claude Code
Requirements
- Crystal >= 1.19.1
Build
make
Builds both bin/minimap2 and bin/paftools. Individual targets:
make minimap2
make paftools
Usage
bin/minimap2 -x map-ont ref.fa reads.fa
bin/minimap2 -x map-ont -c ref.fa reads.fa # with CIGAR
bin/minimap2 -x map-ont -a ref.fa reads.fa # SAM output
bin/minimap2 -x map-ont -t 8 ref.fa reads.fa
bin/minimap2 -d ref.mmi ref.fa # build index
bin/minimap2 ref.mmi reads.fa # map against index
Presets: map-ont, map-pb, map-hifi, asm5, asm10, asm20, splice, sr, ava-ont, ava-pb
paftools
bin/paftools <command> [options] <input>
bin/paftools <command> -h
Limitations
- No paired-end mode
- No split index for very large references
- Single-threaded index loading from
.mmifiles
Tests
make spec
License
This is a reimplementation of minimap2. The original license applies to the algorithms and design.
Repository
crystal-minimap2
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- 25 days ago
- April 14, 2026
License
MIT License
Links
Synced at
Wed, 15 Apr 2026 07:27:01 GMT
Languages