CNVKIT_SEGMENT(1)

πŸ“¦
version 0.9.13 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 .cnr file, exactly as produced by fix. 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), or none for 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 to 0 for no outlier filtering. default: 10 β€” bye bye weirdo bins πŸ™ˆ
  • --rscript-path PATH β€” path to the Rscript executable 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. give 0 or 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 (the GT field) 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 0 and --drop-low-coverage are 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