Learn R Programming

rphast (version 1.1)

as.pointer.msa: MSA To Pointer

Description

Take an MSA stored in R and return one stored by reference

Usage

as.pointer.msa(src)

Arguments

src
an MSA object stored by value in R

Value

  • an MSA object stored by reference as a pointer to an object created in C.

See Also

msa for details on MSA storage options.

Examples

Run this code
m <- msa(seqs=c("A--ACGTAT", "AG-AGGTAA", "AGGAGGTAG"),
         names=c("human", "mouse", "rat"))
m
m <- as.pointer.msa(m)
m

Run the code above in your browser using DataLab