UNIKMER(1)

πŸ“¦
version 0.20.0 Β· 2 versions
  • 0.20.0 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.18.8 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– UNIKMER(1) πŸ’–

okay bestie, pull up a chair, because this is the toolkit for nucleic acid k-mer analysis and it's genuinely iconic 🧬✨


✨ NAME ✨

unikmer β€” Toolkit for nucleic acid k-mer analysis


🌸 DESCRIPTION 🌸

unikmer β€” Toolkit for k-mer with taxonomic information πŸ’…

So basically: unikmer is a toolkit for nucleic acid k-mer analysis, and it gives you functions including set operation on k-mers, optionally with TaxIds, but without count information. no cap.

K-mers are either encoded (when k<=32) or hashed (any k you want, queen), into uint64, and then serialized in a binary file with the extension .unik. that's the whole vibe.

TaxIds can be assigned when counting k-mers from genome sequences, and LCA (Lowest Common Ancestor) is computed during set opertions β€” yes, including computing union, intersection, set difference, unique and repeated k-mers. the way it just... does all of that. πŸ‘‘

Version: v0.19.0

Author: Wei Shen <shenwei356@gmail.com>

Documents: https://bioinf.shenwei.me/unikmer

Source code: https://github.com/shenwei356/unikmer

πŸ¦‹ Dataset (optional) πŸ¦‹

Manipulating k-mers with TaxIds needs a taxonomy file from, like, the NCBI Taxonomy database. Please extract "nodes.dmp", "names.dmp", "delnodes.dmp" and "merged.dmp" from the link below into ~/.unikmer/:

ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz

...or honestly some other directory if that's more your thing, and later you can refer to it using flag --data-dir or environment variable UNIKMER_DB. iykyk. πŸ’–

For GTDB, use taxonkit create-taxdump to create NCBI-style taxonomy dump files, or download from:

https://github.com/shenwei356/gtdb-taxonomy
⚠️ Note that TaxIds are represented using uint32 and stored in 4 or less bytes, so all TaxIds should be in the range of [1, 4294967295]. do not test this. fr fr.

πŸ‘‘ Usage πŸ‘‘

unikmer [command]

πŸŽ€ Available Commands πŸŽ€

  • autocompletion β€” Generate shell autocompletion script (bash|zsh|fish|powershell)
  • common β€” Find k-mers shared by most of multiple binary files
  • concat β€” Concatenate multiple binary files without removing duplicates
  • count β€” Generate k-mers (sketch) from FASTA/Q sequences
  • decode β€” Decode encoded integer to k-mer text
  • diff β€” Set difference of multiple binary files
  • dump β€” Convert plain k-mer text to binary format
  • encode β€” Encode plain k-mer text to integer
  • filter β€” Filter out low-complexity k-mers (experimental)
  • grep β€” Search k-mers from binary files
  • head β€” Extract the first N k-mers
  • info β€” Information of binary files
  • inter β€” Intersection of multiple binary files
  • locate β€” Locate k-mers in genome
  • merge β€” Merge k-mers from sorted chunk files
  • num β€” Quickly inspect number of k-mers in binary files
  • rfilter β€” Filter k-mers by taxonomic rank
  • sample β€” Sample k-mers from binary files
  • sort β€” Sort k-mers in binary files to reduce file size
  • split β€” Split k-mers into sorted chunk files
  • tsplit β€” Split k-mers according to taxid
  • union β€” Union of multiple binary files
  • uniqs β€” Mapping k-mers back to genome and find unique subsequences
  • version β€” Print version information and check for update
  • view β€” Read and output binary format to plain text

πŸ’… Flags πŸ’…

  • -c, --compact β€” write compact binary file with little loss of speed
  • --compression-level int β€” compression level (default -1)
  • --data-dir string β€” directory containing NCBI Taxonomy files, including nodes.dmp, names.dmp, merged.dmp and delnodes.dmp (default "/home/nilesh/.unikmer")
  • -h, --help β€” help for unikmer
  • -I, --ignore-taxid β€” ignore taxonomy information
  • -i, --infile-list string β€” file of input files list (one file per line), if given, they are appended to files from cli arguments
  • --max-taxid uint32 β€” for smaller TaxIds, we can use less space to store TaxIds. default value is 1<<32-1, that's enough for NCBI Taxonomy TaxIds (default 4294967295)
  • -C, --no-compress β€” do not compress binary file (not recommended πŸ™ˆ)
  • --nocheck-file β€” do not check binary file, when using process substitution or named pipe
  • -j, --threads int β€” number of CPUs to use (default 4)
  • --verbose β€” print verbose information

πŸ’– bestie, if you wanna know more about any single command, just run:
unikmer [command] --help

that's it, that's the whole thing, and it will tell you more information about a command. slay. ✨


and that's a wrap, my love 🌈 this was unikmer version 0.19.0, dated August 2022 β€” go forth and k-mer, you absolute main character πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from