Convert venndir output to data.frame or kable format for visual review.

venndir_to_df(
  venndir_out,
  df_format = c("hits", "items", "wide"),
  return_type = c("data.frame", "kable"),
  trim_blanks = TRUE,
  wrap_width = 80,
  colorize_headers = TRUE,
  set_colors = NULL,
  item_type = "gene",
  add_counts = TRUE,
  verbose = FALSE,
  ...
)

Arguments

venndir_out

list output from venndir()

df_format

character string, default "hits" with output format:

  • "hits" - returns a hit matrix, with the first column containing item labels, subsequent columns indicate "hits" with 0 or +1 or -1.

  • "items" - returns one column for each overlap, containing item labels in each corresponding column. This output does not include the sign.

  • "wide" - returns one row for each overlap_set/sign combination, and a column "items" which is a list of character vectors with the item labels. Rows may be split for "word wrapping" when there are too many items. This output is intended for kable() formatting with grouped rows, for example with argument return_type="kable".

return_type

character string indicating how to format output:

  • "kable": returns an object "knitr_kable" suitable for printing as HTML or LaTeX. This output is recommended for RMarkdown documents.

  • "data.frame": returns a data.frame object without colorization.

trim_blanks

logical whether to remove rows with 0 items.

wrap_width

numeric maximum width for item text before it is word-wrapped. To disable word-wrapping use wrap_width=Inf.

colorize_headers

logical indicating whether to color the background of each header by the set_colors.

...

additional arguments are ignored.

Value

object of class "data.frame" or "knitr_kable" based upon argument return_type.

Details

Todo:

Examples

setlist <- venndir::make_venn_test(100, 3, do_signed=TRUE);
venndir_out <- venndir::venndir(setlist, overlap_type="each")

df <- venndir_to_df(venndir_out)
head(df, 10)
#>              gene set_A set_B set_C
#> item_042 item_042     1     0     0
#> item_057 item_057     1     0     0
#> item_026 item_026     1     0     0
#> item_083 item_083     1     0     0
#> item_036 item_036     1     0     0
#> item_078 item_078     1     0     0
#> item_032 item_032     1     0     0
#> item_084 item_084     1     0     0
#> item_023 item_023     1     0     0
#> item_067 item_067    -1     0     0

kdf <- venndir_to_df(venndir_out, return_type="kable")
kdf
#> <table class="table" style="margin-left: auto; margin-right: auto;">
#>  <thead>
#>   <tr>
#>    <th style="text-align:left;"> gene </th>
#>    <th style="text-align:right;"> set_A </th>
#>    <th style="text-align:right;"> set_B </th>
#>    <th style="text-align:right;"> set_C </th>
#>   </tr>
#>  </thead>
#> <tbody>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_042 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_057 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_026 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_083 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_036 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_078 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_032 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_084 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_023 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_067 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_043 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_014 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_009 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_007 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_099 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_015 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_096 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_063 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_013 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_082 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_038 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_034 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_021 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_047 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_095 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_016 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_039 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_081 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_006 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_031 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_093 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_076 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_053 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_025 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_097 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_069 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_089 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_027 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_086 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_060 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_050 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_091 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_090 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_041 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_079 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(0, 0, 0, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: transparent !important;">0</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: dodgerblue !important;">-1</span> </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_072 </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>    <td style="text-align:right;border-left:1px solid #DDDDDD;white-space: nowrap;"> <span style="     color: rgba(255, 255, 255, 255) !important;border-radius: 4px; padding-right: 4px; padding-left: 4px; background-color: rgba(205, 38, 38, 255) !important;">1</span> </td>
#>   </tr>
#> </tbody>
#> </table>

df2 <- venndir_to_df(venndir_out, df_format="items")
head(df2, 10)
#>    set_A (16 genes) set_A&set_B (8 genes) set_B (7 genes) set_B&set_C (0 genes)
#> 1          item_042              item_093        item_096                      
#> 2          item_057              item_076        item_063                      
#> 3          item_026              item_053        item_013                      
#> 4          item_083              item_025        item_082                      
#> 5          item_036              item_097        item_038                      
#> 6          item_078              item_069        item_034                      
#> 7          item_032              item_089        item_021                      
#> 8          item_084              item_027                                      
#> 9          item_023                                                            
#> 10         item_067                                                            
#>    set_C (7 genes) set_A&set_C (7 genes) set_A&set_B&set_C (1 gene)
#> 1         item_047              item_086                   item_072
#> 2         item_095              item_060                           
#> 3         item_016              item_050                           
#> 4         item_039              item_091                           
#> 5         item_081              item_090                           
#> 6         item_006              item_041                           
#> 7         item_031              item_079                           
#> 8                                                                  
#> 9                                                                  
#> 10                                                                 

