Accessors for slots in multidna and multiphyDat objects.
getNumInd(x, ...)# S4 method for multidna
getNumInd(x, ...)
# S4 method for multiphyDat
getNumInd(x, ...)
getNumLoci(x, ...)
# S4 method for multidna
getNumLoci(x, ...)
# S4 method for multiphyDat
getNumLoci(x, ...)
getLocusNames(x, ...)
# S4 method for multidna
getLocusNames(x, ...)
# S4 method for multiphyDat
getLocusNames(x, ...)
setLocusNames(x) <- value
# S4 method for multidna
setLocusNames(x) <- value
# S4 method for multiphyDat
setLocusNames(x) <- value
getNumSequences(x, ...)
# S4 method for multidna
getNumSequences(x, exclude.gap.only = TRUE,
loci = NULL, ...)
# S4 method for multiphyDat
getNumSequences(x, exclude.gap.only = TRUE,
loci = NULL, ...)
getSequenceNames(x, ...)
# S4 method for multidna
getSequenceNames(x, exclude.gap.only = TRUE,
loci = NULL, ...)
# S4 method for multiphyDat
getSequenceNames(x, exclude.gap.only = TRUE,
loci = NULL, ...)
getSequences(x, ...)
# S4 method for multidna
getSequences(x, loci = NULL, ids = NULL,
simplify = TRUE, exclude.gap.only = TRUE, ...)
# S4 method for multiphyDat
getSequences(x, loci = NULL, ids = NULL,
simplify = TRUE, exclude.gap.only = TRUE, ...)
returns the information stored in a slot, see details.
a multidna or multiphyDat object.
further arguments passed on to other functions.
a replacement value for the slot.
logical. Remove or ignore sequences containing all gaps?
a character, numeric, or logical vector identifying which loci to return.
a character, numeric, or logical vector identifying which sequences to return within a locus.
logical. If FALSE
, always return a list of
DNAbin sequences. If TRUE
and only one locus has been requested,
return a single DNAbin object.
Returns the number of individuals.
Returns the number of loci.
Returns the names of each locus.
Sets the names of each locus.
Returns the number of sequences in each locus.
Returns the names of individual sequences at each locus.
Returns sequences of specified loci and individuals.