calcOverlap: Calculate overlap between feature bin and peaks

View source: R/supp_functions.R

calcOverlapR Documentation

Calculate overlap between feature bin and peaks

Description

This function calculates the length of each Genomic feature not occupied by peaks, and checks if the percentage of peaks is above a certain threshold. The lengths and boolean values are appended as columns to the provided dataframe

Usage

calcOverlap(df, tiles, peaks, genome, peak_occ_cutoff)

Arguments

df

dataframe to contain the lengths without peaks

tiles

GRanges tiles object

genome

genetic sequence information

peak_off_cutoff

Maximum percentage of peaks in a given feature

Value

dataframe containing the lengths of features without peaks and column of features above the peak cutoff


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