Skip to contents

Compute a correlation matrix for a pssm dataset

Usage

pssm_dataset_cor(
  dataset,
  method = "spearman",
  prior = 0.01,
  parallel = getOption("prego.parallel", TRUE)
)

Arguments

dataset

a pssm dataset. A data frame with the columns 'motif', 'pos', 'A", 'C', 'G', 'T'

method

method to use for computing the correlation. See cor for details.

prior

a prior probability for each nucleotide.

parallel

whether to use parallel computing

Value

A correlation matrix for the PSSMs in the dataset

Examples

if (FALSE) { # \dontrun{
cm <- pssm_dataset_cor(JASPAM_motifs)
head(cm)
} # }