getGCBackground: Select GC matched background

View source: R/supp_functions.R

getGCBackgroundR Documentation

Select GC matched background

Description

This function matches each feature to a specified number of its closest GC matched neighbors. A certain number of these neighbors are then sampled to create a GC matched background

Usage

getGCBackground(coverage, df, GC_radius, GC_sample_size)

Arguments

coverage

coverage matrix (as produced by calcCoverage())

df

dataframe containing the GC content of genomic features

GC_radius

half the number of neighbors that will be matched to each feature

GC_sample_size

number of features that will be sampled to produce the background

Value

A matrix containing the names of GC matched features


qiuxintao101/scCNV documentation built on July 31, 2022, 2:10 p.m.