remove.gaps-methods | R Documentation |
Dna
objectRemoving gaps("-") from Dna
object
## S4 method for signature 'Dna'
remove.gaps(x,entire.col=FALSE)
x |
an object of class |
entire.col |
boolean; entire columns with gaps are removed if this is TRUE. See also ‘Details’. |
If entire.col==TRUE, alignment is preserved. If it is FALSE, end gaps are introduced to sequence matrix.
an object of class Dna
.
signature(x = "Dna")
Caner Aktas, caktas.aca@gmail.com
data("dna.obj")
## original data
x<-dna.obj
range(x)
x@seqlengths
## Only gaps '-' are removed from sequences.
x<-remove.gaps(dna.obj, entire.col=FALSE)
range(x)
x@seqlengths
## entire columns with gaps are removed.
x<-remove.gaps(dna.obj, entire.col=TRUE)
range(x)
x@seqlengths
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.