generateCandidates: Generate potential causative mutations and consequences in...

Description Usage Arguments Value Examples

View source: R/candidates.R

Description

Follows the peakRefinement step and produces a MmapprData object ready for outputMmapprData.

Usage

1
generateCandidates(mmapprData)

Arguments

mmapprData

The MmapprData object to be analyzed.

Value

A MmapprData object with the candidates slot filled with a GRanges object for each peak chromosome containing variants and predicted consequences from Ensembl's Variant Effect Predictor.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
if (requireNamespace('MMAPPR2data', quietly=TRUE)
        & all(Sys.which(c("samtools", "vep")) != "")) {
    mmappr_param <- MmapprParam(refFasta = MMAPPR2data::goldenFasta(),
                               wtFiles = MMAPPR2data::exampleWTbam(),
                               mutFiles = MMAPPR2data::exampleMutBam(),
                               species = "danio_rerio",
                               outputFolder = tempOutputFolder())
}
## Not run: 
md <- new('MmapprData', param = mmappr_param)
postCalcDistMD <- calculateDistance(md)
postLoessMD <- loessFit(postCalcDistMD)
postPrePeakMD <- prePeak(postLoessMD)
postPeakRefMD <- peakRefinement(postPrePeakMD)

postCandidatesMD <- generateCandidates(postPeakRefMD)

## End(Not run)

kjohnsen/MMAPPR2 documentation built on Oct. 1, 2019, 7:01 p.m.