scalefun: Scale the upstream/downstream regions of a coverage matrix to...

View source: R/PlotMetagene.R

scalefunR Documentation

Scale the upstream/downstream regions of a coverage matrix to a certain number of columns

Description

Scale the upstream/downstream regions of a coverage matrix to a certain number of columns

Usage

scalefun(df, cols = c(0, 100, 300, 700), b = 100, a = 100)

Arguments

df

data.frame object of a single coverage matrix

cols

numeric vector of length 4 indicating landmark columns (start=0, end of upstream region, end of main region, ncol(df))

b

numeric indicating the number of columns the upstream region (cols[1]-cols[2]) should be scaled down to. Default=100.

a

numeric indicating the number of columns the downstream region (cols[3]-cols[4]) should be scaled down to. Default=100.

Value

Data.frame of a coverage matrix with upstream and downstream regions scaled down (i.e. reduced columns) for clearer plotting


kevincjnixon/ChIPATAC documentation built on May 25, 2023, 9:33 p.m.