trimNs | R Documentation |
Trim sequences to the first occurrence of a given length of unambiguous bases, e.g. to trim noisy starts and ends from Sanger sequences. Note that sequences shorter than nonNStretch will be completely deleted since they do not contain any stretch of unambiguous bases to pass the threshold.
trimNs(seqs, nonNStretch = c(10, 10), nChars = c("N"))
seqs |
sequences to be trimmed |
nonNStretch |
a one or two element (specifying start, end) to delete until finding a stretch of nonNs greater this length (0 means no trimming) |
nChars |
a vector of characters to count as Ns |
Vector sequences with ends trimmed
trimNs('NNNANNACTNGAGANNNNAAN',3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.