get_sq_lengths | R Documentation |
Returns number of elements in each sequence in given
sq
object.
get_sq_lengths(x)
x |
[ |
Due to storage implementation, using lengths
method
returns length of stored raw vectors instead of real sequence lengths. This
function accesses original_length
attribute of each sequence, which
attribute stores information about how many elements are there in given
sequence.
A numeric
vector, where each element gives length of
corresponding sequence from sq
object.
Functions from utility module:
==.sq()
,
is.sq()
,
sqconcatenate
,
sqextract
# Creating objects to work on:
sq_ami <- sq(c("MIAANYTWIL","TIAALGNIIYRAIE", "NYERTGHLI", "MAYXXXIALN"),
alphabet = "ami_ext")
sq_dna <- sq(c("ATGCAGGA", "GACCGAACGAN", "TGACGAGCTTA", "ACTNNAGCN"),
alphabet = "dna_ext")
# Counting number of elements in sq object:
get_sq_lengths(sq_dna)
get_sq_lengths(sq_ami)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.