getPfms: Retrieve the motifs from the pfms slot

getPfms,MotifMatcher-methodR Documentation

Retrieve the motifs from the pfms slot

Description

Given a MotifMatcher object, return the motifs, which are stored in the pfms slot.

Usage

## S4 method for signature 'MotifMatcher'
getPfms(obj)

Arguments

obj

An object of class MotifMatcher

Value

The list of motif matrices stored in the pfms slot.

Examples


# Return the default matrix of JASPAR motifs
library(MotifDb)
motifMatcher <- MotifMatcher(genomeName="hg38", pfms = as.list(query(MotifDb, "sapiens")))
motifs <- getPfms(motifMatcher)

PriceLab/trena documentation built on March 16, 2023, 10:01 a.m.