R/motifmatchr.R

Defines functions onUnload

#' motifmatchr: Fast Motif Matching in R
#'
#' The motifmatchr package is designed for analyzing many sequences and many
#' motifs to find which sequences contain which motifs.
#'
#' motifmatchr uses the MOODS C++ library (developedby Pasi Rastas,
#' Janne Korhonen, and Petri Martinmaki) internally for motif matching.
#'
#' The primary method of motifmatchr is \code{\link{matchMotifs}}, which takes
#' in motif PWMs/PFMs and genomic ranges or sequences and returns either which
#' ranges/sequences match which motifs or the positions of the matches.
#'
#' Compared with alternative motif matching functions available in Bioconductor
#' (e.g. matchPWM in Biostrings or searchSeq in TFBSTools), motifmatchr is
#' designed specifically for the use case of determining whether many different
#' sequences/ranges contain many different motifs.
#'
#' @useDynLib motifmatchr, .registration = TRUE
#' @docType package
#' @import Matrix SummarizedExperiment methods
#' @importFrom Rcpp sourceCpp
#' @importFrom S4Vectors DataFrame
#' @importFrom GenomicRanges GRanges GRangesList
#' @importFrom Biostrings getSeq letterFrequency DNAString DNAStringSet
#' @importFrom TFBSTools PWMatrixList toPWM name bg
#' @importFrom IRanges IRanges IRangesList
#' @importFrom BSgenome getBSgenome
#' @importFrom GenomeInfoDb genome
#' @importMethodsFrom GenomicRanges seqnames start
#' @importMethodsFrom TFBSTools as.matrix
#' @importClassesFrom Biostrings DNAString DNAStringSet
#' @importClassesFrom GenomicRanges GenomicRanges
#' @importClassesFrom TFBSTools PWMatrix PFMatrix PWMatrixList PFMatrixList
#' @author Alicia Schep
#' @name motifmatchr
NULL
# > NULL

#' example_motifs
#'
#' A few example motifs from JASPAR 2016 for trying out motifmatchr
#' @docType data
#' @keywords datasets
#' @name example_motifs
#' @usage data(example_motifs)
#' @return \code{\link[TFBSTools]{PFMatrixList}} of length 3
#' @examples
#'
#' data(example_motifs, package = "motifmatchr")
#'
NULL



.onUnload <- function(libpath) {
  library.dynam.unload("motifmatchr", libpath)
}

Try the motifmatchr package in your browser

Any scripts or data that you put into this service are public.

motifmatchr documentation built on Nov. 17, 2017, 12:39 p.m.