a b/man/pathway_description.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/PathwayDescription.R
3
\name{pathway_description}
4
\alias{pathway_description}
5
\title{Describe Genes Present in Selected Pathways}
6
\usage{
7
pathway_description(GO, selected_pathways_names, enrich_data)
8
}
9
\arguments{
10
\item{GO}{A character vector of gene symbols.}
11
12
\item{selected_pathways_names}{A character vector specifying the names of selected pathways.}
13
14
\item{enrich_data}{A data frame containing pathway enrichment analysis results.}
15
}
16
\value{
17
A data frame with columns "Symble" (gene symbol), "Description" (pathway description), and "Exists" (1 if gene is present, 0 otherwise).
18
}
19
\description{
20
This function identifies genes present in selected pathways based on gene enrichment analysis results.
21
}
22
\examples{
23
GO <- c("Gene1", "Gene2", "Gene3", "Gene4", "Gene5")
24
# Simulated enrichment analysis data
25
enrich_data <- data.frame(
26
  ID = c("Pathway1", "Pathway2", "Pathway3", "Pathway4"),
27
  Description = c("Apoptosis", "Cell Cycle", "Signal Transduction", "Metabolism"),
28
  geneID = c("Gene1/Gene3", "Gene2/Gene4", "Gene1/Gene2/Gene3", "Gene5"),
29
  Count = c(2, 2, 3, 1),
30
  stringsAsFactors = FALSE
31
)
32
33
# Example usage
34
result <- pathway_description(GO,
35
                              selected_pathways_names="Apoptosis",
36
                              enrich_data)
37
38
}