seqToOrg: Get gene-to-organism relationship

Description Usage Arguments Value Methods (by class) Note See Also Examples

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

1
2
3
4
seqToOrg(object)

## S4 method for signature 'pgInMem'
seqToOrg(object)

Arguments

object

A pgVirtual subclass

Value

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

Methods (by class)

Note

Required for extending the class system of FindMyFriends

See Also

seqToGeneGroup for gene-to-genegroup relationship

Examples

1
2
3
4
testPG <- .loadPgExample(withGroups=TRUE)

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

FindMyFriends documentation built on Nov. 8, 2020, 6:46 p.m.