seqToOrg {FindMyFriends} | R Documentation

## 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)

    ## 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)

- `pgInMem`: Gene to organism indexing for pgInMem subclasses

### Note

Required for extending the class system of FindMyFriends

### See Also

`seqToGeneGroup` for gene-to-genegroup relationship

### Examples

    testPG <- .loadPgExample(withGroups=TRUE)

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

[Package FindMyFriends version 1.10.0 Index]