Description Usage Arguments Details Value Methods (by generic) Slots See Also
This virtual class is the superclass of all other pangenome classes in FindMyFriends. It is an empty shell that is mainly used for dispatch and checking that the promises of subclasses are held.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## S4 method for signature 'pgVirtual'
length(x)
## S4 method for signature 'pgVirtual'
show(object)
## S4 method for signature 'pgVirtual,integer,ANY,ANY'
x[i]
## S4 method for signature 'pgVirtual,numeric,ANY,ANY'
x[i]
## S4 method for signature 'pgVirtual,character,ANY,ANY'
x[i]
## S4 method for signature 'pgVirtual,logical,ANY,ANY'
x[i]
## S4 method for signature 'pgVirtual,ANY,ANY'
x[[i]]
as(object, Class='ExpressionSet')
as(object, Class='matrix')
|
x |
A pgVirtual subclass object |
object |
A pgVirtual subclass object |
i |
indices specifying genomes, either integer, numeric, character or logical, following the normal rules for indexing objects in R |
Class |
The class to coerce pgVirtual subclasses to. Outside of the FindMyFriends class tree only 'ExpressionSet' and 'matrix' is implemented. |
Subclasses of pgVirtual must implement the following methods in order for them to plug into FindMyFriends algorithms:
Returns the mapping from genes to organisms as an integer vector with position mapped to gene and integer mapped to organism.
As seqToOrg but mapped to gene group instead of organism. If gene groups are yet to be defined return an empty vector.
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.
Set the name of each gene.
Return an integer vector with the length (in residues) of each gene.
Should only be implemented for signature: c(yourClass, 'missing', 'missing', 'missing', 'integer') Remove the genes at the given indexes and return the object.
Return a character vector of organism names.
Set the name of the organisms.
Return a character vector of gene group names.
Set the name of gene groups.
Return a data.frame with metadata about each organim.
Set a data.frame to be metadata about each organism.
Set the metadata 'name', for the organisms corresponding to 'key' to 'info'
Return a data.frame with metadata about each gene group.
Set a data.frame to be metadata about each gene group.
Set the metadata 'name', for the gene groups corresponding to 'key' to 'info'
Sets the gene grouping of the
pangenome. 'seqToGeneGroup' should correspond to the output of the
seqToGeneGroup method (i.e. an integer vector with each element giving the
group of the corresponding gene). This method must include a
callNextMethod(object)
as the last line.
Merge pg2 into pg1 preserving the indexing in pg1 and appending and modifying the indexing of pg2. The geneGrouping argument is the new grouping of genes and groupInfo the new group info for the groups.
Additionally subclasses can override the following methods for performance gains. Otherwise they will be derived from the above methods.
Return the number of organisms in the object.
As length.
Return the number of genes in the object.
Return the number of gene groups
Returns TRUE if gene groups have been defined
Returns an integer matrix with organisms as columns and gene groups as rows and the corresponding number of genes in each element.
Developers are encourages to consult the implementation of FindMyFriends own classes when trying to implement new ones
Length returns an integer giving the number of organisms
length
: Length of a Pangenome, defined as the number of
organisms it contain
show
: Basic information about the pangenome
[
: Create subsets of pangenomes based on index
[
: Create subsets of pangenomes based on index
[
: Create subsets of pangenomes based on organism name
[
: Create subsets of pangenomes based on logical vector
[[
: Extract sequences from a single organism
.settings
A list containing settings pertaining to the object
Other Pangenome_classes: pgFull-class
,
pgFullLoc-class
,
pgInMem-class
,
pgInMemLoc-class
, pgLM-class
,
pgLMLoc-class
, pgSlim-class
,
pgSlimLoc-class
,
pgVirtualLoc-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.