Learn R Programming

RTIGER (version 2.1.0)

optimize_R: Find the otimum R value for a given data set

Description

Find the otimum R value for a given data set

Usage

optimize_R(object,
max_rigidity = 2^9, average_coverage = NULL, crossovers_per_megabase = NULL,
save_it = FALSE, savedir = NULL)

Value

A value with the optimum rigidity for the data set.

Arguments

object

an RTIGER object

max_rigidity

R values will be explored up the value given in this parameter. Default = 2^9

average_coverage

For conservative results set it to the lowest average coverage of a sample in your experiment, or evne to the lowest average coverage in a (sufficiently large) region in one of your samples. The lower the value, the more conservative (higher) our estimates of the false positive segments rates. If it is not provided it will be computed as the average of all data points.

crossovers_per_megabase

For conservative results set it to the highest ratio of a sample in your experiment. The higher the value, the more conservative (higher) our estimates of the false positive segments rates. If it is not provided it will be computed as the average of all samples.

save_it

logical values if the results should be saved. Plots might be complicated to interpret. We suggest to read the manuscript to understand them (https://doi.org/10.1093/plphys/kiad191)

savedir

if results are saved, in which directory.

Examples

Run this code

data("fittedExample")
bestR = optimize_R(myDat)

Run the code above in your browser using DataLab