Learn R Programming

FindMyFriends (version 1.2.2)

seqToOrg: Get gene-to-organism relationship

Description

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.

Usage

seqToOrg(object)
"seqToOrg"(object)

Arguments

object
A pgVirtual subclass

Value

An integer vector with an element for each gene in the pangenome.

Methods (by class)

  • pgInMem: Gene to organism indexing for pgInMem subclasses

See Also

seqToGeneGroup for gene-to-genegroup relationship

Examples

Run this code
testPG <- .loadPgExample(withGroups=TRUE)

# Stored sequentially so the first will belong to organism 1
head(seqToOrg(testPG))

Run the code above in your browser using DataLab