View source: R/estimate_helper.R
| filterCommonGenes | R Documentation |
This function filters and merges a dataset with a set of common genes.
filterCommonGenes(input.f, output.f, id = c("GeneSymbol", "EntrezID"))
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. |
output.f |
A character string specifying the path to the output file. |
id |
A character string indicating the type of gene identifier to use. Can be either "GeneSymbol" or "EntrezID". |
No return value. The function writes the merged dataset to the specified output file.
## Not run:
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")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.