⚙️Installation guide
How to install cryoSTAR on your computer?
Dear users,
We are thrilled to provide you with cryoSTAR, which is based on Python. However, to run this program, you should have the following requirements:
A high-performance Linux machine equipped with GPU
Knowledge of basic command line operations
Below, we would like to guide you through the steps of installing Miniconda, cloning the project using git
, and then installing the project using pip
. If you are very familiar with Linux, python environment, etc., you can directly jump to Install cryoSTAR.
Check GPU Availability
Before you start, remember that this program requires you to have a high-performance Linux machine in possession, which is equipped with a GPU. To confirm your machine is equipped with a GPU, you can use the nvidia-smi
command in your terminal. This produces a detailed snapshot of the current GPU state. Here's how you do it:
These details include the GPU name, total memory, memory used, and the current active processes utilizing the GPU. Here is an expected output:
In case you encounter an error message or no useful information coming out after running nvidia-smi
, it might indicate that no GPU is available on your machine. Here is an example of an error message:
Install Miniconda3
We strongly recommend using environment management software like conda
to keep your system environment resilient and organized. In particular, we advocate for the conda
environment manager. Below is a guide on installing Miniconda on a Linux system.
Go to Miniconda's official website to download the installer appropriate for your system. Once you've downloaded the installer, open your terminal, navigate to the location where the installer is saved, and run the following command to install Miniconda:
Please replace Miniconda3-latest-Linux-x86_64.sh
with the name of the file you downloaded. The installer will display a license agreement, which you have to agree to. Then you confirm the install location (or choose your own). You'll need to follow the prompts in the terminal to complete your installation.
After that, it is critical to initialize conda
to configure your shell to use conda
without any issues. This configuration will modify your shell scripts (like .bashrc
), which might change shell behavior.
If you are using the Bash shell, you can initialize conda
through the following command:
Install cryoSTAR
Configure the Conda Environment
Set up a new conda
environment named cryostar
using Python 3.9:
Activate the environment:
Download cryoSTAR
There are two approaches to downloading the cryoSTAR software. You can download through browser via this link and unzip the file to your machine. If your machine has git
installed, we recommend you download it by cloning the repository:
NOTE:
If you encounter an error message such as
git: command not found
, you may need to install thegit
software. We recommend trying this command first as it usually works for most users, particularly if your system is Ubuntu/Debian:sudo apt install git
. If it does not work, detailed installation guide can be found at this link.
Install CryoSTAR
Navigate into the cryostar
directory (or cryostar-master
if you download it through the browser) where you can find the file setup.py
:
Install cryostar
using pip
, the python package installer:
NOTE:
Please note the dot at the end of the installation command. It's crucial to input
pip install .
instead ofpip install
! The dot is not a typographical error; it refers to the current directory.Make sure you are in the directory where you can find the file
setup.py
!
🎊 Congratulations! You now have cryostar
installed in your machine. If your internet connection is good, the entire installation process will be completed within 10 minutes. If any issues arise during the installation, feel free to visit the post questions via github issues!
Last updated