View source: R/crosstalkNetwork.R
crosstalkNetwork | R Documentation |
Generates a glmnet binomial classification model for a given matrix of pathway-pair discriminating scores and outputs a network object containing the top-performing pathway pairs in the model.
crosstalkNetwork( crosstalk_matrix, groups, alpha = 1, lambda = "best", output_network = TRUE, output_model = FALSE )
crosstalk_matrix |
A matrix of discriminating scores in which each column is a pair of enriched pathways and each row is a sample. The output of pathwayCrosstalk(). |
groups |
A dataframe containing the mappings between sample identifiers ('sample_id', a factor with the reference condition as the first level) and associated treatment conditions ('group'). The sample identifiers must be in the same order as the columns of the count_matrix. |
alpha |
The alpha value applied to the glmnet classification model. Use alpha = 1 for lasso regression and alpha = 0 for ridge regression. |
lambda |
The lambda value applied to the glmnet classification model. |
output_network |
Logical. If TRUE, the function outputs the network object. |
output_model |
Logical. If TRUE, the function outputs the model. |
Depending on the values of the 'output_network' and 'model_evaluation' arguments, either a list containing the network object or a list containing the model evaluation metrics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.