kdf2 <- venndir_to_df(venndir_out, df_format="items", return_type="kable")
kdf2
#> <table class="table" style="margin-left: auto; margin-right: auto;">
#>  <thead>
#>   <tr>
#>    <th style="text-align:left;"> set_A (16 genes) </th>
#>    <th style="text-align:left;"> set_A&amp;set_B (8 genes) </th>
#>    <th style="text-align:left;"> set_B (7 genes) </th>
#>    <th style="text-align:left;"> set_B&amp;set_C (0 genes) </th>
#>    <th style="text-align:left;"> set_C (7 genes) </th>
#>    <th style="text-align:left;"> set_A&amp;set_C (7 genes) </th>
#>    <th style="text-align:left;"> set_A&amp;set_B&amp;set_C (1 gene) </th>
#>   </tr>
#>  </thead>
#> <tbody>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_042 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_093 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_096 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_047 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_086 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_072 </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_057 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_076 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_063 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_095 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_060 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_026 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_053 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_013 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_016 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_050 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_083 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_025 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_082 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_039 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_091 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_036 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_097 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_038 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_081 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_090 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_078 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_069 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_034 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_006 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_041 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_032 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_089 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_021 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_031 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_079 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_084 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_027 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_023 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_067 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_043 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_014 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_009 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_007 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_099 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;"> item_015 </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;">  </td>
#>   </tr>
#> </tbody>
#> </table>

df3 <- venndir_to_df(venndir_out, df_format="wide", return_type="data.frame")
df3
#>                               overlap_set  text            overlap_sign
#> set_A                               set_A    16                        
#> set_A.1                             set_A   ↑ 9             set_A|1 0 0
#> set_A.1.1                           set_A   ↑ 9             set_A|1 0 0
#> set_A.-1                            set_A   ↓ 7            set_A|-1 0 0
#> set_B                               set_B     7                        
#> set_B.1                             set_B   ↑ 4             set_B|0 1 0
#> set_B.-1                            set_B   ↓ 3            set_B|0 -1 0
#> set_C                               set_C     7                        
#> set_C.1                             set_C   ↑ 5             set_C|0 0 1
#> set_C.-1                            set_C   ↓ 2            set_C|0 0 -1
#> set_A&set_B                   set_A&set_B     8                        
#> set_A&set_B.1 1               set_A&set_B  ↑↑ 3       set_A&set_B|1 1 0
#> set_A&set_B.1 -1              set_A&set_B  ↑↓ 2      set_A&set_B|1 -1 0
#> set_A&set_B.-1 -1             set_A&set_B  ↓↓ 3     set_A&set_B|-1 -1 0
#> set_A&set_C                   set_A&set_C     7                        
#> set_A&set_C.1 1               set_A&set_C  ↑↑ 2       set_A&set_C|1 0 1
#> set_A&set_C.1 -1              set_A&set_C  ↑↓ 1      set_A&set_C|1 0 -1
#> set_A&set_C.-1 1              set_A&set_C  ↓↑ 1      set_A&set_C|-1 0 1
#> set_A&set_C.-1 -1             set_A&set_C  ↓↓ 3     set_A&set_C|-1 0 -1
#> set_B&set_C                   set_B&set_C     0                        
#> set_A&set_B&set_C       set_A&set_B&set_C     1                        
#> set_A&set_B&set_C.1 1 1 set_A&set_B&set_C ↑↑↑ 1 set_A&set_B&set_C|1 1 1
#>                                                                                                   items
#> set_A                                                                                                  
#> set_A.1                 item_023, item_026, item_032, item_036, item_042, item_057, item_078, item_083,
#> set_A.1.1                                                                                      item_084
#> set_A.-1                           item_007, item_009, item_014, item_015, item_043, item_067, item_099
#> set_B                                                                                                  
#> set_B.1                                                          item_013, item_063, item_082, item_096
#> set_B.-1                                                                   item_021, item_034, item_038
#> set_C                                                                                                  
#> set_C.1                                                item_016, item_039, item_047, item_081, item_095
#> set_C.-1                                                                             item_006, item_031
#> set_A&set_B                                                                                            
#> set_A&set_B.1 1                                                            item_053, item_076, item_093
#> set_A&set_B.1 -1                                                                     item_025, item_097
#> set_A&set_B.-1 -1                                                          item_027, item_069, item_089
#> set_A&set_C                                                                                            
#> set_A&set_C.1 1                                                                      item_060, item_086
#> set_A&set_C.1 -1                                                                               item_050
#> set_A&set_C.-1 1                                                                               item_091
#> set_A&set_C.-1 -1                                                          item_041, item_079, item_090
#> set_B&set_C                                                                                            
#> set_A&set_B&set_C                                                                                      
#> set_A&set_B&set_C.1 1 1                                                                        item_072

