knitr::opts_chunk$set(echo = FALSE, warning = FALSE)
options(DT.warn.size = FALSE)

VISPA2 stats info {data-orientation=rows}

iss_stats <- params$iss_stats
iss_stats_miss <- params$iss_stats_miss

Row1 {.tabset .tabset-fade}

Imported files summary

datatable(iss_stats,
          class = "stripe",
          filter = "top", 
          rownames = FALSE,
          options = list(
            order = list(list(3, 'asc')),
            scrollY = "450px",
            autoWidth = TRUE
          ), 
          colnames = c("ProjectID", 
                       "VISPA concatenate", 
                       "Path to stats folder",
                       "File found",
                       "Imported",
                       "Reason (if not imported)"))  |>
  formatStyle(columns = "Imported", 
              color = styleEqual(
                levels = c(TRUE, FALSE),
                values = c(found_color, not_found_color)
              ), fontWeight = "bold", textTransform = "uppercase")

About

Reasons why file import may fail:

Row2 {.tabset .tabset-fade}

Missing stats for samples

cat("*Nothing to report*")
iss_stats_miss <- iss_stats_miss |>
  dplyr::mutate(dplyr::across(
    tidyselect::vars_select_helpers$where(is.character), as.factor))

datatable(iss_stats_miss,
          class = "stripe",
          filter = "top", 
          rownames = FALSE,
          options = list(
            scrollY = "450px",
            autoWidth = TRUE
          ))


calabrialab/ISAnalytics documentation built on Nov. 2, 2023, 8:57 p.m.