Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PvSeroTAT RShiny App
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas OBADIA
PvSeroTAT RShiny App
Commits
4b9a1527
Commit
4b9a1527
authored
3 years ago
by
Thomas OBADIA
Browse files
Options
Downloads
Patches
Plain Diff
Mandatory switch to Unix line endings for all 3 .R files before doing any more changes
parent
295365df
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
FUNCTIONS.R
+1708
-1708
1708 additions, 1708 deletions
FUNCTIONS.R
RUN_PvSeroTAT.R
+89
-89
89 additions, 89 deletions
RUN_PvSeroTAT.R
SHINY_APP.R
+894
-894
894 additions, 894 deletions
SHINY_APP.R
with
2691 additions
and
2691 deletions
FUNCTIONS.R
+
1708
−
1708
View file @
4b9a1527
This diff is collapsed.
Click to expand it.
RUN_PvSeroTAT.R
+
89
−
89
View file @
4b9a1527
#########################################################
#########################################################
#########################################################
#########################################################
### ###
### ###
### PvSeroTAT ###
### PvSeroTAT ###
### R Shiny App Script ###
### R Shiny App Script ###
### WEHI and Institut Pasteur ###
### WEHI and Institut Pasteur ###
### ###
### ###
#########################################################
#########################################################
#########################################################
#########################################################
#########################
#########################
### CHECK ENVIRONMENT ###
### CHECK ENVIRONMENT ###
#########################
#########################
# Check that current working directory is where all the shiny app files are located
# Check that current working directory is where all the shiny app files are located
getwd
()
getwd
()
# If the working directory is incorrect, either
# If the working directory is incorrect, either
# 1) Close R Studio and re-open this file (that should be in the correct directory)
# 1) Close R Studio and re-open this file (that should be in the correct directory)
# 2) Set the working directory i.e. setwd(path)
# 2) Set the working directory i.e. setwd(path)
######################
######################
### CHECK PACKAGES ###
### CHECK PACKAGES ###
######################
######################
# List of required packaged to run app
# List of required packaged to run app
required_packages
=
c
(
"readxl"
,
"drc"
,
"dplyr"
,
"tidyr"
,
"plyr"
,
"shiny"
,
"ggplot2"
,
required_packages
=
c
(
"readxl"
,
"drc"
,
"dplyr"
,
"tidyr"
,
"plyr"
,
"shiny"
,
"ggplot2"
,
"shinythemes"
,
"stringr"
,
"ROCR"
,
"gplots"
,
"caTools"
,
"randomForest"
,
"shinythemes"
,
"stringr"
,
"ROCR"
,
"gplots"
,
"caTools"
,
"randomForest"
,
"forcats"
,
"kernlab"
)
"forcats"
,
"kernlab"
)
# Check if any new packages need to be installed
# Check if any new packages need to be installed
new_packages
=
required_packages
[
!
(
required_packages
%in%
installed.packages
()[,
"Package"
])]
new_packages
=
required_packages
[
!
(
required_packages
%in%
installed.packages
()[,
"Package"
])]
# If any are missing, they will be installed
# If any are missing, they will be installed
if
(
length
(
new_packages
))
install.packages
(
new_packages
)
if
(
length
(
new_packages
))
install.packages
(
new_packages
)
# Note: this section only needs to be read in once so you can comment these lines after the first run
# Note: this section only needs to be read in once so you can comment these lines after the first run
###########
###########
### SVM ###
### SVM ###
###########
###########
# Please contact developers how to use this model and how to interpret results
# Please contact developers how to use this model and how to interpret results
#####################
#####################
### LOAD PACKAGES ###
### LOAD PACKAGES ###
#####################
#####################
library
(
readxl
)
library
(
readxl
)
library
(
drc
)
library
(
drc
)
library
(
dplyr
)
library
(
dplyr
)
library
(
tidyr
)
library
(
tidyr
)
library
(
plyr
)
library
(
plyr
)
library
(
shiny
)
library
(
shiny
)
library
(
ggplot2
)
library
(
ggplot2
)
library
(
shinythemes
)
library
(
shinythemes
)
library
(
stringr
)
library
(
stringr
)
library
(
ROCR
)
library
(
ROCR
)
library
(
gplots
)
library
(
gplots
)
library
(
caTools
)
library
(
caTools
)
library
(
randomForest
)
library
(
randomForest
)
library
(
forcats
)
library
(
forcats
)
library
(
kernlab
)
library
(
kernlab
)
#########################
#########################
### RUN PVSEROTAT APP ###
### RUN PVSEROTAT APP ###
#########################
#########################
# This line will run the PvSeroTat Shiny App by opening and running the script SHINY_APP.R
# This line will run the PvSeroTat Shiny App by opening and running the script SHINY_APP.R
# Either run this script manually or click on Run App (on the upper right ^)
# Either run this script manually or click on Run App (on the upper right ^)
# Do not modify SHINY_APP.R unless asked to by the developer.
# Do not modify SHINY_APP.R unless asked to by the developer.
# Once this line is run, the app window will be opened.
# Once this line is run, the app window will be opened.
runApp
(
'SHINY_APP.R'
)
runApp
(
'SHINY_APP.R'
)
# Enter all of the necessary information on the app and hit the submit button.
# Enter all of the necessary information on the app and hit the submit button.
# The progress of the analysis will be shown here on R in the console below.
# The progress of the analysis will be shown here on R in the console below.
# If any errors arise, they will be shown here on R in the console below.
# If any errors arise, they will be shown here on R in the console below.
# Once you opn the window and run one analysis, you can modify what is necessary on the app
# Once you opn the window and run one analysis, you can modify what is necessary on the app
# and run the analysis as many times as you would like.
# and run the analysis as many times as you would like.
# The output folders of the results will be indicated.
# The output folders of the results will be indicated.
This diff is collapsed.
Click to expand it.
SHINY_APP.R
+
894
−
894
View file @
4b9a1527
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment