ComputeCE {GenRank} | R Documentation |
ComputeCE
returns ranks of the genes based on CE scores.
ComputeCE(file, PC = c("equal", "ngene", "custom"), cust.weights = NULL)
file |
A tab-delimited text file with a minimum of 2 columns. First column should contain gene names and second column should indicate the evidence type. |
PC |
A character string among 'equal', 'ngene' or 'custom' indicating the prior credibility. |
cust.weights |
An optional argument required when the PC='custom'. A numeric vector containing weights reflecting prior credibility. Should contain as many weights as the number of evidence types. |
If all the inputs are in the correct format as suggested, then the output will be a dataframe containing genes and their ranks based on CE scores.
input_file <- system.file("extdata","CE_toydata.txt",package="GenRank") CE_ranks <- ComputeCE(input_file,PC = "equal") evid.weight <- c(1,1,0.8,0.8,0.5,1) CE_ranks_cust <- ComputeCE(input_file,PC = "custom", cust.weights = evid.weight)