CNVKIT_SEGMETRICS(1)
π CNVKIT_SEGMETRICS(1) π
okay bestie, sit down, hydrate, and let me tell you about cnvkit_segmetrics β the section of the cnvkit.py manual (User Commands, no less π) that computes segment-level metrics from bin-level log2 ratios. yes. we're doing math. slay.
β¨ NAME β¨
cnvkit_segmetrics β compute segment-level metrics from bin-level log2 ratios. it's giving "let me judge your segments, statistically." π
πΈ DESCRIPTION πΈ
the way this command wants to be called:
usage: cnvkit.py segmetrics [-h] -s SEGMENTS [--drop-low-coverage]
[-o FILENAME] [--mean] [--median] [--mode]
[--t-test] [--stdev] [--sem] [--mad] [--mse] [--iqr] [--bivar]
[--ci] [--pi] [-a ALPHA] [-b BOOTSTRAP] [--smooth-bootstrap]
cnarray
yes, that's a lot of flags. no, you don't need all of them. but we're covering all of them anyway because every single detail matters and i'm not about to gatekeep. π
π¦ positional arguments: π¦
cnarrayβ the bin-level copy ratio data file (*.cnn,*.cnr). this is your input, your little data baby, your main character. feed it in.
π options: π
-h,--helpβ shows this help message and exits. the classic. the icon. press it when you're lost (you won't be, because i got you π«Ά).-s SEGMENTS,--segments SEGMENTSβ the segmentation data file (*.cns, which is what thesegmentcommand spits out). yes this one is required, no you cannot skip it.--drop-low-coverageβ yeets the very-low-coverage bins out of the picture before the calculations happen, so poor-quality tumor samples don't get a sad negative bias dragging their numbers down. protecting the vibe, fr fr. π-o FILENAME,--output FILENAMEβ the name of the output table file. name it something cute.
β Statistics available: β
like, the whole menu of stats you can ask for. pick your fighter(s):
--meanβ mean log2 ratio, unweighted. the plain one. the reliable bestie.--medianβ median. the middle child (affectionate). π--modeβ mode, a.k.a. the peak density of the bin log2 ratios. the most popular kid in school.--t-testβ one-sample t-test of the bin log2 ratios versus0.0. is it different from zero? we're asking. dramatically. π--stdevβ standard deviation. how spread out is everybody.--semβ standard error of the mean. not the same as stdev, don't @ me.--madβ median absolute deviation, standardized. yes, standardized. it's got range. β¨--mseβ mean squared error.--iqrβ inter-quartile range. the middle 50%'s whole deal.--bivarβ Tukey's biweight midvariance. say it with your chest. π£οΈ--ciβ confidence interval, computed by bootstrap. team effort energy.--piβ prediction interval.-a ALPHA,--alpha ALPHAβ the level used to estimate the confidence and prediction intervals; use it alongside--ciand--pi. default is0.05. β-b BOOTSTRAP,--bootstrap BOOTSTRAPβ how many bootstrap iterations to run when estimating the confidence interval; use it alongside--ci. default is100. π₯--smooth-bootstrapβ applies Gaussian noise to the bootstrap samples (a.k.a. smoothed bootstrap) to estimate the confidence interval; use it alongside--ci. sprinkle a lil chaos on it, as a treat. π
heads up bestie:-a/--alphais a--ci/--pithing,-b/--bootstrapis a--cithing, and--smooth-bootstrapis also a--cithing. pair them up correctly or they just sit there doing nothing. periodt. π
and that's the whole page, no notes, nothing skipped, nothing invented. every flag, every default, every file extension, exactly as written. i would never do you dirty like that. π§
this has been cnvkit.py segmetrics, version 0.9.10, from July 2023, straight out of User Commands. mwah. go compute some segment metrics, you gorgeous genius. πβ¨π
π¦ where this page comes from
- debian trixie: cnvkit 0.9.12-1 Β· Apache-2.0
- ubuntu noble: cnvkit 0.9.10-1 Β· Apache-2.0
- ubuntu questing: cnvkit 0.9.12-1
- ubuntu resolute: cnvkit 0.9.12-1build1 Β· Apache-2.0
- ubuntu stonking: cnvkit 0.9.13-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms