How it works

count → GC-correct → segment → call

CNATrace treats every bulk assay as a shallow read-density measurement of the genome. Four deterministic steps turn a BAM or contact matrix into an integer copy-number profile.

1
Count

Reads (or Hi-C contacts) are binned into 25–100 kb genomic windows. Reads below the MAPQ threshold are dropped; canonical chromosomes only.

2
GC-correct

LOESS (or modal for CUT&Tag) regression of log-count on bin GC content removes library-preparation bias. The fitted r² is recorded so a weak fit is visible.

3
Segment

Circular binary segmentation (CBS) on the corrected log₂ ratios, t = 3.0, minimum 5 bins per segment. Deterministic: same input, same output.

4
Call

Each segment's mean log₂ ratio is mapped to an integer CN state using fixed thresholds (table below).

Supported inputs

AssayInput formatNotes
WGSBAMReference case. GC correction skipped automatically when bias is absent (r² < 0.3).
Hi-C.cool / .mcool / .hicNative Rust readers; no cooler or juicer needed. Marginal contact counts per bin.
ATAC-seqBAMBackground reads carry copy number; peaks are a minor fraction of bins at 25 kb.
ChIP-seqBAMInput / IgG controls are the cleanest signal: no antibody enrichment at all. This is what the public catalogue is built on.
RADICL-seq (DNA tags)BAMFirst CNA support for this assay.
GPSeqBAMUse ≥ 20 min timepoints.

CN-state model

Segments are called from their mean log₂ ratio relative to the genome-wide median. The same colour code is used everywhere on this site.

log₂ ratioCN stateColour
< −1.100 · homozygous deletion#2166ac
< −0.401 · deletion#92c5de
≤ 0.302 · diploid#f7f7f7
≤ 0.853 · gain#fddbc7
≤ 1.304 · two-copy gain#f4a582
> 1.305+ · amplification#d6604d

The dataset badge

Each processed dataset on this site carries one of three labels, computed from the share of the genome that is altered when counted in 14 Mb blocks. The rule is provisional and is recorded verbatim with every run, so it can be revised without ambiguity:

flat      : under 5% of the genome altered, counted in 14 Mb blocks
CNA-low   : 5% to 20%
CNA-high  : 20% or more
≥ 8 copies: shown beside any status when a segment at eight copies or more spans ≥ 500 kb

The genome is divided into about 225 blocks of 14 Mb on the autosomes, and a block counts as altered when the CN state covering most of its length is not 2. A short noise segment cannot flip a block, so the share is a property of the karyotype rather than of the library: across 3,607 clean cell-line profiles the deviation of a run from its line’s median correlates with noise at 0.06, against 0.26 for the share of segment length altered. The 5% cut sits at the valley of the distribution (about one chromosome arm); the 20% cut is the fraction-of-genome-altered threshold common in the copy-number literature and, of the candidates tested, the one with the best within-line consistency and agreement with DepMap. Read depth normalised to its own median cannot tell diploid from near-tetraploid, so the words claim no ploidy. Flagged profiles show a warning instead of a status.

What we can and cannot claim

CNATrace has been benchmarked against CNVkit on WGS and against HiNT on Hi-C. There is no published accuracy benchmark for ChIP-seq yet. Input and IgG controls have no antibody enrichment, so read density should track copy number by construction, but the public catalogue here is also the experiment that tests that: K562 and HepG2 have extensively published karyotypes and both are processed early.

Where a mature tool already solves a modality (CNVkit for WGS, HiNT for Hi-C), CNATrace can wrap it rather than reinvent it. The novelty is the integration layer, the cross-modality scoring, the downstream-impact analysis, and the assays no tool covered before.

The output

Every run writes four files with one shared stem: cn_profile.tsv (segments), cn_bins.tsv (per-bin GC-corrected log₂ ratios), run_manifest.tsv and run_summary.json. The summary records the tool version, the literal command line and the chromosome lengths the run used, which is what makes a result reproducible and its genome build unambiguous. cnatrace report turns them into a self-contained interactive HTML report that works offline.