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
)

Arguments

input_df

A dataframe contains key and value(From get_combain_result())

bed_list

A list contains records of all bed files(Read by function get_beds())

decreasing

See UpSetR for details. Boolean value, Default: TRUE.

angles

The angle of main bar text, Default: 45.

text_scale

The scale of the text. Default: 0.65.

point_size

The point size. Default: 2.8.

line_size

The line width. Default: 1.

Value

Upset plot of intersection result

Examples

# 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"