loessFit: Perform optimized Loess regression for each chromosome

Description Usage Arguments Value Examples

View source: R/aicc_loess.R

Description

Called after the calculateDistance step and before prePeak.

Usage

1
loessFit(mmapprData)

Arguments

mmapprData

The MmapprData object to be analyzed.

Value

A MmapprData object with the $loess element of the distance slot list filled.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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)

## End(Not run)

MMAPPR2 documentation built on Nov. 8, 2020, 6:53 p.m.