getMatrixByID
,
getMatrixByName
"getMatrixByID"(x, ID) "getMatrixByID"(x, ID) "getMatrixByID"(x, ID) "getMatrixByName"(x, name) "getMatrixByName"(x, name) "getMatrixByName"(x, name)
character
(1) for the path of JASPAR SQLite file,
a SQLiteConnection
object, a JASPAR2014
,
or a JASPAR2016
object.
character
() of JASPAR stable ID(s).
See more details below.
character
() of JASPAR stable name(s).
PFMMatrixList
is returned.
For getMatrixByName, according to the current JASPAR data model, name is not necessarily a unique identifier. Also, names change over time. In the case where there are several matrices with the same name in the database, the function fetches the first one and prints a warning. You've been warned. Some matrices have multiple versions. The function will return the latest version. For specific versions, use getMatrixByID(ID.version)
getMatrixSet
library(JASPAR2014)
db <- file.path(system.file("extdata", package="JASPAR2014"),
"JASPAR2014.sqlite")
## character and ID
pfm <- getMatrixByID(db, ID="MA0003")
## character and IDs
pfmList <- getMatrixByID(db, ID=c("MA0003", "MA0004"))
## character and name
pfm <- getMatrixByName(db, name="TFAP2A")
##
## character and name
pfmList <- getMatrixByName(db, name=c("TFAP2A", "Arnt"))
## JASPAR2014 and ID
pfm <- getMatrixByID(JASPAR2014, ID="MA0003")
Run the code above in your browser using DataLab