% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimate_helper.R
\name{filterCommonGenes}
\alias{filterCommonGenes}
\title{filterCommonGenes}
\usage{
filterCommonGenes(input.f, output.f, id = c("GeneSymbol", "EntrezID"))
}
\arguments{
\item{input.f}{A character string specifying the path to the input file or a connection object. The file should be a tab-separated table with row names.}

\item{output.f}{A character string specifying the path to the output file.}

\item{id}{A character string indicating the type of gene identifier to use. Can be either "GeneSymbol" or "EntrezID".}
}
\value{
No return value. The function writes the merged dataset to the specified output file.
}
\description{
This function filters and merges a dataset with a set of common genes.
}
\examples{
\dontrun{
input_data <- data.frame(
  GeneSymbol = c("BRCA1", "TP53", "EGFR", "NOTCH1"),
  Value = c(10, 15, 8, 12),
  stringsAsFactors = FALSE
)
input_file <- tempfile(fileext = ".txt")
output_file <- tempfile(fileext = ".txt")
write.table(input_data, file = input_file, sep = "\t", row.names = TRUE, quote = FALSE)
filterCommonGenes(input_file, output_file, id = "GeneSymbol")
}
}
