ComputeRP: Convergent evidence based on rank product method.

Description Usage Arguments Value Examples

Description

ComputeRP returns ranks of the genes based on rank product method.

Usage

1
ComputeRP(file, signif.type, n.perm = 100, setseed = NULL)

Arguments

file

A tab-delimited text file with a minimum of 3 columns. First column should contain gene names, second column should indicate the evidence type and third column should contain non-negative numeric values (e.g. p-values or effect size).

signif.type

A vector containing letters 'L' or 'H' or both. Length of the vector should be the same as the number of evidence types. 'L' or 'H' indicate whether the evidence type contains a low numeric value (e.g. p-value) or a high numeric value (e.g. effect size).

n.perm

A number indicating number of permutations used to calculate null density. Defaults to 100 permutations.

setseed

An optional argument. If provided a numeric value, sampling will be put in a reproducible state using the setseed value as seed.

Value

If all the inputs are in the correct format as suggested, then the output will be a dataframe containg genes, their ranks based on RP and corresponding pfp (equivalent to FDR).

Examples

1
2
3
4
input_file <- system.file("extdata","CE_RP_toydata.txt",package="GenRank")
signif.val <- c('L','L','H','L','H','L')
RP_ranks <- ComputeRP(input_file, signif.type = signif.val)
RP_ranks_cust <- ComputeRP(input_file, signif.type = signif.val, n.perm=200, setseed=1234)

KanduriC/GenRank documentation built on May 8, 2019, 4:42 p.m.