unique_filter: Remove duplicated sequences in a FASTQ file

Description Usage Arguments Value Author(s) Examples

View source: R/unique_filter.R

Description

This program is a wrapper to occurrenceFilter. It removes the duplicated sequences of a FASTQ file.

Usage

1

Arguments

input

ShortReadQ object

Value

Filtered ShortReadQ object

Author(s)

Leandro Roser learoser@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
require('Biostrings')
require('ShortRead')

set.seed(10)
s <- random_seq(10, 10)
s <- sample(s, 30, replace = TRUE)
q <- random_qual(30, 10)
n <- seq_names(30)

my_read <- ShortReadQ(sread = s, quality = q, id = n)

# check presence of duplicates
isUnique(as.character(sread(my_read)))

# apply the filter
filtered <- unique_filter(my_read)

isUnique(as.character(sread(filtered)))

FastqCleaner documentation built on Nov. 8, 2020, 5:05 p.m.