Description Usage Arguments Value Author(s) Examples
Removes a set of sequences
1 | seq_filter(input, rm.seq)
|
input |
|
rm.seq |
Ccharacter vector with sequences to remove |
Filtered ShortReadQ
object
Leandro Roser learoser@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | require(ShortRead)
set.seed(10)
input <- random_length(30, 3:7)
rm.seq = c('TGGTC', 'CGGT', 'GTTCT', 'ATA')
# verify that some sequences match
match_before <- unlist(lapply(rm.seq,
function(x) grep(x, as.character(sread(input)))))
filtered <- seq_filter(input,rm.seq = rm.seq)
# verify that matching sequences were removed
match_after <- unlist(lapply(rm.seq,
function(x) grep(x, as.character(sread(filtered)))))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.