CNVKIT_SCATTER(1)
π CNVKIT_SCATTER(1) β plot probe log2 coverages AND segmentation calls together, periodt
okay so bestie, welcome to cnvkit_scatter(1), aka the part of the CNVkit universe where we make pretty pictures of your copy ratios. It's a User Command, it's iconic, it's giving "I visualize your genome and I do it flawlessly". Let's go. π¦
β¨ NAME β¨
cnvkit_scatter β Plot probe log2 coverages and segmentation calls together. no cap, that's literally the whole job. π
πΈ DESCRIPTION πΈ
Here's the vibe β this is how you call it:
usage: cnvkit.py scatter [-h] [-s FILENAME] [-c RANGE] [-g GENE]
[-l RANGE_LIST] [-w WIDTH] [-o FILENAME]
[-a CHARACTER] [--by-bin] [--segment-color SEGMENT_COLOR]
[--title TITLE] [-t] [--y-max Y_MAX] [--y-min Y_MIN] [--fig-size
WIDTH HEIGHT] [-v FILENAME] [-i SAMPLE_ID] [-n NORMAL_ID] [-m
MIN_VARIANT_DEPTH] [-z [ALT_FREQ]] [filename]
(Yeah the usage line is long. It's a lot of options. She contains multitudes. π )
π§ POSITIONAL ARGUMENTS π§
filenameβ your processed bin-level copy ratios, i.e. the*.cnrfile. That's the output of thefixsub-command, bestie. If you don't have one of those, you're not even at the party yet. π
π OPTIONS π
-h,--helpβ shows this help message and then dips. bye! β¨-s FILENAME,--segment FILENAMEβ your segmentation calls (.cns), which is the output of thesegmentcommand. Feed the scatter the segments, she'll draw them for you.-c RANGE,--chromosome RANGEβ pick a chromosome or a chromosomal range to display, like'chr1'or'chr1:2333000-2444000'. And listen: if you give a range, all the targeted genes inside that range get shown, unless you also pass-g/--gene. iykyk.-g GENE,--gene GENEβ the name of the gene (or genes, comma-separated) you wanna display. one gene or a whole girl group, your call. π«Ά-l RANGE_LIST,--range-list RANGE_LISTβ a file listing all the chromosomal ranges to display, given as BED, interval list, or'chr:start-end'text. This makes focal plots, kinda like-c/--chromosome, for every listed region, and combines them all into one multi-page PDF. β οΈ Heads up: you must also specify the output filename with-o/--output, or it's not happening.-w WIDTH,--width WIDTHβ how much margin to show around the selected gene(s) (-g/--gene) or the small chromosomal region (-c/--chromosome). Default is1000000. that's a lot of zeros and she earned every one of them. π-o FILENAME,--output FILENAMEβ the output PDF file name. yeah. name your PDF. do it.
π¨ Plot Aesthetics π¨
-a CHARACTER,--antitarget-marker CHARACTERβ use this symbol to plot antitargets when you're plotting inside a selected chromosomal region (-g/--geneor-c/--chromosome). Default is the same as targets. matchy matchy, cute.--by-binβ plots the data's x-coordinates by bin indices instead of genomic coordinates. So: every bin gets equal width, no blank regions show up, and the x-axis values mean bin number (within the chromosome) instead of genomic position. it's giving "organized". β¨--segment-color SEGMENT_COLORβ plot those segment lines in this color. It can be any string matplotlib accepts, like'red'or'#CC0000'. go off, pick a slay hue. π--title TITLEβ the plot title. Default is the sample ID, taken from the filename or from-i.-t,--trendβ draws a smoothed local trendline on the scatter plot. aesthetic AND informative, we love a multitasker. π₯--y-max Y_MAXβ the y-axis upper limit.--y-min Y_MINβ the y-axis lower limit.--fig-size WIDTH HEIGHTβ the width and height of the plot, in inches. Default is predefined in the Matplotlib'rcParams'variable (most of the time that's'6.4 4.8'). resize your girl, she won't mind. π
𧬠To Plot SNP B-Allele Frequencies π§¬
-v FILENAME,--vcf FILENAMEβ the VCF file name containing the variants you want to plot for SNV b-allele frequencies.-i SAMPLE_ID,--sample-id SAMPLE_IDβ the name of the sample in the VCF to use for b-allele frequency extraction, and also as the default plot title. she's the main character AND the label. π-n NORMAL_ID,--normal-id NORMAL_IDβ the corresponding normal sample ID in the input VCF. This sample gets used to select only germline SNVs to plot. germline only, bestie, we're filtering.-m MIN_VARIANT_DEPTH,--min-variant-depth MIN_VARIANT_DEPTHβ the minimum read depth for a SNV to be used in the b-allele frequency calculation. Default is20. shallow reads need not apply. π-z [ALT_FREQ],--zygosity-freq [ALT_FREQ]β ignore the VCF's genotypes (theGTfield) and instead infer zygosity from allele frequencies. If you use it without a number, the default is0.25. trust the math, not the field. π
and that's the whole page, bestie!! π this manual page came to you from cnvkit.py scatter version 0.9.10, dated July 2023 β go make some gorgeous plots, you absolute legend. πβ¨π¦
π¦ 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