grepSeq: Searches sequences for a given pattern.

Description Usage Arguments Value Author(s) Examples

Description

The function returns a vector the length of the original sequence (seqz) that contains a 1 if the position matched the pattern otherwise 0.

Usage

1
grepSeq(seqz, patternz, returnCounts = T)

Arguments

seqz

Character vector representing the to search for a pattern.

patternz

Regular expression to search for

returnCounts

if TRUE print the number of matches.

Value

A vector containing the matches.

Author(s)

Sterling Sawaya sterlingsawaya@gmail.com

Examples

1
2
3
grepSeq('ATCTCTCTTCTCTTC','TC')
# 6 regions found
# [1] 0 1 1 1 1 1 1 0 1 1 1 1 0 1 1

sterlo/kineticWavelets documentation built on May 30, 2019, 4:42 p.m.