86341104 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pathways.R
\name{readPathways}
\alias{readPathways}
|
56ebd8d0 |
\title{Returns a list of pathways from various file formats.}
|
86341104 |
\usage{
readPathways(
|
3b883b4b |
pathwayFile,
header = FALSE,
pathCol = NULL,
geneCol = NULL,
minGene = 1L,
maxGene = Inf
|
86341104 |
)
}
\arguments{
|
56ebd8d0 |
\item{pathwayFile}{(char) path to file with pathway annotations}
|
86341104 |
|
ce5bb666 |
\item{header}{(logical) whether \code{pathwayFile} has a header
|
56ebd8d0 |
(default FALSE)}
|
86341104 |
|
56ebd8d0 |
\item{pathCol}{(char or int) column name or number with pathway identifiers
(for use with non-GMT input files (eg "Pathway.ID" or 2; default NULL))}
|
86341104 |
|
56ebd8d0 |
\item{geneCol}{(char or int) column name or number with gene identifiers
(for use with non-GMT input files (eg "Gene.ID" or 5; default NULL))}
|
86341104 |
|
ce5bb666 |
\item{minGene}{(integer) minimum number of genes to be considered
|
56ebd8d0 |
in a pathway (default 1)}
|
86341104 |
|
ce5bb666 |
\item{maxGene}{(integer) maximum number of genes to be considered
|
56ebd8d0 |
in a pathway (default Inf)}
|
86341104 |
}
\value{
|
56ebd8d0 |
A list of vectors with pathway annotations.
|
86341104 |
}
\description{
|
56ebd8d0 |
This function supports custom pathway annotations to use
for fedup pathway enrichment analysis. Current file formats supported are
gmt, txt, and xlsx.
|
86341104 |
}
\examples{
|
98bb7655 |
# Generate pathway list from GMT annotation file
|
86341104 |
pathways <- readPathways(
|
9a1afca9 |
system.file("extdata", "Human_Reactome_November_17_2020_symbol.gmt",
|
52703129 |
package = "fedup"
|
0d873325 |
),
minGene = 10, maxGene = 500
)
|
98bb7655 |
# Generate pathway list from XLSX annotation file
|
86341104 |
pathways <- readPathways(
|
52703129 |
system.file("extdata", "SAFE_terms.xlsx", package = "fedup"),
|
8088db7a |
header = TRUE, pathCol = "Enriched.GO.names", geneCol = "Gene.ID"
|
0d873325 |
)
|
86341104 |
}
|