seedRegions: A function to retrieve the seed regions from microRNA...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/seedReg.R

Description

The seed region of a microRNA consists of a set of nucleotides at the 5' end of the microRNA, typically bases 2 through 7, although some times 8 is used.

Usage

1
seedRegions(x, start = 2, stop = 7)

Arguments

x

A vector of microRNA sequences.

start

The start locations, can be a vector.

stop

The stop locations, can be a vector.

Details

We use substr to extract these sequences.

Value

A vector of the same length as x with the substrings.

Author(s)

R. Gentleman

See Also

substr

Examples

1
2
3
 data(hsSeqs)
 seedRegions(hsSeqs[1:5])
 seedRegions(hsSeqs[1:3], start=c(2,1,2), stop=c(8,7,9))

Example output

hsa-let-7a hsa-let-7b hsa-let-7c hsa-let-7d hsa-let-7e 
  "GAGGUA"   "GAGGUA"   "GAGGUA"   "GAGGUA"   "GAGGUA" 
hsa-let-7a hsa-let-7b hsa-let-7c 
 "GAGGUAG"  "UGAGGUA" "GAGGUAGU" 

microRNA documentation built on Nov. 8, 2020, 7:50 p.m.