Location: Cavatica (must be logged in)
- Go to Projects tab > Create a project.
- Enter a project name.
- On General information tab:
Set Billing group (e.g. Pilot Funds, DS3_2026) and Location (e.g. AWS (us-east-1).
Select 'Spot Instances' if desired. - On Advanced settings tab:
Select 'Allow network access'.
Important
If you do not allow network access you will be unable to install R packages or clone the code repository.
- Click Create.
- You should then be taken to the Dashboard for your new project.
You may want to edit the project description.
Location: INCLUDE Data Hub (must be logged in)
- Connect your INCLUDE and Cavatica accounts
Within the Data Hub, ensure you are (still) connected to Cavatica:
Dashboard > Cavatica Projects > Connect.
Important
You will need to have two-factor authentication enabled for your Cavatica account or you will get an error at this point.
- For this example, filter to HTP MSD data files (n = 477).
Data Exploration > Participant > Study Code = HTP.
Data Exploration > Biospecimen > Sample Type = Plasma.
Data Exploration > Data File > Experimental Strategy = Multiplex Immunoassay.
May want to save Filter... - Go to the Data Files tab: Select all files that you want to analyze (should be 477).
- Click on the Analyse in Cavatica button.
Select the Cavatica Project to which you want to copy files.
Click on Copy files.
Location: Cavatica
Important
Within Cavatica, ensure you are (still) connected to the INCLUDE Data Hub:
Account Settings > Dataset Access > INCLUDE DRS Server > Connect / Reconnect.
- Go to the project to which you copied the files.
The copied files should now be available in the Files tab.
Location: Cavatica
-
Start an Analysis instance.
a. New Analysis:
- Go to the Data Studio tab > Create new analysis.
- Set analysis name (e.g. "HTP linear regression").
- Select RStudio as your 'Environment' (JupyterLab is also available).
- Select an R version/image in 'Environment setup' (eg R 4.4.0 - BioC 3.19).
- Select Instance type, Attached Storage, Suspend Time (may affect cost).
- Click on Start and wait for instance to initialize.
b. Existing Analysis:
- Go to Data Studio tab.
- Click on Start and wait for instance to initialize (may take several minutes).
-
You should now be presented with an RStudio instance.
a. To create a new Project manually.
- Go to File > New Project... and set up your R project.
- Create directories as needed within your R project.
- Go to File > New File > R Script.
- Edit and save your R Script, and proceed with analysis as usual.
b. To create a new Project by cloning from Github.
- Go to File > New Project... > Version Control > Git.
- Enter Repository URL.
- May want to modify Project directory name.
- Click on Create Project.
- May need to enter Github Username and PAT.
- Once project opens in RStudio, in R console run
renv::init()to initialize project and install required packages (renv should already be available).
c. Previously created Analyses should resume with R Project already open in RStudio.
- If not, go to File > Open Project... > Select .Rproj file.
- Once project opens in RStudio, in R console run
renv::restore()to restore project and re-install required packages.
-
Open analysis R script(s) and work as usual.
-
Copy R Project to
/sbgenomics/output-files/for later access/download (see notes below).
Tip
-
Once Data Studio instances are terminated, after idle timeout or manually, the R environment does not persist (including any newly installed R packages). However, running
renv::restore()will reinstall packages from local project cache based onrenv.lockfile. -
Data Studio working dir is:
/sbgenomics/workspace
R Project working directory will usually be:
/sbgenomics/workspace/<R_PROJECT_NAME>
Files in these directories can be previewed, but not accessed, by clicking on the Analysis Name in the Data Studio tab. -
Cavatica Project Files (eg files transferred from INCLUDE Data Hub) can be accessed here:
/sbgenomics/project-files
This directory is read-only from within Data Studio -
To be accessible outside Data Studio, via the Files tab in your Cavatica Project, files will need to be copied to:
/sbgenomics/output-files/
Any files or dirs copied to this location will not be accessible until after the Data Studio instance is terminated.
Saving of these files upon terminationmaywill take several minutes. -
Clean up cache before stopping the analysis Enter in terminal:
sudo rm -rf ~/.cache/R/ && rm -rf ~/.local/share/This ensures a faster save process when stopping your analysis session. Now you can STOP the data studio session. -
How to get sample metadata:
Option 1:
In your Cavatica project, go to the Files tab, select the appropriate files, then click '...' (More actions) and select 'Generate metadata manifest (CSV or TSV)'.
A new manifest file containing metadata will appear in your files list.
Option 2:
On the INCLUDE Data hub, once you have selected data files, click on the Manifest button on the Data Files tab: Select all files that you want to analyze, and download the resulting file.
Next, go to the Participants tab: Select all Participants and click on the Download clinical data button, and download the resulting file.
Finally, upload these files to your Cavatica project.
