identifyTSSonChromAndStrand: Indentify TSS ids for given chromosome and strand

Description Usage Arguments Value Examples

View source: R/identifyTss.R

Description

Indentify TSS ids for given chromosome and strand

Usage

1
identifyTSSonChromAndStrand(pos, thresh, startIdx)

Arguments

pos

the ordered vector of ID5 ids

thresh

the distance over which TSNs are clustered into TSSs

startIdx

the number used to start labelling the TSSs

Value

a vector of TSS ids

Examples

1
2
3
4
5
6
7
pos <- c(5, 6, 6, 8, 19, 21, 21, 23, 37, 40, 51, 80, 83)
thresh <- 5
groups <- identifyTSSonChromAndStrand(pos, thresh, 1)
plot(1:length(pos), pos, col = groups, pch = 19, xlab = "index", ylab = "position")
pos <- c(1, 20, 21, 22, 23, 50)
groups <- identifyTSSonChromAndStrand(pos, thresh, 1)
plot(1:length(pos), pos, col = groups, pch = 19, xlab = "index", ylab = "position")

Timothy-Barry/coproanalysis documentation built on Feb. 12, 2020, 7:33 a.m.