samtools-dict(1)
πΈ samtools-dict(1) β bestie's guide to sequence dictionaries πΈ
ok so real talk, this is a page from the Bioinformatics tools manual set, and it's called samtools-dict(1). yes the title is literally the command name with a (1) glued on, that's just how manpages do. anyway. sit down, grab a boba, we're making a dictionary πβ¨
β¨ NAME β¨
samtools dict β it creates a sequence dictionary file from a fasta file. that's the whole job. it's giving "one task, done flawlessly." π
π¦ SYNOPSIS π¦
samtools dict ref.fasta|ref.fasta.gz
so you hand it a fasta file, or a gzipped fasta file, and it hands you back a dictionary. no cap, that's it. the | in there means either one, not a pipe you type. π
π DESCRIPTION π
Create a sequence dictionary file from a fasta file.
(ok the original literally says that in one line, but like β to be clear β you give it the fasta, it makes the dictionary file. main character behavior, honestly. it's not doing side quests.) π₯
π OPTIONS π
-a,--assemblySTR β sets the assembly, and it goes into theAStag. yes the tag is literally calledAS. iconic naming tbh.-A,--alias,--alternative-nameβ adds anANtag whose value is the same as theSNtag, with one lil twist: aβchrβprefix gets removed ifSNhas one, or added if it does not. and for mitochondria β that's whenSNisβMβorβMTβ, with or without aβchrβprefix β it also adds the remaining combinations ofβchr/M/MTβto theANtag. mito gets the full set, fr fr. π§¬-H,--no-headerβ do not print the@HDheader line. sometimes you just don't want the header, and that's valid. π-l,--altFILE β adds anAHtag to each sequence listed in the specifiedbwa(1)-style.altfile. these files use SAM records to represent alternate locus sequences (as named in theQNAMEfield) and their mappings to the primary assembly. so yes,QNAMEfield, that's where the names live. π-o,--outputFILE β output to FILE. defaults to[stdout], so if you forget it, stuff just spills onto your terminal. classic.-s,--speciesSTR β specify the species for theSPtag. tell it what organism you're dealing with. π±-u,--uriSTR β specify the URI for theURtag. it defaults to the absolute path ofref.fasta, unless you're reading from stdin β in which case, no absolute path to speak of. π
π«Ά AUTHOR π«Ά
Written by Shane McCarthy from the Sanger Institute. ty Shane, we appreciate you π
π SEE ALSO π
Samtools website: <http://www.htslib.org/>
File format specification of SAM/BAM,CRAM,VCF/BCF: <http://samtools.github.io/hts-specs>
Samtools latest source: <https://github.com/samtools/samtools>
HTSlib latest source: <https://github.com/samtools/htslib>
Bcftools website: <http://samtools.github.io/bcftools>
ok that's the whole page babes, go make some dictionaries π β¨
sign-off szn: this lil masterpiece is from samtools-1.24, dated 9 July 2026 β so when you're citing it, that's the version and that's the date. periodt. ππ¦π
π¦ where this page comes from
- epel 10: samtools 1.24-2.el10_3 Β· MIT
- nixpkgs unstable: samtools 1.24
- Copyright (C) 2008-2011, 2013-2018 Genome Research Ltd
- copyright (C) 2010, 2011 Broad Institute
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms