Learn R Programming

FindMyFriends (version 1.2.2)

orgNames: Get and set the names of organisms in the pangenome

Description

These methods lets you manipulate the naming of organisms in the pangenome. By default organisms are named after the fasta file they are defined by, but this can be changed at will.

Usage

orgNames(object)
orgNames(object) <- value
"orgNames"(object)
"orgNames"(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 organism names for pgInMem subclasses
  • pgInMem: Set organism names for pgInMem subclasses

Examples

Run this code
testPG <- .loadPgExample()
orgNames(testPG)

orgNames(testPG)[3] <- 'Organism 3'

Run the code above in your browser using DataLab