Skip to content

Commit

Permalink
v1.21.9 -- try only in the examples. I bet that it will fail anyway a…
Browse files Browse the repository at this point in the history
…nd that I'll have to add crop = NULL
  • Loading branch information
lcolladotor committed Apr 24, 2020
1 parent 14e7b71 commit c63ec2c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: regionReport
Type: Package
Title: Generate HTML or PDF reports for a set of genomic regions or DESeq2/edgeR results
Version: 1.21.8
Version: 1.21.9
Date: 2020-04-23
Authors@R: c(person("Leonardo", "Collado-Torres", role = c("aut", "cre"), email
= "lcolladotor@gmail.com", comment = c(ORCID = "0000-0003-2140-308X")),
Expand Down Expand Up @@ -38,7 +38,8 @@ Imports:
rmarkdown (>= 0.9.5),
S4Vectors,
SummarizedExperiment,
utils
utils,
magick
Suggests:
BiocManager,
biovizBase,
Expand All @@ -53,7 +54,6 @@ Suggests:
grid,
gridExtra,
IRanges,
magick,
mgcv,
pasilla,
pheatmap,
Expand Down
2 changes: 1 addition & 1 deletion R/derfinderReport.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
#' ## Generate the HTML report
#' report <- derfinderReport(
#' prefix = "derfinderReport-example", browse = FALSE,
#' nBestRegions = 1, makeBestClusters = FALSE,
#' nBestRegions = 15, makeBestClusters = TRUE,
#' fullCov = list("21" = genomeDataRaw$coverage), optionsStats = optionsStats
#' )
#'
Expand Down
2 changes: 1 addition & 1 deletion man/derfinderReport.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 12 additions & 10 deletions vignettes/regionReport.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,16 @@ Below, we run `r Biocpkg('derfinder')` for the example data included in the pack
## Load derfinder
library("derfinder")
## The output will be saved in the 'report' directory
dir.create("report", showWarnings = FALSE, recursive = TRUE)
## The output will be saved in the "derfinderReport-example" directory
dir.create("derfinderReport-example", showWarnings = FALSE, recursive = TRUE)
```

The following code runs `r Biocpkg('derfinder')`.

```{r runDerfinderFake, eval=FALSE}
## Save the current path
initialPath <- getwd()
setwd(file.path(initialPath, "report"))
setwd(file.path(initialPath, "derfinderReport-example"))
## Generate output from derfinder
Expand Down Expand Up @@ -291,7 +291,7 @@ of `r Biocpkg('derfinder')`.
file.copy(system.file(file.path("extdata", "chr21"),
package = "derfinder",
mustWork = TRUE
), "report", recursive = TRUE)
), "derfinderReport-example", recursive = TRUE)
```

Next, proceed to merging the results.
Expand All @@ -300,12 +300,12 @@ Next, proceed to merging the results.
## Merge the results from the different chromosomes. In this case, there's
## only one: chr21
mergeResults(
chrs = "chr21", prefix = "report",
chrs = "chr21", prefix = "derfinderReport-example",
genomicState = genomicState$fullGenome
)
## Load optionsStats
load(file.path("report", "chr21", "optionsStats.Rdata"), verbose = TRUE)
load(file.path("derfinderReport-example", "chr21", "optionsStats.Rdata"), verbose = TRUE)
```


Expand All @@ -322,11 +322,11 @@ library("regionReport")
```


```{r createReport, warning = FALSE}
```{r createReport, eval = FALSE}
## Generate the HTML report
report <- derfinderReport(
prefix = "report", browse = FALSE,
nBestRegions = 15, makeBestClusters = TRUE, outdir = "html",
prefix = "derfinderReport-example", browse = FALSE,
nBestRegions = 15, makeBestClusters = TRUE,
fullCov = list("21" = genomeDataRaw$coverage), optionsStats = optionsStats
)
```
Expand All @@ -339,6 +339,8 @@ __browseURL()__ as shown below.
browseURL(report)
```

You can view a pre-compiled version of this report [here](http://leekgroup.github.io/regionReport/reference/derfinderReport-example/basicExploration/basicExploration.html).

### Notes

Note that the reports require an active Internet connection to render correctly.
Expand Down Expand Up @@ -398,7 +400,7 @@ knit("regionReport.Rmd", tangle = TRUE)
```{r createVignette2}
## Clean up
file.remove("regionReportRef.bib")
unlink("report", recursive = TRUE)
unlink("derfinderReport-example", recursive = TRUE)
```

Date the vignette was generated.
Expand Down

0 comments on commit c63ec2c

Please sign in to comment.