Description Usage Arguments Details Value Author(s) See Also Examples
If linkers are attached during sample preparation, it may be useful to remove the linkers' sequences after sequencing. This method finds and removes linker sequences that are located at the start of the given reads.
1 2 | ## S4 method for signature 'XStringSet,DNAString,logical,numeric,numeric'
removeLinker(reads, linker, removeReadsWithoutLinker, minOverlap, penalty)
|
reads |
A |
linker |
A |
removeReadsWithoutLinker |
Whether reads without linkers should be removed. Default is FALSE |
minOverlap |
The minimal score that must be achived when aligning the linker. Default is length(linker)/2 |
penalty |
The penalty for substitutions or indels. Default is 2 |
The best alignment of the linker within the start (length of linker + 5) of each given sequence is computed. The followong scoring schema is used: Each matching bases scores +1. Each substitution or indel scores the given penalty argument (default: penalty=2). There are no penalties for gaps and the end of the linker (overlap). An alignment is considered as match, if the scores is larger of equal to minOverlap (default: minOverlap=round(length(linker)/2)). In cases of a successful match, the subsequence from position 1 until the end of the linker's alignment is removed.
removeLinker
returns a DNAStringSet
with trimmed reads.
Hans-Ulrich Klein
sequenceCaptureLinkers
, DNAStringSet
,
pairwiseAlignment
1 2 3 4 5 6 | linker = sequenceCaptureLinkers()[[1]]
reads = DNAStringSet(c(
"CTCGAGAATTCTGGATCCTCAAA",
"GAATTCTGGATCCTCAAA",
"CTCGAGAAAAAAAAATCCTCAAA"))
removeLinker(reads, linker)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.