Usage
phyDat(data, type = "DNA", levels = NULL, return.index=TRUE, ...)
read.phyDat(file, format="phylip", type="DNA", ...)
write.phyDat(x, file, format="phylip",...)
## S3 method for class 'DNAbin':
as.phyDat(x, ...)
## S3 method for class 'phyDat':
as.character(x, allLevels = TRUE, ...)
## S3 method for class 'phyDat':
as.data.frame(x, ...)
## S3 method for class 'phyDat':
as.DNAbin(x, ...)
## S3 method for class 'phyDat':
subset(x, subset, select, site.pattern = TRUE, ...)
allSitePattern(n, levels=c("a","c","g","t"), names=NULL)
acgt2ry(obj)
baseFreq(obj, freq=FALSE, drop.unused.levels=FALSE)
Arguments
data
An object containing sequences.
x
An object containing sequences.
type
Type of sequences ("DNA", "AA", "CODON" or "USER").
return.index
If TRUE returns a index of the site patterns.
format
File format of the sequence alignment (see details).
select
a subset of characters.
site.pattern
select site pattern or sites.
allLevels
return original data.
obj
as object of class phyDat
freq
logical, if 'TRUE', frequencies or counts are returned otherwise proportions
drop.unused.levels
logical, drop unused levels
...
further arguments passed to or from other methods.