getNames: Gene Names of Genome

Description Usage Arguments Value Examples

View source: R/genomeObject.R

Description

returns the identifiers of the genes within the genome specified.

Usage

1
getNames(genome, simulated = FALSE)

Arguments

genome

A genome object initialized with initializeGenomeObject.

simulated

A logical value denoting if the gene names to be listed are simulated or not. The default value is FALSE.

Value

gene.names Returns the names of the genes as a vector of strings.

Examples

1
2
3
4
5
6
7
genome_file <- system.file("extdata", "genome.fasta", package = "AnaCoDa")
 
## reading genome
genome <- initializeGenomeObject(file = genome_file)

## return all gene ids for the genome
geneIDs <- getNames(genome, FALSE)

AnaCoDa documentation built on Jan. 8, 2021, 2:37 a.m.