seqlength.align | R Documentation |
Sets lengths of sequences of multiple domains as the shortest lengths across domains.
seqlength.align(seq.list)
seq.list |
list of sequence objects (of class |
Sequences in the sequence objects are assumed to be ordered conformably. The length of the i
-th sequence in each domain is set as the length of the shortest i
-th sequence of the domains. The reduction of length is done by filling end positions with voids.
Gilbert Ritschard
seqlength
## Using the ex1 data set with sequences of different length
data(ex1)
s1 <- seqdef(ex1[,1:13])
seqlength(s1)
## sequence object s2 with a shorter 1st sequence
s2 <- s1
s2[1,8:13] <- attr(s2,"void")
seqlength(s2)
## aligning sequence lengths
seqlength.align(list(s1,s2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.