Diff of /man/selectPathways.Rd [000000] .. [0f2269]

Switch to unified view

a b/man/selectPathways.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/EnrichCirclize.R
3
\name{selectPathways}
4
\alias{selectPathways}
5
\title{Randomly Select Pathways with Limited Word Count}
6
\usage{
7
selectPathways(pathways, max_words = 10, num_select = 10)
8
}
9
\arguments{
10
\item{pathways}{Character vector of pathways.}
11
12
\item{max_words}{Integer, maximum number of words allowed in the pathway name.}
13
14
\item{num_select}{Integer, number of pathways to randomly select.}
15
}
16
\value{
17
A character vector of selected pathways.
18
}
19
\description{
20
This function randomly selects a specified number of pathways from a given list, ensuring that each selected pathway name does not exceed a specified number of words. It filters out pathways with names longer than the specified word limit before making the selection.
21
}
22
\examples{
23
pathway_list <- c("pathway_one response to stimulus",
24
                  "pathway_two cell growth and death",
25
                  "pathway_three regulation of cellular process",
26
                  "pathway_four metabolic process")
27
selected_pathways <- selectPathways(pathway_list, max_words = 5, num_select = 2)
28
29
}