Skip to contents

scale_distance calculates the similarity scores Uses the diffential expression states to calculate the similarity and anti-similarity scores.

Usage

scale_distance(data1, data2, genes)

Arguments

data1

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

data2

data1 for condition 2

genes

vector of the intersect of genes between data1 and data2

Value

list containing the similarity scores dplus and dmin and the corresponding genes associated with the dplus and dmin scores, dplusgenes and dmingenes.

Examples

# Internal function