matchSeeds {microRNA} | R Documentation |
Given an input set of seed regions and a set of sequences all locations of the seed regions (exact matches) within the sequences are found.
matchSeeds(seeds, seqs)
seeds |
The seeds, or short sequences, to match. |
seqs |
The sequences to find matches in. |
We presume that the problem is an exact matching problem and that
all sequences are in the correct orientation for that. If, for
example, you start with seed regions from a microRNA (for seeds
)
and 3'UTR sequences (for seqs
), then you would want to reverse
complement one of the two sequences. And make sure all sequences
are either DNA or RNA.
Names from either seeds
or seqs
are propogated, as much
as is possible.
A list containing one entry for each element of seeds
that had
at least one match in one entry of seqs
. Each element of this list
is a named vector containing the elements of seqs
that the corresponding
seed has an exact match in.
R. Gentleman
data(hsSeqs) data(s3utr) hSeedReg = seedRegions(hsSeqs) comphSeed = revcompRNA(hSeedReg) comph = RNA2DNA(comphSeed) names(comph) = names(hsSeqs) mx = matchSeeds(comph, s3utr)