listComparison as output of function compareLists. The user has to specify the maximum rank to be considered to receive the intersecting set up to this rank.
getOverlap(x, max.rank = NULL, percent = 0.95)
"plot"(x, which="overlap", no.title=FALSE, no.legend=FALSE, list.name1="List 1", list.name2="List 2", ...)listComparison. percent=0.95. To get the full list of genes, set percent=1. compareLists.compareLists.listComparisonOverlap is returned. It contains the following
list elements:
percent to the overall similarity score.listComparisonOverlap objects. The plot
method takes a parameter which to specify whether "overlap" or
"scores" is to be drawn.
compareLists returns a list comparison for several choices of alpha. The number of genes to be taken into account differs dependent on alpha. One might now want to fix the number of genes and receive the resulting set of intersecting list identifiers. To this end, the user chooses a maximum rank to be considered from the values in column 'Genes' of the listComparison object. The direction (original or reversed) will internally be set to the direction yielding the higher similarity score.If two.sided was TRUE, the first max.rank IDs on top of the lists and the first max.rank identifiers at the end of the lists are considered. If two.sided was FALSE, only the max.rank top identifiers are evaluated for overlap.
OrderedList, compareLists ### Compare two artificial lists with some overlap
data(OL.data)
list1 <- as.character(OL.data$map$prostate)
list2 <- c(sample(list1[1:500]),sample(list1[501:1000]))
x <- compareLists(list1,list2)
x
getOverlap(x)
Run the code above in your browser using DataLab