Once you obtain your gene expression matrix
-
Calculate random background gene co-expression
-
Calculate pathway EC and random pathway ECs
EC=expression coherence=(# of gene pairs with PCC > PCC95)/total # of gene pairs
For a pathway with n genes, total number of gene pairs is taken as: [n*(n-1)]/2, without the self-pairs
-
Clustering
kmeans, hclust (ward, complete and average linkages), cmeans, akkmeans, WGCNA
-
Visualize clusters
-
Normalize expression matrix: all values are normalized from 0 to 1 per gene
python normalization.py <expression matrix> <row or col>
-
Combine the expression matrix with each cluster
python combine_exressionmatrix.py <cluster file> <normalized expression file>
-
Get visualized expression cluster
input is the output from step 2. This script is meant to run locally on your computer.
coexpression_profile_from_cluster_plot_loop.R
-