Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Astrocyte Container Images
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Astrocyte
Astrocyte Container Images
Commits
4609717a
There was an error fetching the commit references. Please try again later.
Commit
4609717a
authored
2 years ago
by
Peng Lian
Browse files
Options
Downloads
Patches
Plain Diff
Update vizapp scripts
parent
0be5f8ca
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/run_vizapp.sh
+1
-1
1 addition, 1 deletion
R/run_vizapp.sh
R/run_vizapp_singularity.sh
+4
-2
4 additions, 2 deletions
R/run_vizapp_singularity.sh
with
5 additions
and
3 deletions
R/run_vizapp.sh
100644 → 100755
+
1
−
1
View file @
4609717a
...
...
@@ -35,7 +35,7 @@ for lib in $VIZAPP_LIBS; do
-v
${
VIZAPP_HOME
}
:
${
VIZAPP_INSIDE
}
\
-e
R_LIBS
=
${
R_LIBS_INSIDE
}
\
-e
outputDir
=
${
outputDir
}
\
${
IMAGE_NAME
}
R
-e
"install.packages('
$lib
', lib='
$R_LIBS_INSIDE
')"
${
IMAGE_NAME
}
R
-e
"
if (!require('
$lib
', character.only=TRUE)) {
install.packages('
$lib
',
dependencies=TRUE,
lib='
$R_LIBS_INSIDE
')
}
"
done
# run vizapp on localhost
...
...
This diff is collapsed.
Click to expand it.
R/run_vizapp_singularity.sh
100644 → 100755
+
4
−
2
View file @
4609717a
...
...
@@ -29,11 +29,13 @@ mkdir -p ${VIZAPP_HOME}/.rlibrary
singularity_image
=
r_
${
R_VERSION
}
.sif
# pull the container to a local image
singularity pull
${
singularity_image
}
docker://
$IMAGE_NAME
if
[
!
-e
${
singularity_image
}
]
;
then
singularity pull
${
singularity_image
}
docker://
$IMAGE_NAME
fi
# install vizapp libs to customize folder
for
lib
in
$VIZAPP_LIBS
;
do
SINGULARITYENV_R_LIBS
=
${
R_LIBS
}
SINGULARITYENV_outputDir
=
${
outputDir
}
singularity
exec
${
singularity_image
}
R
-e
"install.packages('
$lib
', lib='
$
{
R_LIBS
}
')"
SINGULARITYENV_R_LIBS
=
${
R_LIBS
}
SINGULARITYENV_outputDir
=
${
outputDir
}
singularity
exec
${
singularity_image
}
R
-e
"
if (!require('
$lib
', character.only=TRUE)) {
install.packages('
$lib
',
dependencies=TRUE,
lib='
$R_LIBS
')
}
"
done
# run vizapp on localhost
...
...
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