Skip to contents

dissimilarity_correlation

Usage

dissimilarity_correlation(
  data1,
  data2,
  outputName = "",
  cond1 = "data1",
  cond2 = "data2",
  perm_dist = NULL,
  perm_dplus = NULL,
  perm_dmin = NULL,
  perm_mode = FALSE
)

Arguments

data1

dataframe of the foldchange and adjusted pvalue of condition 1 with the columns: fc (foldchange), pval (adjusted pvalue), genes (gene identifiers)

data2

the same as data1 for condition 2

outputName

filename for the output visualization

cond1

name of condition 1

cond2

name of condition 2

perm_dist

vector of permutation of the dissimilarity scores

perm_dplus

vector of permutation of the dplus values

perm_dmin

vector of permutation of the dmin values

perm_mode

if TRUE, permutation mode is used to calculate the permutation distributions. No need to supply the permutation distributions. No visualizations will be made

Value

list of the correlation measure (rho), the similarity score (dplus) and the anti-similarity score (dmin).

Examples

# Internal function