% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-accessors.R
\name{read_addition_data}
\alias{read_addition_data}
\title{Read Additional Data}
\usage{
read_addition_data(file_path)
}
\arguments{
\item{file_path}{Character string specifying the file path. Supported formats:
\itemize{
  \item \code{.csv} / \code{.csv.gz} - Comma-separated values (optionally
    gzip compressed)
  \item \code{.rds} / \code{.rds.gz} - R serialized data (optionally gzip
    compressed)
}}
}
\value{
A data frame with validated ID column. Rows are deduplicated by ID,
  keeping the first occurrence of each unique ID.
}
\description{
Read and validate additional data from CSV or RDS file. Supports
  gzip-compressed formats (.gz). The data frame must contain an 'ID' column
  as the primary key for joining with pathway results.
}
\examples{
# Build a small CSV in a temp directory and read it back.
tmp_csv <- file.path(tempdir(), "pathway_annotations_demo.csv")
utils::write.csv(
  data.frame(
    ID = c("HALLMARK_HYPOXIA", "HALLMARK_INFLAMMATORY_RESPONSE"),
    Brief_Description = c("Hypoxia", "Inflammatory response"),
    stringsAsFactors = FALSE
  ),
  tmp_csv, row.names = FALSE
)

add_data <- read_addition_data(tmp_csv)
add_data
}
