CNVKIT_BATCH(1)

๐Ÿ“ฆ
version 0.9.13 ยท 3 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐Ÿ’– 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 the segment step. [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. UCSC hg19.fa) ๐Ÿงฌ
  • -t FILENAME, --targets FILENAME โ€” Target intervals (.bed or .list) ๐ŸŽฏ
  • -a FILENAME, --antitargets FILENAME โ€” Antitarget intervals (.bed or .list) ๐Ÿšง
  • --annotate FILENAME โ€” Use gene models from this file to assign names to the target regions. Format: UCSC refFlat.txt or ensFlat.txt file (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 the access command. ๐Ÿ”
  • --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-dir option and will write the file to the given path. Otherwise, reference.cnn will 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