Upset.jl Documentation

Index

Functions

Upset.plot_upsetFunction

plotupset(dictin)

Compute an upset plot giving a dictionary of lists. Each list in the dictionary is a list of the unique elements that are present in a set. Used for comparing presence of unique items across groups.

Requires that there exists more than one list in the dictionary in order to look for overlap.

Also requires that at least one list has one item present in it.

Examples


julia> a =    input_dict = Dict(
               "list1" => ['l','t','A','B'],
               "list2" => ['l','t','A','B','C','l'])

Dict{String, Vector{Char}} with 2 entries:
  "list1" => ['l', 't', 'A', 'B']
  "list2" => ['l', 't', 'A', 'B', 'C', 'l']

julia> result = plot_upset(a) 

2-element Vector{Any}:
 Plot{Plots.GRBackend() n=8}
Captured extra kwargs:
  Series{3}:
    series_annotations_align: right
  Series{4}:
    series_annotations_align: right

 Vector{Any}[[4, 1], ["list1", "list2", "list2"]]
source
Upset.to_presence_dictFunction

topresencedict(countmatrix, rownames)

Creates a presence dictionary from a counts matrix of different items. Given a count matrix with rows being groups and columns items calculate the a dictionary that has the items that are present within

Examples


julia> count_matrix = hcat([1,1,1],[0,1,1],[0,0,0])
3×3 Matrix{Int64}:
 1  0  0
 1  1  0
 1  1  0

julia> result = to_presence_dict(count_matrix, row_names) 
source