-
Notifications
You must be signed in to change notification settings - Fork 6
/
setglobs.R
83 lines (71 loc) · 2.99 KB
/
setglobs.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Logged = FALSE
Uname <- "Anonymous"
values <- reactiveValues(authentication = Uname)
countFile <- reactiveValues(val=NULL)
GeneNames <- reactiveValues(val=NULL)
Featuresobject <- reactiveValues(val=NULL)
GeneListglob <- reactiveValues(val=NULL)
DownloadPlot <- reactiveValues(val=NULL)
CoExprValue <- reactiveValues(val=NULL)
GenesAbsent <- reactiveValues(val=NULL)
QCfilter <- reactiveValues(val=NULL)
SummaryInfo <- reactiveValues(val=NULL)
PCAClustGlob <- reactiveValues(val=NULL)
PCAClusters <- reactiveValues(val=NULL)
mode <- reactiveValues(n=1,m=1,l=1)
seuratObject <- reactiveValues(val=NULL)
countFileQC <- reactiveValues(val=NULL)
tSNEmatrix <- reactiveValues(val=NULL)
dimPkg <- reactiveValues(val="UMAP")
tSNE3D <- reactiveValues(val=NULL)
scObject <- reactiveValues(val=NULL)
ClusterLabInfo <- reactiveValues(val=NULL)
dfcluster.ids <- reactiveValues(val=NULL)
countRds <- reactiveValues(val=NULL)
scObjAllmarkers <- reactiveValues(val=NULL)
Allmarkers <- reactiveValues(val=NULL)
DistinguishMarkers <- reactiveValues(val=NULL)
ClusterMarkers <- reactiveValues(val=NULL)
Clusters <- reactiveValues(val=NULL)
theme_set(theme_classic())
#options(shiny.maxRequestSize = 6000*1024^2)
options(shiny.maxRequestSize=10000*1024^2)
## options for knitting/rendering rmarkdown chunks
knitr::opts_chunk$set(echo = FALSE, comment = NA, cache = FALSE,
message = FALSE, warning = FALSE)
## function to render .md files to html
inclMD <- function(path)
markdown::markdownToHTML(path, fragment.only = TRUE, options = "", stylesheet = "")
inclRmd <- function(path, r_env = parent.frame()) {
paste(readLines(path, warn = FALSE), collapse = '\n') %>%
knitr::knit2html(text = ., fragment.only = TRUE, envir = r_env, options = "",
stylesheet = "") %>%
gsub("<!--/html_preserve-->","",.) %>% ## knitr adds this
gsub("<!--html_preserve-->","",.) %>% ## knitr adds this
HTML
# %>% tagList(., getdeps())
}
## make html table
make_table <- function(dat, width = "50%")
knitr::kable(dat, align = "c", format = "html",
table.attr = paste0("class='table table-condensed table-hover' style='width:", width, ";'"))
fixUploadedFilesNames <- function(x) {
if (is.null(x)) {
return()
}
oldNames = x$datapath
newNames = file.path(dirname(x$datapath),
x$name)
file.rename(from = oldNames, to = newNames)
x$datapath <- newNames
x
}
# Packages
pkgs <- c("threejs_0.3.1","apputils_0.5.1","Seurat_2.2.1","rmarkdown_1.9",
"stringr_1.3.0","data.table_1.10.4-3","ggrepel_0.7.0","cowplot_0.9.2",
"gridExtra_2.3","formattable_0.2.0.1","ggjoy_0.4.0","ggridges_0.4.1",
"psych_1.7.8","evaluate_0.10.1","ggthemes_3.4.0","igraph_1.1.2","pryr_0.1.4",
"plotly_4.7.1","ggplot2_2.2.1","Matrix_1.2-12","nycflights13_0.2.2","knitcitations_1.0.8",
"kableExtra_0.7.0","knitr_1.20","dplyr_0.7.4","usethis_1.3.0","devtools_1.13.5.9000",
"DT_0.4","shinyjs_1.0","shinycssloaders_0.2.0","shinydashboard_0.6.1.9000","shinyBS_0.61",
"shiny_1.0.5.9000")