GMAP_BUILD(1)
π gmap_build β the manual, section 1 (User Commands) π
hi bestie π«Ά you found the gmap_build page, and honestly? iconic of you. this is the User Commands section of the manual, and we're gonna get you fully set up. no cap.
β¨ NAME β¨
gmap_build β the tool that builds genome databases for GMAP or GSNAP π§¬π
πΈ SYNOPSIS πΈ
gmap_build [options...] -d <genome> [-c <transcriptome> -T <transcript_fasta>] <genome_fasta_files>
π¦ DESCRIPTION π¦
so here's the vibe: gmap_build builds a gmap database for a genome, and that database is what GMAP or GSNAP will use later. it's part of the GMAP package, version 2025-07-31. β
you can name <genome> and <transcriptome> literally whatever you want, bestie β no rules, main character energy, your call. just remember you'll be using those exact same names later when you do your alignments with GMAP or GSNAP, so don't get cute and forget them. π
π‘ note: if you're adding a transcriptome to a genome you already built, then there's no need to specify the genome_fasta_files at all. that's the whole trick β it's how you tack transcriptome info onto an existing genome database without redoing everything. slay.
π OPTIONS π
-D,--genomedir=STRINGβ where to install it, i.e. the destination directory. defaults to thegmapdbdirectory that was specified at configure time. π-d,--genomedb=STRINGβ the genome name. this one is required, so likeβ¦ don't skip it. π-n,--names=STRINGβ swap in substitute names for your contigs, handed over in a file. this file can come in two formats:- a file with one column per line, where each line corresponds to a FASTA file, in the order given to
gmap_build. the chromosome name for each FASTA file gets replaced with the chromosome name you want from the file. every chromosome in the FASTA must have a corresponding line in the file. this is lowkey perfect if you want to rename chromosomes using some systematic numbering pattern. π’ - a file with two columns per line, separated by white space. column 1 is the original FASTA chromosome name, column 2 is the chromosome name you want instead.
- a file with one column per line, where each line corresponds to a FASTA file, in the order given to
what format 2 actually means depends on whether --limit-to-names is specified. if it is, the genome build will be limited to just those chromosomes listed in this file. if it isn't, then every chromosome in the FASTA file gets included, but only the ones in this file get re-named β which is a super easy way to change just a few chromosome names. π§
this file can be combined with the --sort=names option, and in that case the order of chromosomes is exactly the order given in the file. when you do that, every chromosome has to be listed in the file, and for any chromosome names you don't want changed, column 2 can just be blank (or the same as column 1). heads up though: a blank column 2 is allowed only when you specify --sort=names, because otherwise the program can't tell the difference between a 1-column and a 2-column names file. β οΈ
-L,--limit-to-namesβ decides whether to limit the genome build to just the lines listed in the--namesfile. pair this option with a--namesfile to limit a genome build to certain chromosomes β either a file that renames chromosomes, or one that lists the same names in both columns for the chromosomes you want. β¨-k,--kmer=INTβ the k-mer value for the genomic index. allowed:15or less. default is15. π₯-qINT β sampling interval for the genome. allowed:1-3, default3.-s,--sort=STRINGβ sort chromosomes using the given method:noneβ use chromosomes as found in the FASTA file(s) (default)alphaβ sort chromosomes alphabetically (chr10beforechr 1)numeric-alphaβchr1,chr1U,chr2,chrM,chrU,chrX,chrYchromβchr1,chr2,chrM,chrX,chrY,chr1U,chrUnamesβ sort chromosomes based on the file provided to the--namesflag
-g,--gunzipβ your files are gzipped, so each one needs to be gunzipped first. ποΈ-E,--fasta-pipe=STRINGβ interpret the argument as a command, instead of as a list of FASTA files. π«-Q,--fastqβ the files are in FASTQ format.-R,--revcompβ reverse complement all contigs. π-wINT β wait (sleep) this many seconds after each step. default2.-o,--circular=STRINGβ circular chromosomes. give it either a list of chromosomes separated by a comma, or a filename containing circular chromosomes, one per line. if you're using the--namesfeature, then you should use the substitute name of the chromosome here, not the original name. (NOTE: this behavior is different from previous versions, and starts with version2020-10-20.) π-2,--altscaffold=STRINGβ file with alt scaffold info, listing alternate scaffolds, one per line, tab-delimited, with these fields: (1)alt_scaf_acc, (2)parent_name, (3)orientation, (4)alt_scaf_start, (5)alt_scaf_stop, (6)parent_start, (7)parent_end. π-e,--nmessages=INTβ maximum number of messages (warnings, contig reports) to report. default50.--sarray=INTβ whether to build the suffix array:0=no (default),1=yes.
π Options for older genome formats π
-M,--mdflag=STRINGβ use an MD file from NCBI for mapping contigs to chromosomal coordinates.
π Options for transcriptome-guided alignment π
-C,--transcriptomedir=STRINGβ destination directory for installation. defaults to thegmapdbdirectory specified at configure time.-c,--transcriptomedb=STRINGβ transcriptome name, plus one of these four flags:--gtf=FILEβ GTF file containing transcripts--gff3=FILEβ GFF3 file containing transcripts-G,--genes=FILEβ genes file containing transcripts-T,--transcripts=FILEβ FASTA file containing transcripts-t,--nthreads=INTβ number of threads for GMAP alignment of transcripts to genome (default8). applies if the--transcriptsoption is given. π§΅
other tools of the GMAP suite are located in /usr/lib/gmap π
and that's the whole page, bestie!! π go build something gorgeous. this was gmap_build version 2025-07-31+ds-1, from October 2025 β mwah, catch you on the next manpage πβ¨π¦
π¦ where this page comes from
- ubuntu resolute: gmap 2025-07-31+ds-1 Β· Apache-2.0
- ubuntu stonking: gmap 2025-07-31+ds-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms