Protein complexes {.tabset}



active_tab <- list()

for(cl in c('omnipath','humap2')){
  active_tab[[cl]] <- F
}

if(NROW(onc_enrich_report[['data']][['protein_complex']][['omnipath']]) > 0){
  active_tab[['omnipath']] <- T
}else{
  if(NROW(onc_enrich_report[['data']][['protein_complex']][['humap2']]) > 0){
    active_tab[['humap2']] <- T
  }else{
    active_tab[['omnipath']] <- T
  }
}
if(active_tab[['omnipath']] == T){
  cat("")
  cat("#### OmniPath {.active}")
  cat("")
}else{
  cat("")
  cat("#### OmniPath")
  cat("")
}
htmltools::br()

stepsize <- 1
max_complex_members <- max(onc_enrich_report[['data']][['protein_complex']][['omnipath']]$num_target_members)
if(max_complex_members > 10){
  stepsize <- 2
}
if(max_complex_members > 20){
  stepsize <- 3
}

omnipath_complexes_df <- 
  crosstalk::SharedData$new(onc_enrich_report[['data']][['protein_complex']][['omnipath']])

crosstalk::bscols(
  list(
    crosstalk::filter_slider("num_target_members", "Minimum number of query set members in complex", 
                             omnipath_complexes_df, ~num_target_members, step = stepsize)
  )
)

htmltools::br()
DT::datatable(omnipath_complexes_df, 
              escape = F, 
              extensions=c("Buttons","Responsive"), 
              width = "100%",
              style = 'bootstrap',
              rownames = F,
              options=list(buttons = c('csv','excel'),
                           pageLength = 10,
                           bPaginate = T,
                           dom = 'Bfrtip')) |>
   DT::formatStyle("complex_name",
                  "complex_cancer_rank_score", 
                  color = "white", 
                  backgroundColor = DT::styleInterval(
                    onc_enrich_report[['config']][['complex']][['breaks']],
                    onc_enrich_report[['config']][['complex']][['colors']])
   )
cat('<br><br>\n <ul><li>  <i> <span style="font-size: 105%; padding: 3px; background-color:#989898; color:white">&nbsp;&nbsp;<b>NO GENES</b> in the query set associate with protein complexes found in the OmniPath database .&nbsp;&nbsp; </span></i></li></ul>',sep='\n')
cat('\n')
cat('<br><br>')


if(active_tab[['humap2']] == T){
  cat("")
  cat("#### hu.MAP v2.0 {.active}")
  cat("")
}else{
  cat("")
  cat("#### hu.MAP v2.0")
  cat("")
}
htmltools::br()

humap2_complexes_df <- 
  crosstalk::SharedData$new(onc_enrich_report[['data']][['protein_complex']][['humap2']])

crosstalk::bscols(
  list(
    crosstalk::filter_slider("num_target_members", "Number of query set members in complex", 
                             humap2_complexes_df, ~num_target_members)
  )
)

htmltools::br()

DT::datatable(humap2_complexes_df, 
              escape = F, 
              extensions=c("Buttons","Responsive"), 
              width = "100%",
              style = 'bootstrap',
              rownames = F,
              options=list(buttons = c('csv','excel'),
                           pageLength = 10,
                           bPaginate = T,
                           dom = 'Bfrtip')) |>


   DT::formatStyle("complex_name",
                  "complex_cancer_rank_score", 
                  color = "white", 
                  backgroundColor = DT::styleInterval(
                    onc_enrich_report[['config']][['complex']][['breaks']],
                    onc_enrich_report[['config']][['complex']][['colors']])
   )
cat('<br><br>\n <ul><li>  <i> <span style="font-size: 105%; padding: 3px; background-color:#989898; color:white">&nbsp;&nbsp;<b>NO GENES</b> in the query set associate with protein complexes established by the <b>hu.MAP v2.0</b> protein complex map .&nbsp;&nbsp; </span></i></li></ul>',sep='\n')
cat('\n')
cat('<br><br>')


{.unlisted .unnumbered .toc-ignore}

  Citation Note   : If you use the output of the Protein complexes module of oncoEnrichR in your research, please cite the following resources and tools as appropriate:





sigven/oncoEnrichR documentation built on Aug. 31, 2023, 8:05 a.m.