Description Usage Arguments Value Examples
View source: R/regression_selected_pathways_funcs.R
This function allows you to extracte enriched pathways for gene module/list via regressioin (elastic net) based method
1 2 3 | regression_selected_pathways(gene_input, gene_pathway_matrix = NULL,
alpha = 0.5, family = c("gaussian", "binomial"), lambda = NULL,
verbose = TRUE, ...)
|
gene_input |
A vecor of genes to be annotated. It should have same ID types(Ensembl ID, HUGO gene symbol) as the genes in gene_pathway_matrix. |
gene_pathway_matrix |
A binary background matrix whose columns are the pathways/gene sets and whose rows are all the genes from pathways/gene sets . It could be in sparse matrix format ((inherit from class "sparseMatrix" as in package Matrix) to save memory. For gene i and pathway j, the value of matrix(i,j) is 1 is gene i belonging to pathway j otherwise 0. Users could leave it as default value then it will use pre-collected gene_pathway_matrix from GO Ontology and REACTOME databaase. Otherwise, they could use their own customized gene_pathway_matrix |
alpha |
The elasticnet mixing parameter, with 0~≤q~α~≤q~1. The penalty is defined as (1-α)/2||β||_2^2+α||β||_1. alpha=1 is the lasso penalty, and alpha=0 the ridge penalty. Default value: 0.5. |
family |
Response type, currently |
lambda |
A user supplied lambda sequence, see |
verbose |
If supprese warning messesge from gerr functions. TRUE or FALSE. Default value TRUE, not suppressing warning messages. |
... |
Other paramaters passed to the |
A list of following elements:
selected_pathways_names - Pathways names for selected pathways
selected_pathways_coef - Regression coefficients value for selected pathways
selected_pathways_fisher_pvalue - Fisher exact pvalue for selected pathways
selected_pathways_num_genes - The number of genes for selected pathways in background
model - the trained glmnet model
x - independent variable
y - dependent variable
1 2 3 4 5 | rspResults <- regression_selected_pathways(gene_input=c("TRPC4AP","CDC37",
"TNIP1","IKBKB","NKIRAS2", "NFKBIA","TIMM50","RELB","TNFAIP3","NFKBIB",
"HSPA1A","NFKBIE","SPAG9","NFKB2","ERLIN1","REL","TNIP2",
"TUBB6","MAP3K8"),
gene_pathway_matrix=NULL,lambda=NULL,alpha=0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.