removeReadsWithNs: Remove sequences with ambiguous nucleotides.

Description Usage Arguments Value See Also Examples

View source: R/hiReadsProcessor.R

Description

Given a DNAStringSet object, the function removes any reads that has either repeating or total Ns which is greater than to maxNs threshold

Usage

1
removeReadsWithNs(dnaSet, maxNs = 5, consecutive = TRUE)

Arguments

dnaSet

DNAStringSet object to evaluate.

maxNs

integer value denoting the threshold of maximum allowed Ns. Default is 5.

consecutive

boolean flag denoting whether Ns to filter is consecutive or total . Default is TRUE.

Value

DNAStringSet object.

See Also

dereplicateReads, replicateReads, findBarcodes, splitByBarcode

Examples

1
2
3
4
5
6
 
dnaSet <- c("CCTGAATCCTNNCAATGTCATCATC", "ATCCTGGCNATGTCATCATCAATGG", 
"ATCAGTTGTCAACGGCTAATACGCG", "ATCAATGGCGATTGCCGCGTCTGCA", 
"CCGNNTCTGCAATGTGNGGNCCTAN", "GAAGNNNNNNGTTGAAGTTCACAC") 
removeReadsWithNs(dnaSet)
removeReadsWithNs(dnaSet, maxNs = 4, consecutive = FALSE)

malnirav/hiReadsProcessor documentation built on July 29, 2021, 6:33 a.m.