Table of contents
- 1 Using cryoSPARC on AWS
- 2 cryoSPARC installation on AWS
Given cryoSPARC's licensing system, we are unable to distribute pre-installed software environments with cryoSPARC. Instead, users just need to follow a few easy setup steps with their personal license, and then you can use the software on AWS.
NOTE: The following assumes that you have already installed cryoem-cloud-tools.
Using cryoSPARC on AWS
After you have set up cryoSPARC (see below), you can use it in the following way on a day-to-day basis
Launch single GPU AWS instance with cryoSPARC volume
Launch AWS GPU instance p2.xlarge (1x K80 GPU) using EBS volume previously created with cryoSPARC installation:
$ awslaunch --instance=p2.xlarge --availZone=us-west-2a --volume=vol-0000000 --cryosparc
- IMPORTANT: You must specify
--cryosparcso that the code knows how to set up the instance for you
- Where vol-000000 was created below during cryoSPARC installation on AWS
- us-west-2a is the availability zone, can be changed depending on where you are running your jobs
Once launched, you will see the following text printed to the terminal:
To access cryoSPARC, type the following into the web browser used to launch instance:
Copy files to instance
Copy your data to AWS:
$ scp -i /path/to/keypair.pem /path/to/file*.mrcs email@example.com:/data/
- If RELION .star/mrcs files, make sure to include both types of files (.star & .mrcs)
Import through cryoSPARC website
To access cryoSPARC, navigate your web browser to the address printed after launch.
Which means that you need to copy and paste the URL printed to your terminal into your web browser. Note that this will setup access ONLY from the IP address from where you launched the instance.
Once everything is running, you can import your data by finding it within the directory:
Use cryoSPARC as they have described on their website.
Download output results (optional)
Make sure to download your results as they are generated.
Turn off instance
When finished for the morning/afternoon/evening, simply terminate the instance using the instance ID provided by the awsls command:
$ awskill i-00000000
- Don't worry, your data will be saved on the EBS volume. You can pick right back up where you left off by restarting the instance using the same EBS volume.
cryoSPARC installation on AWS
We cannot distribute cryoSPARC pre-installed on AWS, which means users need to first obtain the license file from cryoSPARC.
2. Install cryoSPARC on EBS volume
Using cryoem-cloud-tools, boot up a single GPU machine (p2.xlarge) with Ubuntu and other software pre-installed.
First, create an EBS volume that will be your cryoSPARC data storage repository and software installation directory:
$ aws_ebs_create 100 us-west-2a "cryoSPARC"
Then, using this EBS volume when launching the p2.xlarge instance:
$ awslaunch --instance=p2.xlarge --availZone=us-west-2a --volume=vol-0000000
- Note that I specified my availability zone us-west-2a. This will depend on which region & availability zone that you are using
You will be able to see the instance that you just booted up by typing the following to list just instances:
$ awsls -i
ssh into this instance:
$ ssh -X -i /path/to/keypair.pem firstname.lastname@example.org
Install cryoSPARC using the instructions provided.
Changes to make note of: