CNVKIT_CALL(1)
π CNVKIT_CALL(1) π
okay bestie, gather round, because this is cnvkit_call β the part of the CNVkit fam that actually calls copy number variants from segmented log2 ratios. it's giving "the glow-up at the end of the pipeline" β¨
β¨ NAME β¨
cnvkit_call β call copy number variants from segmented log2 ratios. no cap, that's the whole job. π
πΈ DESCRIPTION πΈ
so the usage is literally this, and yes it's long, she's a big girl:
cnvkit.py call [-h] [--center [{mean,median,mode,biweight}]]
[--center-at CENTER_AT] [--filter {ampdel,cn,ci,sem}]
[-m {threshold,clonal,none}] [-t THRESHOLDS] [--ploidy PLOIDY]
[--purity PURITY] [--drop-low-coverage] [-x
{m,y,male,Male,f,x,female,Female}] [-y] [-o FILENAME] [-v
FILENAME] [-i SAMPLE_ID] [-n NORMAL_ID] [--min-variant-depth
MIN_VARIANT_DEPTH] [-z [ALT_FREQ]] filename
π«Ά positional arguments
filenameβ the copy ratios file. she takes.cnror.cns. that's the input, that's the vibe. π
π¦ options
-h,--helpβ show this help message and exit. the classic. the icon. the "help me help you". π--center [{mean,median,mode,biweight}]β re-centers your log2 ratio values using this estimator of the center / average value. and if you pass it with no argument? it uses'median'. she has a default and she's confident about it. π--center-at CENTER_ATβ subtracts a constant number from all the log2 ratios. this is for "manual" re-centering, i.e. when the--centeroption is giving you unsatisfactory results. it's the "fine, I'll do it myself" option. π--filter {ampdel,cn,ci,sem}β merges segments flagged by the specified filter(s) with the adjacent segment(s). cleaning up the friend group, basically. π§-m {threshold,clonal,none},--method {threshold,clonal,none}β the calling method. [Default:threshold] β-t THRESHOLDS,--thresholds THRESHOLDSβ hard thresholds for calling each integer copy number, separated by commas. use the=sign on the command line, e.g.:-t=-1,0,1. [Default:-1.1,-0.25,0.2,0.7] β note that=bestie, it's not optional vibes, it's required. π--ploidy PLOIDYβ ploidy of the sample cells. [Default:2] π--purity PURITYβ estimated tumor cell fraction, a.k.a. purity or cellularity. two names, one option, she contains multitudes. π--drop-low-coverageβ drops very-low-coverage bins before segmentation, so you don't get false-positive deletions in poor-quality tumor samples. protective queen behavior. π«Ά-x {m,y,male,Male,f,x,female,Female},--sample-sex {m,y,male,Male,f,x,female,Female},-g {m,y,male,Male,f,x,female,Female},--gender {m,y,male,Male,f,x,female,Female}β specify the sample's chromosomal sex as male or female. (otherwise it's guessed from X and Y coverage, which is honestly kind of iconic of it.) β¨-y,--male-reference,--haploid-x-referenceβ was a male reference used? if so, expect half ploidy on chrX and chrY; otherwise, only chrY has half ploidy. and in CNVkit specifically: if a male reference was used, the "neutral" copy number (ploidy) of chrX is1; chrY is haploid for either reference sex. yes this is confusing, yes it's real, yes you need to know it. π₯-o FILENAME,--output FILENAMEβ output table file name (a CNR-like table of segments,.cns). π
π to additionally process SNP b-allele frequencies for allelic copy number:
like, if you wanna go deeper and do the allelic thing too, these are your girls:
-v FILENAME,--vcf FILENAMEβ VCF file name containing variants for calculation of b-allele frequencies. πΈ-i SAMPLE_ID,--sample-id SAMPLE_IDβ name of the sample in the VCF (-v/--vcf) to use for b-allele frequency extraction. π-n NORMAL_ID,--normal-id NORMAL_IDβ corresponding normal sample ID in the input VCF (-v/--vcf). this sample is used to select only germline SNVs to calculate b-allele frequencies. she's the control, respect her. π¦--min-variant-depth MIN_VARIANT_DEPTHβ minimum read depth for a SNV to be used in the b-allele frequency calculation. [Default:20] β-z [ALT_FREQ],--zygosity-freq [ALT_FREQ]β ignore the VCF's genotypes (theGTfield) and instead infer zygosity from allele frequencies. [Default if used without a number:0.25] β so you can just yeet-zin there and she'll handle it. π
β οΈ reminder bestie: copy the option names and values exactly as written. these flags are picky and the=in-tis not a suggestion, it's the law. π
π sign-off π
this was cnvkit.py call 0.9.10, from July 2023, and the manual page you're reading is CNVKIT_CALL(1). that's the whole thing, you ate, go call some copy numbers. πβ¨π
π¦ 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