esl-mixdchlet(1)
β¨ esl-mixdchlet β¨
okay bestie, sit down, we're doing math and it's gonna be cute π
this one lives in the Easel manual, section 1, and it's literally called esl-mixdchlet. say it with me: esl-mixdchlet. iconic. it's giving "fancy statistics but make it a little CLI miniapp" π
πΈ NAME πΈ
esl-mixdchlet β fitting mixture Dirichlets to count data
like, it takes your counts and it fits a mixture Dirichlet to them. obsessed fr fr π
π SYNOPSIS π
esl-mixdchlet fit [options] Q K in_countfile out_mixchlet
(train a new mixture Dirichlet)
esl-mixdchlet score [options] mixdchlet_file counts_file
(calculate log likelihood of count data, given mixture Dirichlet)
esl-mixdchlet gen [options] mixdchlet_file
(generate synthetic count data from mixture Dirichlet)
esl-mixdchlet sample [options]
(sample a random mixture Dirichlet for testing)
four subcommands, four little vibes, all in one tiny program β¨
π DESCRIPTION π
so esl-mixdchlet is a miniapp whose whole personality is training mixture Dirichlet priors β yes, the exact kind of priors that HMMER and Infernal use π it has four subcommands: fit, score, gen, and sample.
the main character here is absolutely fit β that's the subcommand that fits a brand new mixture Dirichlet distribution to a whole collection of count vectors. think emission or transition count vectors from Pfam or Rfam training sets, bestie π§
more specifically: esl-mixdchlet fit fits a new mixture Dirichlet distribution with Q mixture components to the count vectors (of alphabet size K) in the input file in_countfile, and then saves that mixture Dirichlet into the output file out_mixchlet. slay.
now about that input file, in_countfile: it holds one count vector of length K fields per line, and honestly it can have any number of lines, we're not gatekeeping π«Ά blank lines and lines starting in # (comments, periodt) get ignored. the fields are nonnegative real values β and ngl they do not have to be integers, because they're allowed to be weighted counts. yes, decimals are welcome here π
the format of a mixture Dirichlet file out_mixchlet goes like this, and I need you to lock in:
- the first line has two fields,
K Q, whereKis the alphabet size andQis the number of mixture components. - the next
Qlines consist ofK+1fields. the first field is the mixture coefficientq_k, followed byKfields with the Dirichletalpha[k][a]parameters for this component.
that's it, that's the whole file shape β¨
and the other subcommands:
esl-mixdchlet scorecalculates the log likelihood of the count vector data in counts_file, given the mixture Dirichlet in mixdchlet_file.esl-mixdchlet gengenerates synthetic count data, given a mixture Dirichlet.esl-mixdchlet samplecreates a random mixture Dirichlet distribution and outputs it to standard output.
π OPTIONS FOR FIT SUBCOMMAND π
-hβ print brief help specific to thefitsubcommand.-s <seed>β set the random number generator seed to nonnegative integer<seed>. the default is0, which means "use a quasirandom arbitrary seed" (chaotic of it, honestly π). values>0give you reproducible results, so if you want to re-run and get the same thing twice, this is your girl π
π¦ OPTIONS FOR SCORE SUBCOMMAND π¦
-hβ print brief help specific to thescoresubcommand.
that's the whole list. short king behavior, respect π«‘
πΈ OPTIONS FOR GEN SUBCOMMAND πΈ
-hβ print brief help specific to thegensubcommand.-s <seed>β set the random number generator seed to nonnegative integer<seed>. default is0, which means use a quasirandom arbitrary seed. values>0give reproducible results.-M <M>β generate<M>counts per sampled vector. (default100.)-N <N>β generate<N>count vectors. (default1000.)
so by default you're getting 1000 vectors of 100 counts each. volume, honey π
β OPTIONS FOR SAMPLE SUBCOMMAND β
-hβ print brief help specific to thesamplesubcommand.-s <seed>β set the random number generator seed to nonnegative integer<seed>. default is0, meaning quasirandom arbitrary seed. values>0give reproducible results.-K <K>β set the alphabet size to<K>. (default is20, for amino acids π§¬)-Q <Q>β set the number of mixture components to<Q>. (default is9.)
π₯ SEE ALSO π₯
- http://bioeasel.org/ β go look, bestie, iykyk π
π COPYRIGHT π
Copyright (C) 2020 Howard Hughes Medical Institute. Freely distributed under the BSD open source license.
π AUTHOR π
no cap, that's the whole page. go fit something pretty π
this was Easel 0.48, dated Nov 2020, and that's the esl-mixdchlet(1) manual page β thanks for reading, mwah π«Άβ¨
π¦ where this page comes from
- fedora 43: hmmer-easel 3.3.2-11.fc43 Β· GPL-3.0-only
- fedora 44: hmmer-easel 3.3.2-12.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms