GT-GENOMEDIFF(1)
β¨ GT-GENOMEDIFF β¨ (that's the gt-genomediff page, bestie π
)
okay so you opened the GenomeTools Manual and landed on this one β it's literally the girl that calculates Kr: pairwise distances between genomes. no cap. π§¬π
πΈ NAME πΈ
gt-genomediff β Calculates Kr: pairwise distances between genomes. that's it, that's the whole job, and she does it gorgeously. periodt. β¨
π¦ SYNOPSIS π¦
gt genomediff [option ...] (INDEX | -indexname NAME SEQFILE SEQFILE
[...])
like, you either hand her a ready-made INDEX or you make her build one with -indexname NAME plus a whole parade of SEQFILEs. choose your fighter. π
π DESCRIPTION π
she's got options, she's got range, let's get into it:
-indextype [...]β specify type of index, one of:esa|pck|encseq. and heads up,encseqis an encoded sequence and an enhanced suffix array will be constructed only in memory. (default:encseq)-indexname [string]β Basename of encseq to construct. (default:undefined)-unitfile [filename]β specifies genomic units, see below for description. (default:undefined)-mirrored [yes|no]β virtually append the reverse complement of each sequence (default:no)-pl [value]β specify prefix length for bucket sort recommendation: use without argument; then a reasonable prefix length is automatically determined. (default:0)-dc [value]β specify difference cover value (default:0)-memlimit [string]β specify maximal amount of memory to be used during index construction (in bytes, the keywordsMBandGBare allowed) (default:undefined)-scan [yes|no]β do not load esa index but scan it sequentially. (default:yes)-thr [value]β Threshold for difference (du,dl) in divergence calculation. default:1e-9-abs_err [value]β absolute error for expected shulen calculation. default:1e-5-rel_err [value]β relative error for expected shulen calculation. default:1e-3-M [value]β threshold for minimum logarithm. default:DBL_MIN-v [yes|no]β be verbose (default:no)-helpβ display help for basic options and exit-help+β display help for all options and exit-versionβ display version information and exit
The genomediff tool only accepts DNA input. yes, only DNA. don't try to feed her anything else, she will simply not. π
When used with sequence files or encseq, an enhanced suffix array will be built in memory. The ESA will not be created completely, but construction will use -memlimit as a threshold and build it partwise, calculating the Shu-length for each part. so she chunks it up, no biggie. π
π File format for option -unitfile π (in Lua syntax):
units = {
genome1 = { "path/file1.fa", "file2.fa" },
genome2 = { "file3.fa", "path/file4.fa" }
}
Give the path to the files as they were given to the encseq tool! as they were given, okay? don't get cute with it. You can use
$ gt encseq info INDEXNAME
to get a list of files in an encoded sequence. iconic little peek-behind-the-curtain moment. π
Comment lines in Lua start with -- and will be ignored.
See GTDIR/testdata/genomediff/unitfile1.lua for an example.
Options -pl, -dc and -memlimit are options to influence ESA construction.
π£ REPORTING BUGS π£
Report bugs to <willrodt@zbh.uni-hamburg.de>. (yes, actually email them, they wanna know π«Ά)
okay and for the little sign-off moment β this whole thing is GenomeTools 1.6.6, dated 11/09/2025, and that's the vibe check, bestie. go compute some pairwise distances, you absolute main character. π¦πΈππβ¨
π¦ where this page comes from
- ubuntu resolute: genometools 1.6.6+ds-2
- ubuntu stonking: genometools 1.6.6+ds-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms