get_interaction_from_correlation {netOmics} | R Documentation |
Compute correlation between two dataframe X and Y (or list of data.frame). An incidence graph is returned. A link between two features is produced if their correlation (absolute value) is above the threshold.
get_interaction_from_correlation(X, Y, threshold = 0.5)
X |
a data.frame or list of data.frame (with a similar number of row). |
Y |
a data.frame or list of data.frame (with a similar number of row). |
threshold |
a threshold to cut the correlation matrix above which a link is created between a feature from X and a feature from Y. |
an 'igraph' object
X <- matrix(rexp(200, rate=.1), ncol=20) Y <- matrix(rexp(200, rate=.1), ncol=20) get_interaction_from_correlation(X,Y) X <- list(matrix(rexp(200, rate=.1), ncol=20), matrix(rexp(200, rate=.1), ncol=20)) Y <- matrix(rexp(200, rate=.1), ncol=20) get_interaction_from_correlation(X,Y)