Reverse complement a PSSM
pssm_rc.Rd
Reverse complement a PSSM
Examples
# Create simulated PSSM data frame
pssm <- data.frame(
pos = 1:4,
A = c(0.1, 0.2, 0.3, 0.1),
C = c(0.1, 0.3, 0.2, 0.1),
G = c(0.1, 0.3, 0.3, 0.7),
T = c(0.7, 0.2, 0.2, 0.1)
)
# Reverse complement the PSSM
rc_pssm <- pssm_rc(pssm)