TFBSTools icon indicating copy to clipboard operation
TFBSTools copied to clipboard

getMatrixSet is incompatable with JASPAR2024

Open mossconfuse opened this issue 10 months ago • 1 comments

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)
)

mossconfuse avatar Apr 08 '24 04:04 mossconfuse

Or alternatively, one can simply do:

jaspar <- JASPAR2024::JASPAR2024()
getMatrixSet(jaspar@db, ...)

ghost avatar May 01 '24 19:05 ghost