This function sets the annotation file for a GeneDiscoveR object. The annotation file contains information about the genes, such as their names, IDs, and functional annotations. The annotation file should be in tab-separated values (TSV) format, with the first column containing the gene IDs and the subsequent columns containing the annotations in one column or multiple columns.

set_annotation_file(GeneDiscoveRobject = NULL, annotationFile = NULL)

Arguments

GeneDiscoveRobject

A GeneDiscoveR object to which the annotation file will be set.

annotationFile

The path to the annotation file.

Value

The updated GeneDiscoveR object with the annotation file set.

Examples

# Create a GeneDiscoveR object
N0sDir <- system.file("extdata", "N0-1dot3-6", package = "GeneDiscoveR")
overallsDir <- system.file("extdata", "Comparatives-1dot3-6", package = "GeneDiscoveR")
dataFile <- system.file("extdata", "annotatedCDSs.tsv", package = "GeneDiscoveR")
minInflation <- 1.3
maxInflation <- 6
stepInflation <- 0.1

GeneDiscoveRobject <- GeneDiscoveR(overallsDir = overallsDir, N0sDir = N0sDir, dataFile = dataFile, minInflation = minInflation, maxInflation = maxInflation, stepInflation = stepInflation)

# Set the annotation file
annotationFile <- system.file("extdata", "MpTak_v6.1_func_annotation_1line.tsv", package = "GeneDiscoveR")
GeneDiscoveRobject <- set_annotation_file(GeneDiscoveRobject, annotationFile = annotationFile)