File: plotCNEDistribution.Rd

package info (click to toggle)
r-bioc-cner 1.26.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 18,216 kB
  • sloc: ansic: 23,458; makefile: 6
file content (58 lines) | stat: -rw-r--r-- 1,779 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
\name{plotCNEDistribution}
\alias{plotCNEDistribution}
\title{
  Plot sequential CNE number against CNE genomic location 
}
\description{
  Plot the CNE genomic location distribution.
  It gives an overview of the tendency of CNEs to form clusters.
}
\usage{
  plotCNEDistribution(x, chrs = NULL, chrScale = c("Mb", "Kb"))
}

\arguments{
  \item{x}{
    \code{GRanges} object: the CNE locations.
  }
  \item{chrs}{
    \code{character}(n): the chromosomes to show. By default,
    the largest 6 chromosomes/scaffolds are selected.
  }
  \item{chrScale}{
    \code{character}(1): the chromosome/scaffold scale of \sQuote{Mb}
    or \sQuote{Kb} in the plot.
  }
}
\details{
  In the plot, x axis is the genomic location along each chromosome/scaffold.
  The y axis is the sequential CNE number.
  A typical CNE cluster can be spotted by the dramatic increase in y axis and 
  small increase in x axis.
}
\value{
  A \code{ggplot} object.
}

\author{
  Ge Tan
}

\seealso{
  \code{\link{plotCNEWidth}}
}
\examples{
  dbName <- file.path(system.file("extdata", package="CNEr"),
                      "danRer10CNE.sqlite")
  qAssemblyFn <- file.path(system.file("extdata",
                           package="BSgenome.Hsapiens.UCSC.hg38"),
                           "single_sequences.2bit")
  tAssemblyFn <- file.path(system.file("extdata",
                           package="BSgenome.Drerio.UCSC.danRer10"),
                           "single_sequences.2bit")
  cneGRangePairs <- readCNERangesFromSQLite(dbName=dbName, 
                                            tableName="danRer10_hg38_45_50",
                                            tAssemblyFn=tAssemblyFn,
                                            qAssemblyFn=qAssemblyFn)
  plotCNEDistribution(first(cneGRangePairs))
}