geneWidth {FindMyFriends} | R Documentation

## Get the sequence length of each gene

### Description

This method extracts the width (i.e. number of residues) of each gene in the pangenome.

### Usage

    geneWidth(object)

    ## S4 method for signature 'pgLM'
    geneWidth(object)

    ## S4 method for signature 'pgFull'
    geneWidth(object)

    ## S4 method for signature 'pgSlim'
    geneWidth(object)

### Arguments

`object` | A pgVirtual subclass

### Value

An integer vector with the length of each sequence

### Methods (by class)

- `pgLM`: Get gene width for pgLM and subclasses

- `pgFull`: Get gene widths for pgFull and subclasses

- `pgSlim`: Throws error for pgSlim

### Note

Required for subclasses of pgVirtual in order to extend the class system of FindMyFriends

### Examples

    testPG <- .loadPgExample()
    head(geneWidth(testPG))

[Package FindMyFriends version 1.17.0 Index]