find_reg: find_reg

Description Usage Arguments Value Examples

View source: R/find_reg.r

Description

Given an object from sharpr2 and a position, this function finds the tiled region containing the position.

Usage

1
find_reg(re,pos)

Arguments

re

An object obtained from sharpr2.

pos

A position for which the tiled region is searched.

Value

ind: the index of the tiled region in the object from sharpr2. If no such tile region is found, NA is returned.

Examples

1
2
3
data(hidra_ex)
re <- sharpr2(hidra_ex[1:2000,], l_min = 150, l_max = 600, f_dna = 5, f_rna = 0, sig=FALSE)
find_reg(re,1000000)

sharpr2 documentation built on May 2, 2019, 6:47 p.m.