CNVKIT_BATCH(1)
๐ CNVKIT_BATCH(1) โ cnvkit_batch ๐
okay bestie, listen up ๐ซถ this is the one command that runs the whole CNVkit pipeline on one or more BAM files. like, the entire glow-up, start to finish, no cap โจ
๐ธ NAME ๐ธ
cnvkit_batch โ Run the complete CNVkit pipeline on one or more BAM files. ๐
โจ DESCRIPTION โจ
here's the vibe, fr fr โ the usage looks like this:
usage: cnvkit.py batch [-h] [-m {hybrid,amplicon,wgs}]
[--segment-method {cbs,flasso,haar,none,hmm,hmm-tumor,hmm-germline}]
[-y] [-c] [--drop-low-coverage] [-p [PROCESSES]] [--rscript-path PATH]
[-n [FILES ...]] [-f FILENAME] [-t FILENAME] [-a FILENAME]
[--annotate FILENAME] [--short-names] [--target-avg-size TARGET_AVG_SIZE]
[-g FILENAME] [--antitarget-avg-size ANTITARGET_AVG_SIZE]
[--antitarget-min-size ANTITARGET_MIN_SIZE]
[--output-reference FILENAME] [--cluster] [-r REFERENCE] [-d DIRECTORY]
[--scatter] [--diagram] [bam_files ...]
like, that's a lot of options but we're gonna go through every single one because you deserve to know ๐ค๐
๐ positional arguments ๐
bam_filesโ Mapped sequence reads (.bam). your actual data, the main character ๐
๐ options ๐
-h,--helpโ show this help message and exit. the classic escape hatch ๐ช-m {hybrid,amplicon,wgs},--seq-method {hybrid,amplicon,wgs},--method {hybrid,amplicon,wgs}โ Sequencing assay type: hybridization capture (hybrid), targeted amplicon sequencing (amplicon), or whole genome sequencing (wgs). Determines whether and how to use antitarget bins. [Default:hybrid] ๐งฌ--segment-method {cbs,flasso,haar,none,hmm,hmm-tumor,hmm-germline}โ Method used in thesegmentstep. [Default:cbs] โ๏ธ-y,--male-reference,--haploid-x-referenceโ Use or assume a male reference (i.e. female samples will have +1 log-CNR of chrX; otherwise male samples would have -1 chrX). ok so this one matters, don't skip it ๐งช-c,--count-readsโ Get read depths by counting read midpoints within each bin. (An alternative algorithm). ๐ข--drop-low-coverageโ Drop very-low-coverage bins before segmentation to avoid false-positive deletions in poor-quality tumor samples. genuinely a good idea for messy samples, ngl ๐-p [PROCESSES],--processes [PROCESSES]โ Number of subprocesses used to running each of the BAM files in parallel. Without an argument, use the maximum number of available CPUs. [Default: process each BAM in serial] ๐โโ๏ธ๐จ--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] ๐ง
๐ To construct a new copy number reference ๐
-n [FILES ...],--normal [FILES ...]โ Normal samples (.bam) used to construct the pooled, paired, or flat reference. If this option is used but no filenames are given, a "flat" reference will be built. Otherwise, all filenames following this option will be used. ๐ซถ-f FILENAME,--fasta FILENAMEโ Reference genome, FASTA format (e.g. UCSChg19.fa) ๐งฌ-t FILENAME,--targets FILENAMEโ Target intervals (.bedor.list) ๐ฏ-a FILENAME,--antitargets FILENAMEโ Antitarget intervals (.bedor.list) ๐ง--annotate FILENAMEโ Use gene models from this file to assign names to the target regions. Format: UCSCrefFlat.txtorensFlat.txtfile (preferred), or BED, interval list, GFF, or similar. ๐--short-namesโ Reduce multi-accession bait labels to be short and consistent. โจ--target-avg-size TARGET_AVG_SIZEโ Average size of split target bins (results are approximate). ๐-g FILENAME,--access FILENAMEโ Regions of accessible sequence on chromosomes (.bed), as output by theaccesscommand. ๐--antitarget-avg-size ANTITARGET_AVG_SIZEโ Average size of antitarget bins (results are approximate). ๐--antitarget-min-size ANTITARGET_MIN_SIZEโ Minimum size of antitarget bins (smaller regions are dropped). ๐๏ธ--output-reference FILENAMEโ Output filename/path for the new reference file being created. (If given, ignores the-o/--output-diroption and will write the file to the given path. Otherwise,reference.cnnwill be created in the current directory or specified output directory.) ๐พ--clusterโ Calculate and use cluster-specific summary stats in the reference pool to normalize samples. ๐งฎ
๐ To reuse an existing reference ๐
-r REFERENCE,--reference REFERENCEโ Copy number reference file (.cnn). โป๏ธ
๐ฆ Output options ๐ฆ
-d DIRECTORY,--output-dir DIRECTORYโ Output directory. ๐--scatterโ Create a whole-genome copy ratio profile as a PDF scatter plot. ๐--diagramโ Create an ideogram of copy ratios on chromosomes as a PDF. ๐บ๏ธ
k bestie that's the whole thing โ every flag, every default, every path, all of it. go run your pipeline, you're gonna eat ๐ ๐ฅ
okay that's the page!! this was cnvkit.py batch 0.9.10, dated July 2023 โ go forth and slay your copy number analysis, ily, bye ๐๐โจ
๐ฆ 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