Skip to main content
LexicMap: efficient sequence alignment against millions of prokaryotic genomes​
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

lexicmap

$ lexicmap -h

   LexicMap: efficient sequence/genome alignment against millions of prokaryotic genomes

    Version: v0.10.1
  Documents: https://bioinf.shenwei.me/LexicMap
Source code: https://github.com/shenwei356/LexicMap
Please cite: https://doi.org/10.1038/s41587-025-02812-8

Usage:
  lexicmap [command]

Available Commands:
  autocompletion Generate shell autocompletion scripts
  genome         Commands for genome searching, prefilter, and comparison
  index          Generate an index from FASTA/Q sequences
  search         Search sequences against an index
  utils          Some utilities
  version        Print version information and check for update

Flags:
      --force-gzip-output    ► Gzip-compress result output regardless of the filename, including stdout.
  -h, --help                 help for lexicmap
  -X, --infile-list string   ► File of input file list (one file per line). If given, they are
                             appended to files from CLI arguments.
      --log string           ► Log file.
      --quiet                ► Do not print any verbose information. But you can write them to a file
                             with --log.
  -j, --threads int          ► Number of CPU cores to use. By default, it uses all available cores.
                             (default 16)

Use "lexicmap [command] --help" for more information about a command.

Files from -X/--infile-list are appended to positional inputs, including an explicit - for stdin. With no positional inputs, a non-empty file list supplies the inputs without adding stdin.

Stdin (-) may be used only once across positional files, file-list entries, and auxiliary inputs. For example, -X - cannot be combined with a sequence input from stdin. In indexed genome compare, a genome ID named - remains an ID.

Result output is gzip-compressed when the output filename ends in .gz. Use the global flag --force-gzip-output to enable gzip compression for other filenames or stdout, for example:

lexicmap search -d db.lmi query.fasta --force-gzip-output > results.tsv.gz