This function facilitates the generation of Upset plot based on the intersection results obtained from the get_beds() function and get_combine_result()
plotUpset(
input_df,
bed_list,
decreasing = T,
angles = 45,
text_scale = 0.65,
point_size = 2.8,
line_size = 1
)
A dataframe contains key and value(From get_combain_result())
A list contains records of all bed files(Read by function get_beds())
See UpSetR for details. Boolean value, Default: TRUE.
The angle of main bar text, Default: 45.
The scale of the text. Default: 0.65.
The point size. Default: 2.8.
The line width. Default: 1.
Upset plot of intersection result
# Get beds using get_beds
beds <- get_beds(c('path1', 'path2', ... ))
#> Error in parse_bedpath(bedpaths, pattern = pattern): '...' used in an incorrect context
# Use get_combine_result() to get intersection result
# The processing time may vary depending on the number of sets involved
inputs <- get_combine_result(beds)
#> Error in eval(expr, envir, enclos): object 'beds' not found
draw_upset(inputs, beds)
#> Error in draw_upset(inputs, beds): could not find function "draw_upset"