# Significance level computation in GSEA

### Description

Ccomputes a p-value for a gene set.

### Usage

1 | ```
significance(ES, ESnull, doplot = FALSE)
``` |

### Arguments

`ES` |
Observed enrichment score. |

`ESnull` |
Null distribution. |

`doplot` |
If |

### Details

Function that computes a p-value for a gene set given an enrichment score and a null distribution. Calculations are done separately for positive and negative enrichment scores. The function also returns normalised observed enrichment score and normalised null distribution for the gene set. In addition, a histogram over the normalised null distribution can be plotted.

### Value

`p.value ` |
p-value for the gene set. |

`NES ` |
Normalised observed enrichment score. |

`NESnull ` |
Normalised estimated null distribution. |

### Author(s)

Guro D\orum

### Examples

1 2 3 4 5 | ```
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
``` |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.