FILTER(1)
π FILTER(1) π
welcome to the FILTER(1) page bestie, straight out of the User Contributed Perl Documentation shelf π«Ά this one lives in section 1 and it's about a little script called filter.pl and honestly it eats π
β¨ NAME β¨
filter.pl β filters output from murasaki based on various filters πΈ
like, that's the whole vibe. murasaki spits stuff out, filter.pl decides what stays. periodt.
π SYNOPSIS π
filter.pl [options] <detailed murasaki ailgnment file> [output file]
(yes it says ailgnment, we don't fix it, we respect it π)
π OPTIONS π
π Filtering options
you can filter on length, hits, tfidf, or score β¨ and you filter by setting either a min or a max π
- fr fr example:
--minlength 50filters out any anchors with an average length shorter than 50. and why average length? because an anchor may be different sizes on different sequences π§ - filters can also use the average(
x), standard deviation(s), variance(v), or anchor count(a) in an expression to set a filter π - so like,
--minscore=2xsets the minimum score threshold to twice the average score. and--minlength=x+s/2sets the minimum length threshold to the average length plus half a standard deviation π«
π οΈ Input modification
--widen=500β extends each anchor 500 bases in both directions πΈ--randomwiden=500β extends each anchor 500 bases at random (ie: to compare to--widen) π
π€ Output options
--statdumpβ dump all available stats into 1 file with a header row π--dumpstats tfidf,lengthβ dumps statstfidfandlengthto separate files, one line per anchor π--dumpstatsβ assumes--dumpstats allβ¨
π Plot options
filter.pl can plot any or all of the statistics gathered by using the --plot option π
examples, bestie:
--plot hits,lengthβ plots bothhitsandlength--plotβ assumes--plot all
--plotopts allows setting of various gnuplot and special plot options π
different statistics can be targeted separately by prefixing the setting name with the statistic(s) of your choice followed by a .
for example:
--plotopts hits,length.flatxβ disables the log scale on the x axis of thehitsandlengthplots only--plotopts with=pointsβ uses points instead of bars on all plots--plotopts <gnuplot option>=<value>β can be used to set arbitrary gnuplot options of the formset <gnuplot option> <value>
more plot knobs, no cap:
--binsβ can be used to specify the number of bins π--nobinsβ turns off binning and plots a raw (likely bumpy) histogram π--showall=cropβ sends all data to gnuplot even on logscale plots (by default for logscale plots values<=1at the extreme right end are chopped off because they don't show up in gnuplot (1 is the baseline) but they do affect the visible range, and thus causes some scrunching) π€--showall=scaleβ manually sets to the X and Y ranges to the range of the data (so 1's are visibly different from 0's) π--showall=<anything else>β disables scaling/cropping π
also the Gnuplot commands for generating the plots are also dumped to <something>.<stat-type>.plot and can be run interactively in gnuplot by typing:
load "<something>.<stat-type>.plot"
π Statistical Options
--all/--quickβ standard deviation calculations require a second pass through the data, and as histogram plots are generally much more useful than a standard deviation statistic (especially considering not all of these statistics may be gaussian), so unless one of your constraints calls for standard deviation, this calculation is skipped. It can be forced by applying--all. (--quickis the default) π«Ά--nodetailsβ disables reconstruction of term indicies (this will disabletfidfstats) π--tagsβ enables reading of annotation. This produces"good, miss, shuffle"stats (which can also be plotted) and specificity/sensitivity information π--notagsβ disables reading of annotation (by default) π€
𧬠COG/KOG Statistics
at any rate:
--kogfile=path/to/kogβ enables kog-based alignment π₯--kogmap 3=hsaβ forces sequence 3 (note: sequences are 0 indexed) to be assigned to the"hsa"kog. If the file name includes one of the kog species abbreviations, it is assumed to belong to that kog π§
π Debugging
--linearβ forces linear scans for CDS's instead of binary searches (if this returns different results, it means something is very wrong) π
π [output file]
if the input filename is of the form <something>.anchors.details, then the [output file] defaults to <something>.filtered β¨
incidentally, if you don't provide a <something>.anchors.details file, it probably won't work anyway... π
πΈ DESCRIPTION πΈ
Filters murasaki alignments based on various statistics. Various statistics can be plotted using --plot. Annotation data is processed from input files using BioPerl π
ROC data can be calculated using KOG data (which is much more reliable than just gene names). To do so you need to specify a KOG data file which can be downloaded from the COG database at:
http://www.ncbi.nlm.nih.gov/COG/
You'll be looking for either the "whog" file for COGs or the "kog" file on the KOG side. KOG locus naming sometimes differs from GBK file to file, and locus names are sometimes missing, so KOG based assessment is currently best effort (capitalization is ignored, locii which don't appear in the annotation are ignored, and domain-specific _x endings are ignored) π
that's the whole page bestie, you ate it π this was perl v5.40.1, dated 2026-08-12 β go filter some anchors, ily π«Άπβ¨
π¦ where this page comes from
- ubuntu stonking: murasaki-common 1.68.6-18 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms