- Update release name, urls, and na_cutoff in code/current_release.R
- Update code/methods.md and supporting images
- Update
DMVER
in Makefile code/Makefile to match the new release name - PR and Merge the above changes
NOTE: If the dependencies used for data generation have changed you will need to wait for the image to finish buliding on dockerhub.
All these steps are done on a Slurm cluster.
You will need:
-
At least 4G of storage to run these steps.
-
A ddsclient config file to provide credentials to upload the data to a DukeDS project.
Clone this repo, change into the directory and create a directory to hold slurm logs:
git clone [email protected]:hirscheylab/ddh.git
cd ddh
mkdir logs
Create a file named config.sh
with the following contents (replacing TODO_NCBI_KEY with a valid key):
export DDH_BASE="."
SINGULARITY_BASE="${DDH_BASE}/singularity"
export SINGULARITY_TMPDIR="${SINGULARITY_BASE}/tmp"
export SINGULARITY_CACHEDIR="${SINGULARITY_BASE}/cache"
export SINGULARITY_IMAGEDIR="${SINGULARITY_BASE}/images"
export ENTREZ_KEY="TODO_NCBI_KEY"
Run build slurm job:
sbatch build-slurm.sh
After about 10 hours it should have finished.
View files in logs
directory.
Re-run build-slurm.sh if it failed.
After successful upload data to DukeDS:
sbatch upload-slurm.sh
You can now delete the ddh directory from the slurm cluster.
New data is downloaded into an volume used by the app by running an OpenShift job. To simplify creating these jobs there is an OpenShift Template.
From the OpenShift Web Console
where the project is deployed do the following:
- Make sure you have the
depmap
project selected. - Click
Add to Project v
in the top right corner of the screen. - Choose
Select from Project
- Select the
download-job-template
, ClickNext
, and ClickNext
again. - Enter the name of the quarterly release. This value must match the same case used in the filenames.
- Click
Create
. This will create a job that will run a pod to stage the data.
You can monitor the pod by looking for it in the Applications
-> Pods
window.
Once the job that is downloading data is complete re-deploy the application by:
Navigating to Applications
-> Deployments
-> ddh-shiny-app
then click Deploy
.