kdf3 <- venndir_to_df(venndir_out, df_format="wide", return_type="kable")
kdf3
#> <table class="table" style="margin-left: auto; margin-right: auto;">
#> <tbody>
#>   <tr grouplength="4"><td colspan="1" style="background-color: #EEC12EFF;color: #000000FF;color: rgba(0, 0, 0, 255) !important;background-color: rgba(238, 193, 46, 255) !important;"><strong>set_A</strong></td></tr>
#> <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #EEC12EFF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(238, 193, 46, 255) !important;"><strong>set_A   16</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(89, 0, 0, 255) !important;padding-left: 4em;" indentlevel="2">  </td>
#>   </tr>
#>   <tr grouplength="2"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #EEC12EFF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(238, 193, 46, 255) !important;"><strong>set_A   ↑ 9</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(167, 50, 50, 255) !important;padding-left: 4em;" indentlevel="2"> item_023, item_026, item_032, item_036, item_042, item_057, item_078, item_083, </td>
#>   </tr>
#>   <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(167, 50, 50, 255) !important;padding-left: 4em;" indentlevel="2"> item_084 </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #EEC12EFF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(238, 193, 46, 255) !important;"><strong>set_A   ↓ 7</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(0, 96, 191, 255) !important;padding-left: 4em;" indentlevel="2"> item_007, item_009, item_014, item_015, item_043, item_067, item_099 </td>
#>   </tr>
#>   <tr grouplength="3"><td colspan="1" style="background-color: #D54848FF;color: #FFFFFFFF;color: rgba(255, 255, 255, 255) !important;background-color: rgba(213, 72, 72, 255) !important;"><strong>set_B</strong></td></tr>
#> <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #FFFFFFFF ; background-color: #D54848FF ; text-indent: 1.2em;color: rgba(255, 255, 255, 255) !important;background-color: rgba(213, 72, 72, 255) !important;"><strong>set_B   7</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(89, 0, 0, 255) !important;padding-left: 4em;" indentlevel="2">  </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #FFFFFFFF ; background-color: #D54848FF ; text-indent: 1.2em;color: rgba(255, 255, 255, 255) !important;background-color: rgba(213, 72, 72, 255) !important;"><strong>set_B   ↑ 4</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(167, 50, 50, 255) !important;padding-left: 4em;" indentlevel="2"> item_013, item_063, item_082, item_096 </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #FFFFFFFF ; background-color: #D54848FF ; text-indent: 1.2em;color: rgba(255, 255, 255, 255) !important;background-color: rgba(213, 72, 72, 255) !important;"><strong>set_B   ↓ 3</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(0, 96, 191, 255) !important;padding-left: 4em;" indentlevel="2"> item_021, item_034, item_038 </td>
#>   </tr>
#>   <tr grouplength="3"><td colspan="1" style="background-color: #9F8DFFFF;color: #000000FF;color: rgba(0, 0, 0, 255) !important;background-color: rgba(159, 141, 255, 255) !important;"><strong>set_C</strong></td></tr>
#> <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #9F8DFFFF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(159, 141, 255, 255) !important;"><strong>set_C   7</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(89, 0, 0, 255) !important;padding-left: 4em;" indentlevel="2">  </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #9F8DFFFF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(159, 141, 255, 255) !important;"><strong>set_C   ↑ 5</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(167, 50, 50, 255) !important;padding-left: 4em;" indentlevel="2"> item_016, item_039, item_047, item_081, item_095 </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #9F8DFFFF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(159, 141, 255, 255) !important;"><strong>set_C   ↓ 2</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(0, 96, 191, 255) !important;padding-left: 4em;" indentlevel="2"> item_006, item_031 </td>
#>   </tr>
#>   <tr grouplength="4"><td colspan="1" style="background-color: #CE926CFF;color: #000000FF;color: rgba(0, 0, 0, 255) !important;background-color: rgba(206, 146, 108, 255) !important;"><strong>set_A&amp;set_B</strong></td></tr>
#> <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #CE926CFF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(206, 146, 108, 255) !important;"><strong>set_A&amp;set_B   8</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(89, 0, 0, 255) !important;padding-left: 4em;" indentlevel="2">  </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #CE926CFF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(206, 146, 108, 255) !important;"><strong>set_A&amp;set_B   ↑↑ 3</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(167, 50, 50, 255) !important;padding-left: 4em;" indentlevel="2"> item_053, item_076, item_093 </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #CE926CFF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(206, 146, 108, 255) !important;"><strong>set_A&amp;set_B   ↑↓ 2</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(171, 0, 162, 255) !important;padding-left: 4em;" indentlevel="2"> item_025, item_097 </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #CE926CFF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(206, 146, 108, 255) !important;"><strong>set_A&amp;set_B   ↓↓ 3</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(0, 96, 191, 255) !important;padding-left: 4em;" indentlevel="2"> item_027, item_069, item_089 </td>
#>   </tr>
#>   <tr grouplength="5"><td colspan="1" style="background-color: #79C0A0FF;color: #000000FF;color: rgba(0, 0, 0, 255) !important;background-color: rgba(121, 192, 160, 255) !important;"><strong>set_A&amp;set_C</strong></td></tr>
#> <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #79C0A0FF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(121, 192, 160, 255) !important;"><strong>set_A&amp;set_C   7</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(89, 0, 0, 255) !important;padding-left: 4em;" indentlevel="2">  </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #79C0A0FF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(121, 192, 160, 255) !important;"><strong>set_A&amp;set_C   ↑↑ 2</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(167, 50, 50, 255) !important;padding-left: 4em;" indentlevel="2"> item_060, item_086 </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #79C0A0FF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(121, 192, 160, 255) !important;"><strong>set_A&amp;set_C   ↑↓ 1</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(171, 0, 162, 255) !important;padding-left: 4em;" indentlevel="2"> item_050 </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #79C0A0FF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(121, 192, 160, 255) !important;"><strong>set_A&amp;set_C   ↓↑ 1</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(171, 0, 162, 255) !important;padding-left: 4em;" indentlevel="2"> item_091 </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #79C0A0FF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(121, 192, 160, 255) !important;"><strong>set_A&amp;set_C   ↓↓ 3</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(0, 96, 191, 255) !important;padding-left: 4em;" indentlevel="2"> item_041, item_079, item_090 </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="background-color: #D162B8FF;color: #FFFFFFFF;color: rgba(255, 255, 255, 255) !important;background-color: rgba(209, 98, 184, 255) !important;"><strong>set_B&amp;set_C</strong></td></tr>
#> <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #FFFFFFFF ; background-color: #D162B8FF ; text-indent: 1.2em;color: rgba(255, 255, 255, 255) !important;background-color: rgba(209, 98, 184, 255) !important;"><strong>set_B&amp;set_C   0</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(89, 0, 0, 255) !important;padding-left: 4em;" indentlevel="2">  </td>
#>   </tr>
#>   <tr grouplength="2"><td colspan="1" style="background-color: #BF92A2FF;color: #000000FF;color: rgba(0, 0, 0, 255) !important;background-color: rgba(191, 146, 162, 255) !important;"><strong>set_A&amp;set_B&amp;set_C</strong></td></tr>
#> <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #BF92A2FF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(191, 146, 162, 255) !important;"><strong>set_A&amp;set_B&amp;set_C   1</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(89, 0, 0, 255) !important;padding-left: 4em;" indentlevel="2">  </td>
#>   </tr>
#>   <tr grouplength="1"><td colspan="1" style="border-bottom: 1px solid; border-bottom-color: #000; color: #000000FF ; background-color: #BF92A2FF ; text-indent: 1.2em;color: rgba(0, 0, 0, 255) !important;background-color: rgba(191, 146, 162, 255) !important;"><strong>set_A&amp;set_B&amp;set_C   ↑↑↑ 1</strong></td></tr>
#> <tr>
#>    <td style="text-align:left;border-left:1px solid #DDDDDD;white-space: nowrap;color: rgba(167, 50, 50, 255) !important;padding-left: 4em;" indentlevel="2"> item_072 </td>
#>   </tr>
#> </tbody>
#> </table>