translated: Check the sequence type of the pangenome
Description
This method checks whether the genes in the pangenome are on translated
form (amino acid sequences) or not. A return value of FALSE only indicates
that the storage mode for the genes is not an AAStringSet. While this leaves
room for both RNA-, DNA- and BStringSet, only DNAStringSet makes much sense
and is therefore assumed
Usage
translated(object)
"translated"(object)
Arguments
object
A pgVirtual subclass
Value
A boolean indicating whether genes are translated (TRUE) or not
(FALSE)
Methods (by class)
pgVirtual: Sequence type check for pgVirtual subclasses
testPG <- .loadPgExample()
# Genes are translatedtranslated(testPG)
# ... and therefore returned as AAStringSet instead of DNAStringSetclass(genes(testPG, subset=1))