data = data.frame(GeneID=c("15364", "56520", "57781", "58180", "18035"),
source1scores=c(0.9,0.5,0.3,NA,NA),
source2scores=c(0.7,NA,0.8,0.6,0.5),
source3scores=c(0.5,NA,0.3,0.1,0.2))
data #dataframe with scores
aggregateRanks(data, n_valid_srcs=3, min_src=2, method='geom')
#note how gene 56520 is eliminated as it appeared in fewer than 2 sources
Run the code above in your browser using DataLab