as.sq | R Documentation |
Takes an object of arbitrary type and returns an
sq
object as an output.
as.sq(x, ...)
## Default S3 method:
as.sq(x, ...)
## S3 method for class 'character'
as.sq(x, ...)
x |
[ |
... |
further arguments to be passed from or to other methods. |
There are two possible cases: if x
is a character vector, then this
method calls sq
function, else it passes x
to
import_sq
and hopes it works.
An sq
object.
Functions from output module:
as.character.sq()
,
as.matrix.sq()
,
export_sq()
,
write_fasta()
# Constructing an example sequence in the usual way:
sq_1 <- sq("CTGA")
# Using a method for character vector:
sq_2 <- as.sq("CTGA")
# Checking that both objects are identical:
identical(sq_1, sq_2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.