extractOpenClosed: Get the open and closed compartment calls based on sign of...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Get the open and closed compartment calls based on sign of singular values

Usage

1
extractOpenClosed(gr, cutoff = 0, assay = c("array", "atac", "bisulfite"))

Arguments

gr

Input GRanges with associated mcols that represent singular values

cutoff

Threshold to define open and closed states

assay

The type of assay we are working with

Value

A vector of binary/categorical compartment states

Examples

1
2
3
dummy <- matrix(rnorm(10000), ncol=25)
set.seed(1000)
sing_vec <- getSVD(dummy, k = 1, sing.vec = "left")

JordanVeldboom/compartmap documentation built on July 3, 2020, 6:32 p.m.