CNVKIT_AUTOBIN(1)
π CNVKIT_AUTOBIN π β the cnvkit_autobin page, section 1 of the User Commands manual
okay bestie, buckle up, because this is the page for cnvkit_autobin and it's lowkey the vibe-checker of your CNV pipeline π§β¨
β¨ NAME β¨
cnvkit_autobin β quickly calculate reasonable bin sizes from BAM read counts.
like. that's it. that's the whole job. it looks at your reads and goes "hmm, what bin size would actually make sense here" and then tells you. iconic behaviour honestly π
πΈ DESCRIPTION πΈ
so the way you actually call this is:
usage: cnvkit.py autobin [-h] [-f FILENAME] [-m {hybrid,amplicon,wgs}]
[-g FILENAME] [-t TARGETS] [-b BP_PER_BIN]
[--target-max-size BASES] [--target-min-size BASES]
[--antitarget-max-size BASES] [--antitarget-min-size BASES]
[--annotate FILENAME] [--short-names]
[--target-output-bed FILENAME]
[--antitarget-output-bed FILENAME] bams [bams ...]
no cap, that's a lot of brackets. but don't panic, we're gonna go through every single one of them together π«Ά
π positional arguments π
bamsβ the sample BAM file(s) you wanna test for target coverage. yes, plural, you can throw more than one at it. it saidbams [bams ...]and it meant it. π
π¦ options π¦
-h,--helpβ prints this help message and then dips. exit stage left. πͺ-f FILENAME,--fasta FILENAMEβ your reference genome, in FASTA format (think like UCSChg19.fa). the blueprint, the source material, the moment. π§¬-m {hybrid,amplicon,wgs},--method {hybrid,amplicon,wgs}β the sequencing protocol, and bestie, you have to pick one:hybrid= hybridization captureamplicon= targeted amplicon sequencingwgs= whole genome sequencing
this is what decides whether and how to use antitarget bins. so it's not a cosmetic choice, it's a whole personality. [Default: hybrid]
-g FILENAME,--access FILENAMEβ sequencing-accessible genomic regions, or the exons you wanna use as possible targets (like the output ofrefFlat2bed.py, for example). π«-t TARGETS,--targets TARGETSβ the potentially targeted genomic regions, e.g. all the possible exons for the reference genome. format: BED, interval list, etc. so many options, so much freedom. π-b BP_PER_BIN,--bp-per-bin BP_PER_BINβ the desired average number of sequencing read bases mapped to each bin. [Default:100000.0] β note the.0, it's giving float energy π₯--target-max-size BASESβ maximum size of target bins. [Default:20000]--target-min-size BASESβ minimum size of target bins. [Default:20]--antitarget-max-size BASESβ maximum size of antitarget bins. [Default:500000]--antitarget-min-size BASESβ minimum size of antitarget bins. [Default:500]--annotate FILENAMEβ use gene models from this file to assign names to the target regions. format: UCSCrefFlat.txtorensFlat.txtfile (preferred, the it-girl of formats), or BED, interval list, GFF, or similar. it's flexible like that π--short-namesβ reduces multi-accession bait labels so they're short and consistent. the glow-up your labels deserve β¨--target-output-bed FILENAMEβ the filename for target BED output. if you don't specify one, it gets constructed from the input file basename. it'll figure itself out, she's resourceful π--antitarget-output-bed FILENAMEβ the filename for antitarget BED output. same deal: if you don't specify it, it's constructed from the input file basename. π¦
π pro tip from your girl: the defaults are there for a reason, so if you're not sure about the min/max sizes or BP_PER_BIN, just let them cook. no shame in trusting the default. π«Ά
and that's the whole page, bestie!! you absolutely ate this one π
this was cnvkit.py autobin version 0.9.10, from July 2023, and it lives in the User Commands section of the manual β mwah, stan, 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