GMAP(1)
π NAME π
gmap β the Genomic Mapping and Alignment Program. that's it, that's the whole rΓ©sumΓ©. she maps genomes, she aligns sequences, she eats. π§¬π
πΈ SYNOPSIS πΈ
gmap [OPTIONS...] <FASTA files...>, or cat <FASTA files...> | gmap [OPTIONS...]
okay so literally two ways to feed her: hand her the FASTA files directly, OR cat them and pipe them in. both are valid, both are cute. π«Ά
β¨ OPTIONS β¨
π Input options (must include -d or -g) π
no cap, you have to give her-dor-g. no genome = no alignment = sad girl hours. π
-D,--dir=directoryβ the Genome directory. the default (as specified by--with-gmapdbto the configure program) is/var/cache/gmap. that's where she's expecting your stuff to be. π-d,--db=STRINGβ the Genome database. and listen, if the argument is'?'(yes, with the quotes), this command lists the available databases for you. so you can window-shop before committing. π₯-k,--kmer=INTβ the kmer size to use in the genome database (allowed values: 16 or less). if you don't specify it, she'll go find the highest available kmer size in the genome database herself. self-sufficient queen. π--sampling=INTβ the sampling to use in the genome database. if you don't specify it, the program will find the smallest available sampling value in the genome database within the selected k-mer size. she handles it. π¦-g,--gseg=filenameβ user-supplied genomic segments. and if you give her multiple segments, then every query sequence gets aligned against every genomic segment. everybody meets everybody. it's giving networking event. π-1,--selfalignβ align one sequence against itself, in FASTA format, via stdin. (super useful for getting the protein translation of a nucleotide sequence, iykyk) π-2,--pairalignβ align two sequences in FASTA format via stdin, where the first one is genomic and the second one is cDNA. order matters bestie!! π--cmdline=STRING,STRINGβ align these two sequences, provided right there on the command line. first one is genomic, second one is cDNA. same rule as above. π--align-fraction=FLOATβ process only the given fraction of reads, selected at random. and if you pass both--align-fractionand--part, then--align-fractiontakes precedence. she picks a winner, no drama. β¨-q,--part=INT/INTβ process only the i-th out of every n sequences, e.g.0/100or99/100. super handy for distributing jobs to a computer farm. π--input-buffer-size=INTβ the size of the input buffer. (the program reads this many sequences at a time for efficiency.) default is1000. π₯
π§ Computation options π§
-B,--batch=INTβ batch mode (default =2). here's the menu:
Mode Positions Genome
0 mmap mmap
1 mmap & preload mmap
(default) 2 mmap & preload mmap & preload
3 allocate mmap & preload
4 allocate allocate
5 allocate allocate (same as 4)
Note: for a single sequence, all data structures usemmap. and ifmmapis not available andallocatewas not chosen, then she'll usefileioβ which is very slow. like, painfully. π
--use-shared-memory=INTβ if1, then the allocated memory is shared among all processes on this node. if0(the default), then each process has its own private allocated memory. sharing is caring, but only if you opt in. π--nosplicingβ turns off splicing. (useful for aligning genomic sequences onto a genome.) π¦--max-deletionlength=INTβ max length for a deletion (default30). above this size, a genomic gap will be considered an intron rather than a deletion. and if the genomic gap is less than--max-deletionlengthand greater than--min-intronlength, a known splice site or splice site probabilities of0.80on both sides will be reported as an intron. π--min-intronlength=INTβ min length for one internal intron (default9). below this size, a genomic gap will be considered a deletion rather than an intron. and if the genomic gap is less than--max-deletionlengthand greater than--min-intronlength, a known splice site or splice site probabilities of0.80on both sides will be reported as an intron. π--max-intronlength-middle=INTβ max length for one internal intron (default500000). π note: for backward compatibility, the-Kor--intronlengthflag will set both--max-intronlength-middleand--max-intronlength-ends. also see--split-large-intronsbelow. πΈ--max-intronlength-ends=INTβ max length for the first or last intron (default10000). π note: for backward compatibility, the-Kor--intronlengthflag will set both--max-intronlength-middleand--max-intronlength-ends. β¨--split-large-intronsβ sometimes GMAP will exceed the value for--max-intronlength-middle, if it finds a good single alignment. however, you can force GMAP to split such alignments by using this flag. she needs a little push sometimes. π--end-trimming-score=INTβ trim ends if the alignment score is below this value, where a match scores+1and a mismatch scores-3. the value should be0(default) or negative. a negative allows some mismatches at the ends of the alignment. π₯--trim-end-exons=INTβ trim end exons with fewer than the given number of matches (in nt, default12). π-w,--localsplicedist=INTβ max length for known splice sites at ends of sequence (default2000000). π¦-L,--totallength=INTβ max total intron length (default2400000). π-x,--chimera-margin=INTβ the amount of unaligned sequence that triggers a search for the remaining sequence (default30). this enables alignment of chimeric reads, and may help with some non-chimeric reads too. to turn it off, set it to zero. π--no-chimerasβ turns off finding of chimeras. same effect as--chimera-margin=0. β¨-t,--nthreads=INTβ number of worker threads. more threads, more power. π-c,--chrsubset=stringβ limit the search to the given chromosome. π--strand=STRINGβ the genome strand to try aligning to (plus,minus, orbothβ that's the default). π-z,--direction=STRINGβ cDNA direction (sense_force,antisense_force,sense_filter,antisense_filter, orauto(default)). π--canonical-mode=INTβ reward for canonical and semi-canonical introns:0= low reward,1= high reward (default),2= low reward for high-identity sequences and high reward otherwise. β¨--cross-speciesβ use a more sensitive search for canonical splicing, which helps especially for cross-species alignments and other difficult cases. for when your sequences are from two different worlds. ππ--allow-close-indels=INTβ allow an insertion and deletion close to each other (0= no,1= yes (default),2= only for high-quality alignments). π¦--microexon-spliceprob=FLOATβ allow microexons only if one of the splice site probabilities is greater than this value (default0.95). π--indel-openβ in dynamic programming, the opening penalty for indel. π--indel-extendβ in dynamic programming, the extension penalty for indel. values for--indel-openand--indel-extendshould be in[-127,-1]. if a value is< -127, then it will use-127instead. and if--indel-openand--indel-extendare not specified, the values are chosen adaptively, based on the differences between the query and reference. she's adaptive like that. β¨--cmetdir=STRINGβ directory for methylcytosine index files (created usingcmetindex). (default is the location of genome index files specified using-D,-V, and-d.) πΈ--atoidir=STRINGβ directory for A-to-I RNA editing index files (created usingatoiindex). (default is the location of genome index files specified using-D,-V, and-d.) π¦--mode=STRINGβ alignment mode:standard(default),cmet-stranded,cmet-nonstranded,atoi-stranded,atoi-nonstranded,ttoc-stranded, orttoc-nonstranded. β οΈ the non-standard modes require you to have previously run thecmetindexoratoiindexprograms (which also cover the ttoc modes) on the genome. no skipping steps bestie!! π-p,--prunelevelβ pruning level:0= no pruning (default),1= poor seqs,2= repetitive seqs,3= poor and repetitive. π
π Output types π
-S,--summaryβ show a summary of alignments only. π-A,--alignβ show alignments. β¨-3,--continuousβ show the alignment in three continuous lines. π-4,--continuous-by-exonβ show the alignment in three lines per exon. π¦-E,--exons=STRINGβ print exons ("cdna"or"genomic"). will also print introns with"cdna+introns"or"genomic+introns". πΈ-P,--protein_dnaβ print the protein sequence (cDNA). π-Q,--protein_genβ print the protein sequence (genomic). π-f,--format=INTβ another format for output (also peep the-Aand-Soptions and the other options listed under Output types). the lineup is:mask_intronsmask_utr_intronspsl(or1) = PSL (BLAT) formatgff3_gene(or2) = GFF3 gene formatgff3_match_cdna(or3) = GFF3 cDNA_match formatgff3_match_est(or4) = GFF3 EST_match formatsplicesites(or6) = splicesites output (for GSNAP splicing file)introns= introns output (for GSNAP splicing file)map_exons(or7) = IIT FASTA exon map formatmap_ranges(or8) = IIT FASTA range map formatcoords(or9) = coords in table formatsampe= SAM format (setting paired_read bit in flag)samse= SAM format (without setting paired_read bit)bedpe= indels and gaps in BEDPE format
π Output options π
-n,--npaths=INTβ maximum number of paths to show (default5). π if set to1, GMAP will not report chimeric alignments, since those imply two paths. if you want a single alignment plus chimeric alignments, then set this to0. π--suboptimal-score=FLOATβ report only paths whose score is within this value of the best path. if specified between0.0and1.0, then it's treated as a fraction of the score of the best alignment (matches minus penalties for mismatches and indels). otherwise, it's treated as an integer number to be subtracted from the score of the best alignment. the default value is0.50. β¨-O,--orderedβ print output in the same order as the input. (only relevant if there's more than one worker thread, so like... multitaskers only.) π¦-5,--md5β print the MD5 checksum for each query sequence. π₯-o,--chimera-overlapβ the overlap to show, if any, at the chimera breakpoint. π--failsonlyβ print only the failed alignments, meaning those with no results. π--nofailsβ exclude printing of failed alignments. π-V,--snpsdir=STRINGβ directory for SNPs index files (created usingsnpindex). (default is the location of genome index files specified using-Dand-d.) πΈ-v,--use-snps=STRINGβ use a database containing known SNPs (in<STRING>.iit, built previously usingsnpindex) for tolerance to SNPs. π§¬--split-output=STRINGβ basename for multiple-file output, separately fornomapping,uniq,mult, (andchimera, if--chimera-marginis selected). π
okay that's part 1 and she is not done yet, there's more coming bestie, don't go anywhere πβ¨
--failed-input=STRINGβ sends every completely failed alignment out to the file you name, as input FASTA or FASTQ format. And if you also passed--split-output? Then this file gets generated on top of whatever lands in the.nomappingfile. bestie gets both π--append-outputβ when--split-outputor--failedinputis in play, this flag makes the output get appended to files that already exist. Without it, default behaviour is to make brand-new files every time.--output-buffer-size=INTβ buffer size, counted in queries, for the output thread (default1000). Once the pile of results waiting to be printed goes over this size, the worker threads justβ¦ wait π«Ά until the backlog clears.--translation-code=INTβ the genetic code used to translate codons into amino acids and to compute CDS. Integer value (default1) lines up with one of the codes listed athttp://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi.--alt-start-codonsβ also uses those alternate initiation codons shown at that same website. By default, with this option off, onlyATGcounts as an initiation codon. no ATG no start, periodt.-F,--fulllengthβ assumes a full-length protein, starting with Met.-a,--cdsstart=INTβ translates codons starting from the given nucleotide (1-based).-T,--truncateβ truncates the alignment around the full-length protein, Met to Stop. Implies-F.-Y,--tolerantβ translates cDNA with corrections for frameshifts. she's forgiving like that π
β¨ Options for GFF3 output β¨
--gff3-add-separators=INTβ whether to drop a###separator after each query sequence. Values:0(no),1(yes, default).--gff3-swap-phase=INTβ whether to swap phase (0=>0,1=>2,2=>1) ingff3_geneformat. Some analysis programs need this, but it deviates from the GFF3 specification. Values:0(no, default),1(yes).--gff3-fasta-annotation=INTβ whether to include annotation from the FASTA header in the GFF3 output. Values:0(default): do not include.
1: wrap all annotation as Annot="<header>"
2: include key=value pairs, replacing brackets with quotation marks, and replacing spaces between key=value pairs with semicolons.
--gff3-cds=STRINGβ whether to use cDNA or genomic translation for the CDS coordinates. Values:cdna(default),genomic.
πΈ Options for SAM output πΈ
--no-sam-headersβ do not print headers that begin with@.--sam-use-0Mβ inserts0Min the CIGAR between adjacent insertions and deletions. Picard requires it, but it can cause errors in other tools. pick your fighter π--sam-extended-cigarβ use the extended CIGAR format (usingXand=symbols instead ofM, to indicate matches and mismatches, respectively).--sam-flippedβ flips the query and genomic positions in the SAM output. Potentially useful with the-gflag when short reads are picked as query sequences and longer reads are picked as genomic sequences.--force-xs-dirβ for RNA-Seq alignments, disallowsXS:A:?when the sense direction is unclear, and replaces that value arbitrarily withXS:A:+. May be useful for some programs, like Cufflinks, that can't handleXS:A:?. However β if you use this flag, the reportedXS:A:+in those cases will not be meaningful. π«--md-lowercase-snpβ in the MD string, when known SNPs are given by the-vflag, prints difference nucleotides as lower-case when they differ from the reference but match a known alternate allele.--action-if-cigar-errorβ the action to take if there's a disagreement between CIGAR length and sequence length. Allowed values:ignore,warning(default),noprint,abort. Heads up: thenoprintoption doesn't print the CIGAR string at all if there's an error, so it may break a SAM parser π--read-group-id=STRINGβ value to put into the read-group id (RG-ID) field.--read-group-name=STRINGβ value to put into the read-group name (RG-SM) field.--read-group-library=STRINGβ value to put into the read-group library (RG-LB) field.--read-group-platform=STRINGβ value to put into the read-group library (RG-PL) field.
π Options for quality scores π
--quality-protocol=STRINGβ protocol for input quality scores. Allowed values:
illumina (ASCII 64-126) (equivalent to -J 64 -j -31)
sanger (ASCII 33-126) (equivalent to -J 33 -j 0)
Default is sanger (no quality print shift).
SAM output files should have quality scores in sanger protocol.
Or you can specify the print shift with this flag:
-j,--quality-print-shift=INTβ shift FASTQ quality scores by this amount in output (default is0for sanger protocol; to change Illumina input to Sanger output, select-31).
π¦ External map file options π¦
-M,--mapdir=directoryβ map directory.-m,--map=iitfileβ map file. If the argument is'?'(with the quotes), this lists available map files.-e,--mapexonsβ map each exon separately.-b,--mapbothβ report hits from both strands of genome.-u,--flanking=INTβ show flanking hits (default0).--print-commentβ show the comment line for each hit.
π Alignment output options π
--nolengthsβ no intron lengths in alignment.--nomarginβ no left margin in GMAP standard output (with the-Aflag).-I,--invertmode=INTβ mode for alignments to genomic (-) strand:
0 = don't invert the cDNA (default)
1 = invert cDNA and print genomic (-) strand
2 = invert cDNA and print genomic (+) strand
-i,--introngap=INTβ nucleotides to show on each end of intron (default3).-l,--wraplength=INTβ wrap length for alignment (default50).
π Filtering output options π
--min-trimmed-coverage=FLOATβ do not print alignments with trimmed coverage less than this value (default0.0, which means no filtering). Note that chimeric alignments will be output regardless of this filter.--min-identity=FLOATβ do not print alignments with identity less than this value (default0.0, which means no filtering). Note that chimeric alignments will be output regardless of this filter.
π Help options π
--checkβ check compiler assumptions.--versionβ show version.--helpβ show this help message.
Other tools of the GMAP suite are located in /usr/lib/gmap.
and that's the whole page, bestie π this one's from gmap 2025-07-31+ds-1, dated October 2025, and it's the GMAP(1) manual β go read your alignments, you absolute icon π«Άβ¨
π¦ 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