Browse code

removed plotKaryogram and ggbio dependency

chakalakka authored on 14/02/2018 09:33:41
Showing 3 changed files

... ...
@@ -31,8 +31,7 @@ Suggests:
31 31
     knitr,
32 32
     BiocStyle,
33 33
     testthat,
34
-    biomaRt,
35
-    ggbio
34
+    biomaRt
36 35
 License: Artistic-2.0
37 36
 LazyLoad: yes
38 37
 VignetteBuilder: knitr
... ...
@@ -313,27 +313,6 @@ plotHistogram <- function(model, state=NULL, chromosomes=NULL, start=NULL, end=N
313 313
 
314 314
 }
315 315
 
316
-#' Plot a karyogram with read counts and univariate peak calls
317
-#'
318
-#' Plot a karyogram with read counts and peak calls from a \code{\link{uniHMM}} object.
319
-#'
320
-#' @author Aaron Taudt
321
-#' @param model A \code{\link{uniHMM}} object or file that contains such an object.
322
-#' @return A \code{\link[ggplot2:ggplot]{ggplot}} object.
323
-plotKaryogram <- function(model) {
324
-
325
-    model <- suppressMessages( loadHmmsFromFiles(model, check.class=class.univariate.hmm)[[1]] )
326
-
327
-    # Plot the peaks
328
-    ggplt <- ggbio::autoplot(model$segments[model$segments$state=='modified'], layout='karyogram', color=getStateColors('modified'))
329
-
330
-    # Plot the read counts
331
-    ggplt <- ggplt + ggbio::layout_karyogram(model$bins, aes_string(x='start', y='counts'), ylim=c(10,40), geom='line', color=getStateColors('counts'))
332
-    ggplt <- ggplt + theme(axis.text.y=element_blank(), panel.background=element_blank())
333
-
334
-    return(ggplt)
335
-}
336
-
337 316
 #' @importFrom stats pnbinom qnorm dnorm
338 317
 plotNormalTransformation <- function(model, state='unmodified') {
339 318
 
340 319
deleted file mode 100644
... ...
@@ -1,20 +0,0 @@
1
-% Generated by roxygen2: do not edit by hand
2
-% Please edit documentation in R/plotting.R
3
-\name{plotKaryogram}
4
-\alias{plotKaryogram}
5
-\title{Plot a karyogram with read counts and univariate peak calls}
6
-\usage{
7
-plotKaryogram(model)
8
-}
9
-\arguments{
10
-\item{model}{A \code{\link{uniHMM}} object or file that contains such an object.}
11
-}
12
-\value{
13
-A \code{\link[ggplot2:ggplot]{ggplot}} object.
14
-}
15
-\description{
16
-Plot a karyogram with read counts and peak calls from a \code{\link{uniHMM}} object.
17
-}
18
-\author{
19
-Aaron Taudt
20
-}