TFBSTools
TFBSTools copied to clipboard
getMatrixSet is incompatable with JASPAR2024
I tried running
JASPAR2024 <- JASPAR2024::JASPAR2024()
pfm <- getMatrixSet(
x = JASPAR2024,
opts = list(collection = "CORE", tax_group = 'plants', all_versions = FALSE)
)
but got an error:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘getMatrixSet’ for signature ‘"JASPAR2024"’
My workaround seems to work, but perhaps TFBSTools needs to be updated for JASPAR2024 compatibility?
JASPAR <- JASPAR2020::JASPAR2020
JASPAR@db <- JASPAR2024::JASPAR2024() %>% .@db
pfm <- getMatrixSet(
x = JASPAR,
opts = list(collection = "CORE", tax_group = 'plants', all_versions = FALSE)
)
Or alternatively, one can simply do:
jaspar <- JASPAR2024::JASPAR2024()
getMatrixSet(jaspar@db, ...)