From bf7d3d746ab26e57f0d7a4f379d299f2390ab55b Mon Sep 17 00:00:00 2001
From: ssnn-airr <20683719+ssnn-airr@users.noreply.github.com>
Date: Mon, 6 May 2024 12:53:09 +0200
Subject: [PATCH] added logo and made esthetic changes to web
---
.Rbuildignore | 3 +-
.../templates/project/project_files/index.Rmd | 4 +-
.../templates/project/project_files/logo.png | Bin 1691 -> 0 bytes
.../templates/project/project_files/logo.svg | 145 ++++++++++++++++
inst/shiny-app/server.R | 161 ++++++++----------
inst/shiny-app/ui.R | 117 +++++++------
inst/shiny-app/www/logo.png | Bin 1498 -> 0 bytes
inst/shiny-app/www/logo.svg | 145 ++++++++++++++++
inst/shiny-app/www/repcred.css | 20 ++-
logo/logo.R | 46 +++++
profiling/profile.R | 47 +++++
11 files changed, 539 insertions(+), 149 deletions(-)
delete mode 100644 inst/rstudio/templates/project/project_files/logo.png
create mode 100644 inst/rstudio/templates/project/project_files/logo.svg
delete mode 100644 inst/shiny-app/www/logo.png
create mode 100644 inst/shiny-app/www/logo.svg
create mode 100644 logo/logo.R
create mode 100644 profiling/profile.R
diff --git a/.Rbuildignore b/.Rbuildignore
index 3fc8943..3370d5f 100644
--- a/.Rbuildignore
+++ b/.Rbuildignore
@@ -13,4 +13,5 @@ binder
docker
LICENSE
^.*\.code-workspace
-^R/\.repcred-package.R
\ No newline at end of file
+^R/\.repcred-package.R
+^logo
\ No newline at end of file
diff --git a/inst/rstudio/templates/project/project_files/index.Rmd b/inst/rstudio/templates/project/project_files/index.Rmd
index e5b12a8..5e88ae0 100644
--- a/inst/rstudio/templates/project/project_files/index.Rmd
+++ b/inst/rstudio/templates/project/project_files/index.Rmd
@@ -17,7 +17,9 @@ output:
toc:
scroll_highlight: yes
collapse: subsection
- depth: 4
+ depth: 4
+ before: |
+
download: yes
sharing: no
keep_md: true
diff --git a/inst/rstudio/templates/project/project_files/logo.png b/inst/rstudio/templates/project/project_files/logo.png
deleted file mode 100644
index 2749c1b96c8d7d0ddb90789c4c7e9a07f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!qD+T?9+e3Yq
z*C@W-bgHs@bJ(g)&uo8kH%Hc{&U|g+E^u6Fnu23XlUA3;!X}QjR+?gyw#a|}z;9XC
z8N;=+E8$6mgQQf-asGeo`*&|G3Z9%7WWZLk@5Z;|8Ui<1rA%-Cv)lIe80Uj}wsl{o
z?T=wkv-4cPb;}3A3)^{PVz!&4^6$9A$Tpwn<`mhJ{=p}nHhee!wT#E0fV*V<&b_AJ
z3x6>zS+V*EZ$SY^&r{9nyN~b2zTNw`dfCnU{F6J1wrDe*xehFi*pj^6T^Rm@;DWu&
zCj&(|3p^r=85sDEfH31!Z9ZwBAbW|YuPggw9%%s{VXcF~8-X#o(9^{+1XxmCas(D<
z9ES}K?0=rvB;VN*XYI))C&_7GJ44Qge;NDb=9dS*BvheramyrB;nD*#0=sDt!?D=|
zwYDGA1xOA`Ms*vKO!G^_!Q%=3WyjHj5y`1oJRuXsA;voILGg}$VEi$7y85}Sb4q9e
E0E%G}9smFU
diff --git a/inst/rstudio/templates/project/project_files/logo.svg b/inst/rstudio/templates/project/project_files/logo.svg
new file mode 100644
index 0000000..47b3e3f
--- /dev/null
+++ b/inst/rstudio/templates/project/project_files/logo.svg
@@ -0,0 +1,145 @@
+
+
diff --git a/inst/shiny-app/server.R b/inst/shiny-app/server.R
index b91adaa..4384055 100644
--- a/inst/shiny-app/server.R
+++ b/inst/shiny-app/server.R
@@ -1,90 +1,77 @@
server <- function(input, output) {
-
- original_help_text = "Repcred is an R program that allows you to see visually statistics and information about your repertoire."
- output$help_info <- renderText({paste("
Repcred
\n",original_help_text)})
-
-
- dataValues <- reactiveValues(
- repcred_report_path=NULL
- )
-
-
-
- observe({
-
- val= input$input_chk
-
- if(val==TRUE){
- output$condInput <- renderUI({ fileInput("genome", "Choose germline reference FASTA File",
- multiple = TRUE,
- accept = c("text/tab-separated-values",".fasta",".fna",".ffn",".frn",".fa","text/plain"))
- })
- }
-
- if(val==FALSE){
- output$condInput <- renderUI({})
- }
-
-
- })
-
- help_text="The repertoire file should contain the speficied rows as set out by the AIRR guidelines.Please be aware some stats will be unable to be run if there is missing data in some columns. This is mainly the sumrep stats , if there are specific stats you need makesure the related columns that are required are filled."
- help_text2 = "Many of the statistics can be run without a genome file but the genome file does allow missing genes to be pin pointed and gene usage to be analysed."
-
- observeEvent(input$help, {
- output$help_info <- renderText({paste("