FindMyFriends standard base class for pangenomic data
This virtual class is the superclass of the standard pangenome classes in FindMyFriends. It defines storage for everything except gene information, which is delegated to its subclasses.
As gene storage is not defined in this class the following methods must be defined by subclasses:
- genes(object, split, subset)
Return the underlying sequences. If split is missing return an XStringSet, otherwise return an XStringSetList. split can be either 'group', 'organism' or 'paralogue' and should group the sequences accordingly. Subset should behave as if it was added as '' to the results but allow you to avoid reading everything into memory if not needed.
Return a character vector with the name of each gene.
- geneNames<-(object, value)
Set the name of each gene.
Return an integer vector with the length (in residues) of each gene.
- removeGene(object, name, organism, group, ind)
Should only be implemented for signature: c(yourClass, 'missing', 'missing', 'missing', 'integer') Remove the genes at the given indexes and return the object.
An integer vector that reference all genes to a specific organism.
An integer vector that references all genes to a specific gene group.
A data.frame storing metadata information about gene groups.
A data.frame storing metadata information about organisms