Description Usage Arguments Value Examples

View source: R/makeSimulatedDataset.R

Inject artificial outliers in an existing fds

1 2 3 4 5 6 7 8 9 10 11 |

`fds` |
FraserDataSet |

`type` |
The psi type |

`freq` |
The injection frequency. |

`minDpsi` |
The minimal delta psi with which outliers will be injected. |

`minCoverage` |
The minimal total coverage (i.e. N) required for a junction to be considered for injection of an outlier. |

`deltaDistr` |
The distribution from which the delta psi value of the injections is drawn (default: uniform distribution). |

`verbose` |
Should additional information be printed during computation? |

`method` |
Defines by which method the new psi of injections is computed, i.e. to which value the delta psi of the injection is added: "meanPSI" for adding to the mean psi of the junction over all samples or "samplePSI" to add to the psi value of the junction in the specific sample. "simulatedPSI" is only possible if a simulated dataset is used. |

`BPPARAM` |
A BiocParallel object to run the computation in parallel |

FraserDataSet

1 2 3 | ```
# A generic dataset
fds <- makeSimulatedFraserDataSet()
fds <- injectOutliers(fds, minDpsi=0.2, freq=1E-3)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.