Learn R Programming

FindMyFriends (version 1.2.2)

groupNames: Get and set the names of gene groups in the pangenome

Description

These methods lets you manipulate the naming of gene groups in the pangenome. By default organisms are numbered consecutively but this can be changed at will. New gene groups will be numbered though despite what naming scheme has been introduced before.

Usage

groupNames(object)
groupNames(object) <- value
"groupNames"(object)
"groupNames"(object) <- value

Arguments

object
A pgVirtual subclass
value
A vector with new names - will be coerced to characters

Value

In case of the getter a character vector with names

Methods (by class)

  • pgInMem: Get gene group names for pgInMem subclasses
  • pgInMem: Set gene group names for pgInMem subclasses

Examples

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

groupNames(testPG)[20] <- 'Gene group 20'

Run the code above in your browser using DataLab