Skip to content

Commit

Permalink
Merge pull request #61 from MHH-RCUG/dev
Browse files Browse the repository at this point in the history
Uncomment temp directory code, solves container download problems
  • Loading branch information
tglomb authored Nov 10, 2020
2 parents dd0d425 + 2146713 commit b498f6b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions scrnaseq_app.R
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,9 @@ server = function(input, output, session) {
paste0(input$archive_download, ".zip")
},
content = function(file) {
# temporarily switch to the temp dir, in case you do not have write permission to the current working directory
# owd = setwd(tempdir())
# on.exit(setwd(owd))
#temporarily switch to the temp dir, in case you do not have write permission to the current working directory
owd = setwd(tempdir())
on.exit(setwd(owd))

# Idea to check if all devices are off on exit
# on.exit({
Expand Down
9 changes: 7 additions & 2 deletions singularity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ps -aux | grep R
kill <PID>
# Start container
singularity exec ../../scrnaseq_app.simg R -e "options('shiny.port'=3838,shiny.host='0.0.0.0'); shiny::runApp('/data/scrnaseq_app/scrnaseq_app.R')"
singularity exec ../../scrnaseq_app.simg R -e "options('shiny.port'=3838,shiny.host='0.0.0.0'); shiny::runApp('/data/scrnaseq_app/scrnaseq_app.R')"
```


Expand All @@ -56,8 +56,13 @@ singularity version
https://njstem.wordpress.com/2018/08/02/r-script-seurat-with-a-singularity-container-using-slurm/


### Dependencies : downloaded in script
### Dependencies : was previously downloaded in script
```
git clone https://github.com/MHH-RCUG/scrnaseq_app
wget https://owncloud.gwdg.de/index.php/s/rRawkhIOVe1T5qi/download
```


### Writable containers
-Just for sandbox directories for testing
-Instead, write images to directories which are bound into the container, eg /home/$USER, or /tmp
6 changes: 3 additions & 3 deletions singularity/singularity_app_recipe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ MirrorURL: http://de.archive.ubuntu.com/ubuntu/
#git checkout marius_changes


# download required example file
wget https://owncloud.gwdg.de/index.php/s/rRawkhIOVe1T5qi/download
mv download pbmc_2020-06-08.rds
# download required example file
#wget https://owncloud.gwdg.de/index.php/s/rRawkhIOVe1T5qi/download
#mv download pbmc_2020-06-08.rds



Expand Down

0 comments on commit b498f6b

Please sign in to comment.