Skip to content

Commit c529d38

Browse files
authored
Create vignette (#62)
* Update DESCRIPTION * Create MMAPPR2.rmd * Update MMAPPR2.rmd * Update MMAPPR2.rmd * Update MMAPPR2.rmd * Update MMAPPR2.rmd * Update README.md * Update README.md * Update MMAPPR2.rmd * Update README.md * Update MMAPPR2.rmd * Update minMapQuality doc * Remove ref genome * remove need for chr5_distance object * Remove need for dummy_distance object * Remove need for dummy_distance object * Refactor chr5 MD objects to data folder * Add data files * Update MMAPPR2.rmd * Rename read_bam to distance * Try dynamic examples on mmappr * Document data * Try to fix tests * Update and rename MMAPPR2.rmd to MMAPPR2.Rmd * Update MMAPPR2.Rmd * Update MmapprParam show method * BAM files in extdata * Refactor to use extdata BAMs * Update MMAPPR2.Rmd * Add MMAPPR2data to mmappr and calculateDistance docs * Use intermediate MDs in docs * Install MMAPPR2data in Travis script * Use only dummy BAM in tests * Fix file validity * Update tests for new data * Index every file in BamFileList * Remove skipDebug * Update README.md * Redo MD objects * Update tests for new data * Remove old test BAM files, update README * Update MMAPPR2.Rmd * Update docs to match MMAPPR2data change * Remove .addBamFileIndex from validity check * Delete extdata * Bump version * Update docs * Fix doc error * Change system() to system2() * Update MMAPPR2.Rmd * Change back to system; system2 was failing * Remove index warning when building param * Try lazyload=yes * Travis: only devel * Update MMAPPR2.Rmd * Update DESCRIPTION * Update DESCRIPTION * Update MMAPPR2.Rmd * Try installing ExperimentHub from GitHub * Update vignette * Remove debug sys.which * Try using bioc-devel * Try bioc-devel again * Update vignette * Try bioc-devel again * sudo: false on travis * Update vignette * Try another travis build, without sudo * Update vignette * Remove username from sample objects * Try possibleDates() again * Update vignette * Try GitHub BiocManager and sudo=required * Try ask=false * Add fake GmapGenomeDirectory to get examples to run * Update docs with examples * Add fake VEP for param example * Bump version to 0.98.11 * Create directories for examples * Create directories for examples * Create gmap and DEFAULT directories in vignette * Update MMAPPR2.Rmd * Fix Biocpkg * See if outputMmapprData caused weird cleanEx dev.off problem * Reinstate outputMmapprData example, comment out prePeak example, which was causing weird failure * Update docs * Try comment out prePeak example again (fixed) * Uncomment prePeak, didn't make a difference * Don't run both outputMmapprData examples in both places * Update docs * Fix merge * Sudo required in .travis.yml * Don't run VEPFlags block * Track down cannot allocate memory problem * Track down error * More tracking down error * Try only running steps, only use postCandidatesMD * Try without MD objects * Explicitly load MMAPPR2data data * Fix @candidates problem in vignette * Remove RDS file reading--cannot open connection bug * Update post_loess_dummy_md to fix param * Remove MD objects from tests * Make examples not runnable * Missed one * Remove data from package * Update docs
1 parent 5e94585 commit c529d38

28 files changed

+219
-231
lines changed

DESCRIPTION

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: MMAPPR2
22
Title: Mutation Mapping Analysis Pipeline for Pooled RNA-Seq
3-
Version: 0.98.10
3+
Version: 0.98.11
44
Authors@R: c(
55
person("Kyle", "Johnsen", email="kjohnsen@byu.edu", role=c("aut")),
66
person('Nathaniel', 'Jenkins', role=c('aut')),
@@ -17,9 +17,13 @@ Encoding: UTF-8
1717
LazyData: true
1818
LazyLoad: yes
1919
RoxygenNote: 6.1.0
20+
VignetteBuilder: knitr
2021
Suggests: testthat,
2122
mockery,
2223
roxygen2,
24+
knitr,
25+
rmarkdown,
26+
BiocStyle,
2327
MMAPPR2data
2428
Imports: ensemblVEP (>= 1.20.0),
2529
gmapR,

R/aicc_loess.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#' of the \code{distance} slot list filled.
1010
#'
1111
#' @examples
12+
#' \dontrun{
1213
#' postLoessMD <- loessFit(postCalcDistMD)
14+
#' }
1315
#' @export
1416
loessFit <- function(mmapprData) {
1517
loessOptResolution <- mmapprData@param@loessOptResolution

R/data.R

Lines changed: 0 additions & 65 deletions
This file was deleted.

R/main.R

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,18 @@
3838
#' # Run pipeline:
3939
#' mmapprData <- mmappr(mmapprParam)
4040
#'
41-
#' ### Alternately, you can navigate the pipeline step by step.
42-
#' ### This may be helpful for debugging.
43-
#' md <- new('MmapprData', param = mmapprParam)
44-
#' postCalcDistMD <- calculateDistance(md)
45-
#' postLoessMD <- loessFit(postCalcDistMD)
46-
#' postPrePeakMD <- prePeak(postLoessMD)
47-
#' postPeakRefMD <- peakRefinement(postPrePeakMD)
48-
#' \dontrun{postCandidatesMD <- generateCandidates(postPeakRefMD)
49-
#' outputMmapprData(postCandidatesMD)
50-
#' }
5141
#' }
42+
#' \dontrun{
43+
#' ### Alternately, you can navigate the pipeline step by step.
44+
#' ### This may be helpful for debugging.
45+
#' md <- new('MmapprData', param = mmapprParam)
46+
#' postCalcDistMD <- calculateDistance(md)
47+
#' postLoessMD <- loessFit(postCalcDistMD)
48+
#' postPrePeakMD <- prePeak(postLoessMD)
49+
#' postPeakRefMD <- peakRefinement(postPrePeakMD)
50+
#' postCandidatesMD <- generateCandidates(postPeakRefMD)
51+
#' outputMmapprData(postCandidatesMD)
52+
#' }
5253
#'
5354
#' @seealso \code{\link{calculateDistance}}, \code{\link{loessFit}},
5455
#' \code{\link{prePeak}}, \code{\link{peakRefinement}},

R/output.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
#' @export
99
#'
1010
#' @examples
11-
#' dir.create(outputFolder(param(postCandidatesMD))) ## Ignore this line
12-
#' \dontrun{outputMmapprData(postCandidatesMD)}
11+
#' \dontrun{
12+
#' outputMmapprData(postCandidatesMD)
13+
#' }
1314
outputMmapprData <- function(mmapprData) {
1415
stopifnot(class(mmapprData) == "MmapprData")
1516
oF <- outputFolder(param(mmapprData))

R/peaks.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
#' @export
1111
#'
1212
#' @examples
13+
#' \dontrun{
1314
#' postPeakRefMD <- peakRefinement(postPrePeakMD)
15+
#' }
1416
peakRefinement <- function(mmapprData){
1517
mmapprData@peaks <-
1618
.runFunctionInParallel(mmapprData@peaks,
@@ -100,7 +102,9 @@ peakRefinement <- function(mmapprData){
100102
#' @export
101103
#'
102104
#' @examples
105+
#' \dontrun{
103106
#' postPrePeakMD <- prePeak(postLoessMD)
107+
#' }
104108
prePeak <- function(mmapprData) {
105109
mmapprData@peaks <- list()
106110

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
## Mutation Mapping Analysis Pipeline for Pooled RNA-Seq
55
### Kyle Johnsen, Nathaniel Jenkins, Jonathon Hill
66

7+
### [See vignette for instructions](vignettes/MMAPPR2.Rmd)
8+
79
MMAPPR2 maps mutations resulting from pooled RNA-seq data from the F2
810
cross of forward genetic screens. Its predecessor is described in a paper published
911
in Genome Research (Hill et al. 2013). MMAPPR2 accepts aligned BAM files as well as

data/postCalcDistMD.rda

-2.77 MB
Binary file not shown.

data/postCandidatesMD.rda

-3.04 MB
Binary file not shown.

data/postLoessMD.rda

-2.98 MB
Binary file not shown.

0 commit comments

Comments
 (0)