CNVKIT_SEGMENT(1)
β¨ CNVKIT_SEGMENT β¨
okay so bestie, this is cnvkit_segment from the User Commands section of the manual (section 1, iykyk) β and it's literally the part of the pipeline where we infer copy number segments from the coverage table you already built. it's giving detective work for your genome π
π DESCRIPTION π
the vibe check, in its natural habitat:
usage: cnvkit.py segment [-h] [-o FILENAME] [-d DATAFRAME]
[-m {cbs,flasso,haar,none,hmm,hmm-tumor,hmm-germline}]
[-t THRESHOLD] [--drop-low-coverage] [--drop-outliers FACTOR]
[--rscript-path PATH] [-p [PROCESSES]] [--smooth-cbs] [-v
FILENAME] [-i SAMPLE_ID] [-n NORMAL_ID] [--min-variant-depth
MIN_VARIANT_DEPTH] [-z [ALT_FREQ]] filename
πΈ positional arguments
filenameβ the bin-level log2 ratios, aka the.cnrfile, exactly as produced byfix. that's your main character input, no substitutions π
π¦ options
-h,--helpβ show this help message and dip. classic.-o FILENAME,--output FILENAMEβ output table file name: a CNR-like table of segments,.cns. this is where your beautiful segments go π-d DATAFRAME,--dataframe DATAFRAMEβ file name to save the raw R dataframe emitted by CBS or Fused Lasso. highkey useful for debugging π-m {cbs,flasso,haar,none,hmm,hmm-tumor,hmm-germline},--method {cbs,flasso,haar,none,hmm,hmm-tumor,hmm-germline}β segmentation method (see docs), ornonefor chromosome arm-level averages as segments. default:cbsβ pick your fighter, bestie β-t THRESHOLD,--threshold THRESHOLDβ significance threshold (p-value or FDR, depending on method) to accept breakpoints during segmentation. for HMM methods, this is the smoothing window size. so like, how confident do we need to be before we call it π--drop-low-coverageβ drop very-low-coverage bins before segmentation to avoid false-positive deletions in poor-quality tumor samples. protecting you from lies, fr fr π‘οΈ--drop-outliers FACTORβ drop outlier bins more than this many multiples of the 95th quantile away from the average within a rolling window. set to0for no outlier filtering. default:10β bye bye weirdo bins π--rscript-path PATHβ path to theRscriptexecutable to use for running R code. use this option to specify a non-default R installation. default:Rscript-p [PROCESSES],--processes [PROCESSES]β number of subprocesses to segment in parallel. give0or a negative value to use the maximum number of available CPUs. default: use 1 process β go parallel, go fast, slay β¨--smooth-cbsβ perform an additional smoothing before CBS segmentation, which in some cases may increase the sensitivity. used only for CBS method. extra smoothing, extra sensitive, no cap π
π To additionally segment SNP b-allele frequencies:
-v FILENAME,--vcf FILENAMEβ VCF file name containing variants for segmentation by allele frequencies.-i SAMPLE_ID,--sample-id SAMPLE_IDβ specify the name of the sample in the VCF (-v/--vcf) to use for b-allele frequency extraction and as the default plot title.-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 plot b-allele frequencies.--min-variant-depth MIN_VARIANT_DEPTHβ minimum read depth for a SNV to be displayed in the b-allele frequency plot. default:20-z [ALT_FREQ],--zygosity-freq [ALT_FREQ]β ignore VCF's genotypes (theGTfield) and instead infer zygosity from allele frequencies. default if used without a number:0.25π
ngl bestie, read the descriptions before you yeet flags at your data β--drop-outliers 0and--drop-low-coverageare doing very different jobs π
okay that's the whole page, mwah ππ«Ά this was cnvkit.py segment 0.9.10, dated July 2023, and it's filed under the manual name CNVKIT_SEGMENT. periodt. π
β¨
π¦ 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