remove.gaps-methods: Removing gaps from 'Dna' object

Description Usage Arguments Details Value Methods Author(s) Examples

Description

Removing gaps("-") from Dna object

Usage

1
2
## S4 method for signature 'Dna'
remove.gaps(x,entire.col=FALSE)

Arguments

x

an object of class Dna.

entire.col

boolean; entire columns with gaps are removed if this is TRUE. See also ‘Details’.

Details

If entire.col==TRUE, alignment is preserved. If it is FALSE, end gaps are introduced to sequence matrix.

Value

an object of class Dna.

Methods

signature(x = "Dna")

Author(s)

Caner Aktas, caktas.aca@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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

haplotypes documentation built on Feb. 28, 2020, 5:08 p.m.