Description Usage Arguments Value Author(s) See Also Examples

View source: R/post_analysis.R

Returns a set of quantiles in indicating the scores reached by given proportions of the GO terms.

This function can also be used on the output of `subset_scores()`

function as it returns a value formatted identically to the output of the
`GO_analyse()`

function.

1 2 | ```
quantiles_scores(result, probs=c(0.9, 0.95, 0.99, 0.999, 0.9999),
quartiles=FALSE)
``` |

`result` |
The output of |

`probs` |
Numeric vector of probabilities with values in [0,1]. (Values up
to 2e-14 outside that range are accepted and moved to the nearby
endpoint.) See |

`quartiles` |
A numeric vector of the percentiles for which the scores are desired. |

A named vector of percentiles and corresponding scores.

Kevin Rue-Albrecht

Method `quantile`

.

1 2 3 4 5 6 7 8 9 10 | ```
# load the sample output data with p.values computed
data(AlvMac_results.pVal)
# filter for Biological Processes associated with 5+ genes and <=0.05 P-value
filtered_results <- subset_scores(
result=AlvMac_results.pVal, total_count=5, p.val=0.05,
namespace="BP")
# Quantiles of scores
quantiles_scores(result=filtered_results)
``` |

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.