seqToOrg {FindMyFriends} | R Documentation |
This method returns the organism membership for each gene in the pangenome as a vector of indices. Element 1 corresponds to gene 1 and the value is the index of the corresponding organism.
seqToOrg(object) ## S4 method for signature 'pgInMem' seqToOrg(object)
object |
A pgVirtual subclass |
An integer vector with an element for each gene in the pangenome.
pgInMem
: Gene to organism indexing for pgInMem subclasses
Required for extending the class system of FindMyFriends
seqToGeneGroup
for gene-to-genegroup relationship
testPG <- .loadPgExample(withGroups=TRUE) # Stored sequentially so the first will belong to organism 1 head(seqToOrg(testPG))