MEGAHIT(1)
πΈ MEGAHIT β the ultra-fast, memory-efficient meta-genome assembler π
okay bestie, sit down, hydrate, and let me tell you about megahit(1) because this one is literally iconic β¨
π¦ NAME π¦
megahit β an ultra-fast and memory-efficient meta-genome assembler. no cap, that's the whole vibe. π₯
π DESCRIPTION π
So we're on MEGAHIT v1.2.8, and if you need to slide into someone's inbox about it, the contact is Dinghua Li <voutcn@gmail.com> π
β¨ Usage: β¨
megahit [options] {-1 <pe1> -2 <pe2> | --12 <pe12> | -r <se>} [-o <out_dir>]
Heads up, bestie: these are the input options you can specify multiple times β and yes, plain text and gz/bz2 extensions are both supported, we love a flexible queen π«Ά
-1<pe1>β a comma-separated list of fasta/q paired-end #1 files, paired with the files in<pe2>π-2<pe2>β a comma-separated list of fasta/q paired-end #2 files, paired with the files in<pe1>β¨--12<pe12>β a comma-separated list of interleaved fasta/q paired-end files π¦-r/--read<se>β a comma-separated list of fasta/q single-end files πΈ
π Optional Arguments π
π Basic assembly options:
--min-count<int>β minimum multiplicity for filtering (k_min+1)-mers [2]--k-list<int,int,..>β comma-separated list of kmer sizes. every single one must be odd, in the range 15-255, and the increment has to be <= 28. default is [21,29,39,59,79,99,119,141] π«--k-min<int>β minimum kmer size (<= 255), must be an odd number [21]--k-max<int>β maximum kmer size (<= 255), must be an odd number [141]--k-step<int>β increment of kmer size for each iteration (<= 28), must be an even number [12]
okay wait, there's a whole other way to set--k-listβ and it overrides--k-listif either one of them is set. so the trio above (--k-min,--k-max,--k-step) is the alternate route, and they win. iykyk π
π Advanced assembly options:
--no-mercyβ do not add mercy kmers. ruthless. π--bubble-level<int>β intensity of bubble merging (0-2), and0disables it entirely [2]--merge-level<l,s>β merge complex bubbles of length <= l*kmer_size and similarity >= s [20,0.95]--prune-level<int>β strength of low depth pruning (0-3) [2]--prune-depth<int>β remove unitigs with avg kmer depth less than this value [2]--disconnect-ratio<float>β disconnect unitigs if their depth is less than this ratio times the total depth of itself and its siblings [0.1]--low-local-ratio<float>β remove unitigs if their depth is less than this ratio times the average depth of the neighborhoods [0.2]--max-tip-len<int>β remove tips less than this value [2*k]--cleaning-rounds<int>β number of rounds for graph cleanning [5] (yes, that's how it's spelled in the source, we're keeping it, it's part of the lore π)--no-localβ disable local assembly π--kmin-1passβ use 1pass mode to build the SdBG ofk_minβ
π§ Presets parameters:
--presets<str>β override a whole group of parameters at once. possible values are:meta-sensitive:--min-count 1 --k-list 21,29,39,49,...,129,141meta-large:--k-min 27 --k-max 127 --k-step 10(this one's for large & complex metagenomes, like soil π±)
π₯οΈ Hardware options:
-m/--memory<float>β max memory in byte to be used in SdBG construction. if you set it between 0-1, it's treated as a fraction of the machine's total memory [0.9] πΎ--mem-flag<int>β SdBG builder memory mode. 0: minimum; 1: moderate; others: use all memory specified by-m/--memory[1]-t/--num-cpu-threads<int>β number of CPU threads [default is the # of logical processors] β‘--no-hw-accelβ run MEGAHIT without BMI2 and POPCNT hardware instructions π
π¦ Output options:
-o/--out-dir<string>β output directory [./megahit_out]--out-prefix<string>β output prefix. the contig file will beOUT_DIR/OUT_PREFIX.contigs.faπ--min-contig-len<int>β minimum length of contigs to output [200]--keep-tmp-filesβ keep all temporary files (your disk said π« )--tmp-dir<string>β set temp directory
π Other Arguments π
--continueβ continue a MEGAHIT run from its last available check point. β οΈ please set the output directory correctly when using this option, bestie, or it's giving chaos π--testβ run MEGAHIT on a toy test dataset π§Έ-h/--helpβ print the usage message-v/--versionβ print version
π AUTHOR π
This manpage was written by Shayan Doust for the Debian distribution, and can be used for any other usage of the program. periodt. π«Ά
and that's the whole page, bestie β brought to you by megahit 1.2.8, dating all the way back to October 2019 πΈ stay slaying, stay assembling, and remember: the contigs were always going to eat π
β¨
π¦ where this page comes from
- debian bookworm: megahit 1.2.9-4 Β· GPL-3.0-or-later
- debian trixie: megahit 1.2.9-5 Β· GPL-3.0-or-later
- ubuntu jammy: megahit 1.2.9-3 Β· GPL-3.0-or-later
- ubuntu noble: megahit 1.2.9-5 Β· GPL-3.0-or-later
- ubuntu questing: megahit 1.2.9-5
- ubuntu resolute: megahit 1.2.9+dfsg-1 Β· GPL-3.0-or-later
- ubuntu stonking: megahit 1.2.9+dfsg-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms