File: MotifSet-class.Rd

package info (click to toggle)
r-bioc-tfbstools 1.28.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 940 kB
  • sloc: xml: 1,137; ansic: 590; asm: 54; sh: 13; makefile: 2
file content (85 lines) | stat: -rw-r--r-- 2,239 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
\name{MotifSet}
\Rdversion{1.1}
\docType{class}
\alias{MotifSet}
\alias{MotifSet-class}
\alias{[,MotifSet-method}
\alias{consensusMatrix,MotifSet-method}
\alias{[,MotifSet,ANY,ANY-method}
\alias{[,MotifSet,ANY,ANY,ANY-method}
\alias{length,MotifSet-method}
\alias{sitesSeq}
\alias{sitesSeq,MotifSet-method}

\title{Class \code{"MotifSet"}}
\description{
  This MotifSet object is a container for storing the generated 
  motifs from Motif identification softwares, such as MEME.
}

\usage{
  ## Constructor
  MotifSet(motifList=GRangesList(), motifEvalues=numeric(), 
           subjectSeqs=DNAStringSet())
}

\arguments{
  \item{motifList}{
    A GRangesList. Each GRanges store the starts, ends, strand, seqnames 
    and scores information of one motif sites sequences.
  }
  \item{motifEvalues}{
    A numeric vector of the E values generated from MEME for each motif.
  }
  \item{subjectSeqs}{
    A DNAStringSet object. It stores the original sequences 
    which are scanned by the software.
  }
}

\section{Methods}{
  \describe{
    \item{[}{\code{signature(x = "MotifSet")}: Getter}

    \item{consensusMatrix}{\code{signature(x = "MotifSet")}(x, as.prob = FALSE, 
      shift = 0L, width = NULL, ...): 
      Calculate the consensus matrix. Other arguments, 
      please check the \code{consensusMatrix} in \code{Biostrings} package.}

    \item{length}{\code{signature(x = "MotifSet")}: 
      Returns the number of motifs.}

    \item{sitesSeq}{\code{signature(x = "MotifSet")}(x, n=10L, type="none"): 
      Gets the sites sequences. 

      \code{n} is the number of bases to include from flanking region. 

      \code{type} controls "all", "left", "right" or "none" 
        flanking sequences are included.
    }
  }
}

\value{
  A \code{MotifSet} object is returned.
}

\author{
  Ge Tan
}

\seealso{
  \code{\link{runMEME}}
}
\examples{
  \dontrun{
    motifSet <- runMEME(file.path(system.file("extdata", package="TFBSTools"), 
                        "crp0.s"),
                        binary="/usr/local/Cellar/meme/4.10.1/bin/meme",
                        arguments=list("-nmotifs"=3))
    sitesSeq(motifSet, type="all")
    sitesSeq(motifSet, type="none")
    consensusMatrix(motifSet)
  }  
}
\keyword{classes}