Compute the correlation between two given PSSMs
pssm_cor.Rd
The correlation is computed by shifting the shorter PSSM along the longer one and computing the correlation at each position. The maximum correlation is returned.
Arguments
- pssm1
first PSSM matrix or data frame
- pssm2
second PSSM matrix or data frame
- method
method to use for computing the correlation. See
cor
for details.- prior
a prior probability for each nucleotide.
Examples
if (FALSE) { # \dontrun{
res1 <- regress_pwm(cluster_sequences_example, cluster_mat_example[, 1])
pssm_cor(res1$pssm, JASPAR_motifs[JASPAR_motifs$motif == "HNF1A", ])
} # }