localScore (version 1.0.6)

mcc: MCC [p-value] [iid]

Description

Calculates an approximated p-value for a given local score value and a medium to long sequence length in the identically and independantly distributed model

Usage

mcc(
  localScore,
  sequence_length,
  score_probabilities,
  sequence_min,
  sequence_max
)

Arguments

localScore

the observed local score

sequence_length

length of the sequence (up to one hundred)

score_probabilities

the probabilities for each unique score from lowest to greatest

sequence_min

minimum score

sequence_max

maximum score

Value

A double representing the probability of a local score as high as the one given as argument

Details

This methods is actually an improved method of Karlin and produces more precise results. It should be privileged whenever possible. As with karlin, the method works the better the longer the sequence.

Examples

Run this code
# NOT RUN {
mcc(40, 100, c(0.08, 0.32, 0.08, 0.00, 0.08, 0.00, 0.00, 0.08, 0.02, 0.32, 0.02), -6, 4)
mcc(40, 10000, c(0.08, 0.32, 0.08, 0.00, 0.08, 0.00, 0.00, 0.08, 0.02, 0.32, 0.02), -6, 4)
# }

Run the code above in your browser using DataLab