This function facilitates the generation of Venn plot based on the intersection results obtained from the get_beds() function and get_combine_result()

plotVenn(
  input_df,
  bed_list,
  colors = c("#4E79A7FF", "#F28E2BFF", "#E15759FF", "#76B7B2FF", "#59A14FFF",
    "#EDC948FF", "#B07AA1FF"),
  opacity = 0.8,
  plotsize = 15
)

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())

colors

Color list. Default: Tableau_10

opacity

Degree of opacity for the color(s) specified with colors (less opacity, more transparency). Default: 0.8

plotsize

Default: 15

Value

Ggplot object of venn

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_venn(inputs, beds)
#> Error in draw_venn(inputs, beds): could not find function "draw_venn"