Description Usage Arguments Details Value Examples
View source: R/subExtractionLinear.R
Linear subpathway extraction from pathway graphs
1 2 | extractLinearSubpathways(graphs, pathways, a, b, filter, export, groupMode,
verbose)
|
graphs |
Pathway graphs as returned from
|
pathways |
The subset of pathways from whom subpathways are to be
extracted. |
a |
Minimum subpathway length. |
b |
Maximum subpathway length. |
filter |
Filter the subpaths with user genes (TRUE). |
export |
Exports subpaths in CHRONOS/extdata/Output/Subpaths/Linear/<org>
folder. |
groupMode |
Expand paralogues ('expand') or collapse them to a
single entry ('collapse'). |
verbose |
Display informative messages (TRUE) Requires previous execution of |
Subpath filtering supports the removal of subpaths that have at least
one member not belonging to the set of user supplied genes. These genes
are extracted from the user's mRNA expressions matrix.Thus, the execution
of importExpressions
is a prerequisite.
To extract linear subpathways from a pathway graph, all possible start and end nodes are considered. A start node has only outgoing edges while an end node only has incoming edges. For each such pair, all linear subpathways are found by traversing the corresponding graph. Since the initial pathway graph's nodes contain one or more genes, resulting subpathways consist of bins of one or more genes. These subpaths are expanded to subpathways with one gene per bin in order to obtain usable subpathways.
Returns a list consisting of
A matrix of linear subpathways (subpaths)
A list of processed pathway graphs adjacency matrices (adjMats)
A list of processed pathway genes and interactions between them (lexicon)
1 2 3 4 5 | # Load pathway graphs from toy data
load(system.file('extdata', 'Examples//data.RData', package='CHRONOS'))
# Extract linear subpathways
linSubs <- extractLinearSubpathways(graphs=graphs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.