recode_peaks: Recode a vector of number of peaks to binary based on...

Description Usage Arguments Value

View source: R/utils.R

Description

Recode a vector of number of peaks to binary based on threshold

Usage

1
recode_peaks(num_peaks, threshold = 1)

Arguments

num_peaks

An integer vector representing numbers of peaks per gene.

threshold

An integer specifying the minimum number of peaks required to code as 1.

Value

An binary vector where an entry is 1 if the corresponding entry of num_peaks is >= threshold and is otherwise 0.


chipenrich documentation built on Nov. 8, 2020, 8:11 p.m.