Splits the coverage data by chromosome, bins into 300bp windows, and computes smoothed copy number values using a larger window size.
Arguments
- cov
Data frame or tibble. Must include columns CONTIG, START, END, and CNF.
- cov_binsize
Numeric. Bin size (in bases) for smoothing (e.g., 10000 for 10kb).
Value
A data frame with columns: CONTIG, bin_start, bin_norm_id, and smoothed CNF values.
Examples
# CovBin(cov, cov_binsize = 10000)