seq_filter {FastqCleaner} | R Documentation

## Remove a set of sequences

### Description

Removes a set of sequences

### Usage

    seq_filter(input, rm.seq)

### Arguments

`input` | `ShortReadQ` object
`rm.seq` | Ccharacter vector with sequences to remove

### Value

Filtered `ShortReadQ` object

### Author(s)

Leandro Roser learoser@gmail.com

### Examples

    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)))))

[Package FastqCleaner version 1.4.0 Index]