Description Usage Arguments Value Author(s) Examples
View source: R/unique_filter.R
This program is a wrapper to
occurrenceFilter
.
It removes the duplicated sequences of a FASTQ file.
1 | unique_filter(input)
|
input |
|
Filtered ShortReadQ
object
Leandro Roser learoser@gmail.com
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)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.