extracting counts of breakpoints per user-defined scope
Source:R/cn_features.R
extract_breakpoints.RdCounting the number of breakpoints (i.e., transitions between copy number segments) per arm or per window (typically 10Mb).
Arguments
- segs_df
dataframe. Copy number segments for samples
- scope
string. "windows" (default) or "arms", i.e., what to target for counting
- genome_version
string. "hg19" (default) or "hg38"
- window_size
integer. How big of a window to use, if extracting counts per a "windows" scope. Most publications use 10Mb, which is the default (10e6)
- sample_col
string. Name of column with cell/sample names
- chrom_col
string. Name of column with chromosome names
- return
string. "values" (default) or "counts". Values are the observed values for cells, counts are the counts of these values in pre-determined categories.