minimap(1)
π minimap(1) β bioinformatics tools, but make it a vibe π
okay bestie, so you know how we're always like "how do I find where these long DNA reads go"?? yeah. this is the girl. she's minimap, she lives in the Bioinformatics tools section of your manual, and she's about to become your whole personality. π§¬β¨
πΈ NAME πΈ
minimap β fast mapping between long DNA sequences. that's it, that's the whole job, and she ATE. π
β¨ SYNOPSIS β¨
minimap [-lSOV] [-k kmer] [-w winSize] [-I batchSize] [-d dumpFile] [-f occThres] [-r bandWidth] [-m minShared] [-c minCount] [-L minMatch] [-g maxGap] [-T dustThres] [-t nThreads] [-x preset] target.fa query.fa > output.paf
like, you hand her target.fa and query.fa and she justβ¦ gives you output.paf. no notes. π«Ά
π¦ DESCRIPTION π¦
So minimap is the tool for efficiently finding multiple approximate mapping positions between two sets of long sequences. We're talking reads vs. reference genomes, genomes vs. genomes, long noisy reads vs. each other β the whole squad. π
She runs in two phases, and honestly both are iconic:
- the indexing phase β she collects all the minimizers of a big batch of target sequences into a hash table. yeah. a hash table. she's organized like that. π
- the mapping phase β she spots the good clusters of colinear minimizer hits. π₯
IMPORTANT bestie: minimap does NOT generate detailed alignments between the target and the query sequences. she only outputs the approximate start and end coordinates of those clusters. that's the whole assignment. don't come for her about it. π
π OPTIONS π
π Indexing options π
-k INTβ minimizer k-mer length. default is15. π§-w INTβ minimizer window size. default is2/3 of k-mer length. a minimizer is literally just the smallest k-mer in a window ofwconsecutive k-mers. small but mighty. π«-I NUMβ load at mostNUMtarget bases into RAM for indexing. default is4G. iftarget.fahas more thanNUMbases in it,minimaphas to readquery.famultiple times to map it against each batch of target sequences. πNUMmay end withk/K/m/M/g/G.-d FILEβ dump the minimizer index toFILE. default isno dump. π-lβ tells her thattarget.fais actually a minimizer index generated by option-d, not a FASTA or FASTQ file. plot twist! π
π Mapping options π
-f FLOATβ ignore the topFLOATfraction of most occurring minimizers. default0.001. bye girl, you're too popular. π-r INTβ approximate bandwidth for initial minimizer hits clustering. default500. ok so: a minimizer hit is a minimizer present in both the target and query sequences. a minimizer hit cluster is a group of potentially colinear minimizer hits between a target and a query sequence. now you know. iykyk. π-m FLOATβ merge initial minimizer hit clusters ifFLOATor higher fraction of minimizers are shared between the clusters. default0.5. sharing is caring fr fr. π«Ά-c INTβ retain a minimizer hit cluster only if it containsINTor more minimizer hits. default4. π-L INTβ discard a minimizer hit cluster if, after colinearization, the number of matching bases is belowINT. default40. this one mainly just shrinks the output β it has little effect on speed or peak memory. lowkey just here to declutter. β¨-g INTβ split a minimizer hit cluster at a gap ofINTbp or longer that doesn't contain any minimizer hits. default10000. π₯-T INTβ mask regions on query sequences with SDUST score thresholdINT;0to disable. default0. SDUST is an algorithm to identify low-complexity subsequences, and heads up, it's not enabled by default. if you're into SDUST, a value between20and25is recommended. a higher threshold masks less sequences. πΈ-Sβ perform all-vs-all mapping. in this mode: if the query sequence name is lexicographically larger than the target sequence name, the hits between them get suppressed; and if the query sequence name is the same as the target name, diagonal minimizer hits also get suppressed. π«-Oβ drop a minimizer hit if it's far away from other hits. this one is EXPERIMENTAL (so, y'know, be chill about it). it's useful for mapping long chromosomes from two diverged species. π§ͺ-x STRβ change a whole bunch of settings based onSTR. default isnot set. it's recommended to apply this option before the other options, so the following options can override the settings this one modifies. order matters, bestie. βava10kβ for PacBio or Oxford Nanopore all-vs-all read mapping:-Sw5 -L100 -m0.
π§ Input/output options π§
-t INTβ number of threads. default3.minimapuses at most three threads when collecting minimizers on target sequences, and uses up toINT+1threads when mapping β that extra thread is for I/O, which is frequently idle and takes little CPU time. she's not slacking, she's waiting. π-Vβ print the version number to stdout. π’
π OUTPUT FORMAT π
minimap outputs mapping positions in the Pairwise mApping Format (PAF). PAF is a TAB-delimited text format where each line has at least 12 fields, and here's the rundown, column by column:
- Col
1β typestringβ query sequence name. - Col
2β typeintβ query sequence length. - Col
3β typeintβ query start coordinate (0-based). - Col
4β typeintβ query end coordinate (0-based). - Col
5β typecharβ'+'if query and target are on the same strand;'-'if opposite. - Col
6β typestringβ target sequence name. - Col
7β typeintβ target sequence length. - Col
8β typeintβ target start coordinate on the original strand. - Col
9β typeintβ target end coordinate on the original strand. - Col
10β typeintβ number of matching bases in the mapping. - Col
11β typeintβ number of bases, including gaps, in the mapping. - Col
12β typeintβ mapping quality (0-255, with255for missing).
When the alignment is available, column 11 gives the total number of sequence matches, mismatches and gaps in the alignment, and column 10 divided by column 11 gives the alignment identity. but because minimap does not generate detailed alignment, these two columns are approximate β they're vibes, gorgeous, not receipts. π
PAF may optionally have additional fields in the SAM-like typed key-value format. minimap writes the number of minimizer hits in a cluster to the cm tag. π·οΈ
π SEE ALSO π
miniasm(1)β go read her too, she's the bestie. π«Ά
and that's the whole page, periodt. π
this cutie is minimap-0.2, dated 06 December 2015 β yeah she's an old soul but she's still slaying, bye bestie, go map something π§¬β¨π
π¦ where this page comes from
- debian bookworm: minimap 0.2-7 Β· MIT
- debian trixie: minimap 0.2-8+b3 Β· MIT
- ubuntu jammy: minimap 0.2-6 Β· MIT
- ubuntu noble: minimap 0.2-8 Β· MIT
- ubuntu questing: minimap 0.2-8
- ubuntu resolute: minimap 0.2-8build1 Β· MIT
- ubuntu stonking: minimap 0.2-8build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms