| disambiguate | R Documentation |
Make a DNA/RNA sequence unambiguous by stripping out all symbols that do
not uniquely specify nucleic acids. In other words, remove all symbols
other than a's, c's, g's, t's or u's from the
sequence.
## Default S3 method:
disambiguate(x, case=c("lower", "upper", "as is"), ...)
## S3 method for class 'SeqFastadna'
disambiguate(x, ...)
## S3 method for class 'list'
disambiguate(x, ...)
x |
A character vector, an object that can be coersed to a character vector or a
list of objects that canbe be converted to character vectors. this argument
can also be a |
case |
Determines how symbols in |
... |
Arguments to be passed from or to other functions. |
If x is a SeqFastadna object or a character vector in which each element
is a single nucleobase, then it represents a single sequence. It will be made
unambiguous and returned in the same form.
On the other hand, if x is a vector of character strings, each of which
represents a nucleic sequence, then the result will bea a character vector in
which each element contains the unambiguous sequence corresponding to the
element in x as a character string.
According to the input x, a character vector, SeqFastadna object or list
containing the completely unambiguous sequence(s) in x.
Andrew Hart and Servet Martínez
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.