File: toGRangesList-methods.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 (42 lines) | stat: -rw-r--r-- 1,238 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
\name{toGRangesList-methods}
\docType{methods}
\alias{toGRangesList}
\alias{toGRangesList-methods}
\alias{toGRangesList,SitePairSetList,Axt-method}
\title{toGRangesList function}
\description{
  Get the genomic coordinates from SitePairSetList.
}
\section{Methods}{
\describe{
\item{\code{signature(x = "SitePairSetList", axt = "Axt")}}{
  Convert the relative coordinates to absolute coordinates.
}
}}

\value{
  A list of two \code{GRanges} objects are returned, 
  one for the target sequences
  and another for query sequences.

  In the \code{GRanges}, strand is taken from the \code{Axt} object.
  In the meta-data columns, PWM matrix ID, the strand of matrix and 
  match score are also returned.
}

\author{
  Ge Tan
}

\examples{
  data(MA0003.2)
  pwm <- toPWM(MA0003.2)
  library(CNEr)
  axtFilesHg19DanRer7 <- file.path(system.file("extdata", package="TFBSTools"),
                                   "hg19.danRer7.net.axt")
  axtHg19DanRer7 <- readAxt(axtFilesHg19DanRer7)
  sitePairSet <-  searchAln(pwm, axtHg19DanRer7, min.score="80\%",
                            windowSize=51L, cutoff=0.7, strand="*",
                            type="any", conservation=NULL, mc.cores=1)
  toGRangesList(sitePairSet, axtHg19DanRer7)
}