PHASTODDS(1)
๐ PHASTODDS(1) โ User Commands, section 1 ๐
okay so bestie, welcome to the manual page for phastOdds, and no cap, it's a whole vibe. it's in the User Commands part of the manual (that's the (1) โ iykyk). let's get into it ๐
๐ฆ NAME ๐ฆ
phastOdds โ compute log-odds scores based on two phylogenetic models or phylo-HMMs, โจ
(yes the original sentence really does end in a comma. iconic. we're keeping it.)
๐ธ DESCRIPTION ๐ธ
okay so the whole point: this computes log-odds scores based on two phylogenetic models or phylo-HMMs โ one for the features you actually care about (think coding exons, conserved regions, the main characters) and one for background (the supporting cast). ๐ซถ
and then it does one of these three things:
- compute a score for each feature in an input set, and output the same set of features with scores; or
- output a separate score for each position in fixed-step WIG format (
http://genome.ucsc.edu/goldenPath/help/wiggle.html); or - compute scores in a sliding window of designated size, and output a three-column file, with the index of the center of each window followed by the score for that window on the positive strand, then the score for that window on the negative strand. ๐
and here's the default tea, so listen up: by default it assumes a reference sequence alignment, with the reference sequence appearing first. feature coordinates are assumed to be defined with respect to the reference sequence (peep --refidx for that one ๐).
โจ SYNOPSIS โจ
phastOdds [OPTIONS] --background-mods <bmods> [--background-hmm <bhmm>]
--feature-mods <fmods> [--feature-hmm <fhmm>] ( --features <feats> |
--window <size> ) <alignment>
and now the deets on those arguments, because they matter fr fr:
<bmods>and<fmods>should be comma-delimited lists of phylogenetic models in.modformat (as produced byphyloFit)<feats>may be in GFF, BED, or genepred format<alignment>may be in FASTA format or an alternative format specified by--msa-format- HMM files should be in the format used by
exoniphy๐ธ
๐ EXAMPLE ๐
(and yes, there's more on the options further down ๐)
1. conservation scores for features, GFF edition ๐ง
compute conservation scores for features in a GFF file, based on a model for conserved sites (conserved.mod) vs. a model of neutral evolution (neutral.mod). (these models may be estimated with phyloFit or phastCons.)
phastOdds --background-mods neutral.mod --feature-mods conserved.mod --features features.gff alignment.fa > scores.gff
and bestie, features could alternatively be specified in BED or genepred format โ the format will be auto-recognized, which is giving low-effort-on-your-part in the best way. the program can be made to produce BED-formatted output with --output-bed. ๐
2. sliding window, size 100 ๐ช
compute conservation scores in a sliding window of size 100.
phastOdds --background-mods neutral.mod --feature-mods conserved.mod --window 100 alignment.fa > scores.dat
(a couple notes: the window is advanced one site at a time. window boundaries are defined in the coordinate frame of the multiple alignment, but center coordinates are converted to the frame of the reference sequence as they are output. okay so it's a whole coordinate glow-up, periodt.)
3. coding potential, phylo-HMM edition ๐งฌ
compute a "coding potential" score for features in a BED file, based on a phylo-HMM for coding regions versus a phylo-HMM for noncoding DNA, with states for conserved and nonconserved sequences.
phastOdds --background-mods codon1.mod,codon2.mod,codon3.mod --background-hmm coding.hmm --feature-mods neutral.mod,conserved-noncoding.mod --feature-hmm noncoding.hmm --features features.bed --output-bed alignment.fa > scores.bed
๐ OPTIONS ๐
--background-mods,-b <backgd_mods>โ (Required) comma-delimited list of tree model (*.mod) files for background. if you use this with--background-hmm, the order of models must correspond to the order of states in the HMM. no mixing that up bestie, the order is the whole plot ๐--background-hmm,-B <backgd.hmm>โ the HMM for background. if there is only one backgound tree model, a trivial (single-state) HMM will be assumed. (that's a single-state HMM doing its little solo moment โจ)--feature-mods,-f <feat_mods>โ (Required) comma-delimited list of tree model (*.mod) files for features. if you use it with--feature-hmm, the order of models must correspond to the order of states in the HMM. same rule, same energy ๐--feature-hmm,-F <feat.hmm>โ the HMM for features. if there is only one tree model for features, a trivial (single-state) HMM will be assumed. ๐ธ--features,-g <feats.gff>โ (Required unless-wor-y) file defining features to be scored (GFF, BED, or genepred). pick your fighter ๐--window,-w <size>โ (can be used instead of-gor-y) compute scores in a sliding window of the specified size. ๐ช--base-by-base,-yโ (can be used instead of-gor-y) output base-by-base scores, in the coordinate frame of the reference sequence (or of the sequence specified by--refidx). output is in fixed-step WIG format (http://genome.ucsc.edu/goldenPath/help/wiggle.html).
okay important: this option can only be used with individual phylogenetic models โ not with sets of models and a (nontrivial) HMM. so don't try it, it's not giving what you want ๐
--window-wig,-W <size>โ (can be used instead of-gor-y) like--windowbut it outputs scores in fixed-step WIG format, as with--base-by-base. scores for the positive strand only are output. ๐--msa-format,-i <type>โ input format for the alignment. may be FASTA, PHYLIP, MPM, SS, or MAF (default is to guess the format from the file contents โ it just knows ๐ฎ).--refidx,-r <ref_seq>โ index of the reference sequence for coordinates. use0to indicate the coordinate system of the alignment as a whole. default is1, for the first sequence. โญ--output-bed,-dโ (for use with-g) generate output in bed format rather than GFF. ๐๏ธโจ--verbose,-vโ verbose mode. print messages tostderrdescribing what the program is doing. it's basically the program narrating its own life ๐ฌ--help,-hโ print this help message. ๐ซถ
okay that's the whole page bestie, you ate it ๐ this manual was serving phastOdds version 1.4, dated May 2016 โ so like, vintage, but make it slay. bye bye, go score something ๐ฅ๐๐ฆ
๐ฆ where this page comes from
- debian bookworm: phast 1.6+dfsg-3+b1 ยท BSD-3-Clause
- debian trixie: phast 1.7+dfsg-2 ยท BSD-3-Clause
- ubuntu jammy: phast 1.6+dfsg-3 ยท BSD-3-Clause
- ubuntu noble: phast 1.6+dfsg-4 ยท BSD-3-Clause
- ubuntu questing: phast 1.7+dfsg-3
- ubuntu resolute: phast 1.8+dfsg-1 ยท BSD-3-Clause
- ubuntu stonking: phast 1.8+dfsg-1 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms