hapreord-methods | R Documentation |
Reorders haplotypes according to the ordering factor.
## S4 method for signature 'Haplotype'
hapreord(x,order=c(1:x@nhap))
x |
an object of class |
order |
a vector giving the order of haplotypes, with one element per haplotype. |
returns an object of class Haplotype
.
signature(x = "Haplotype")
Reorders haplotypes.
Caner Aktas, caktas.aca@gmail.com
haplotype
data("dna.obj")
x<-dna.obj[1:6,,as.matrix=FALSE]
# inferring haplotypes from DNA sequences
h<-haplotype(x)
## Reordering haplotypes.
# length of the argument 'order' is equal to the number of haplotypes
rh<-hapreord(h,order=c(4,3,1,2))
rh
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.