Here's a step-by-step guide to install A-SOiD:
Install Xcode Command Line Tools by running the following command in a terminal:
xcode-select --install
Continue with the steps below.
First, ensure you have Anaconda or Miniconda installed on your system.
- Anaconda: Download and install from Anaconda's website.
- Miniconda: Download and install from Miniconda's website.
Note: If you already have Anaconda or Miniconda installed, you can skip this step.
The following steps assume you have Anaconda or Miniconda installed and are using a terminal or command prompt.
How to start a terminal or command prompt: Link to Anaconda documentation
Step 2a and 2b are two different ways to download the repository. Choose one of the two options.
Either download the GitHub repository to your local machine by clicking the green "Code" button and selecting "Download ZIP" in the "Local" tab.
Then, unzip the downloaded file in your desired location.
OR use Git to clone the repository to your local machine.
git clone https://github.com/YttriLab/A-SOID.git
cd repository
After cloning or unzipping, navigate to the repository directory by using the cd
command.
For example, if the repository is located in path/to/repository
, use the following command:
cd path/to/repository
Note: Replace
path/to/repository
with the actual path to the repository.
Use Conda to create an environment from the .yml
file.
This will install the package and its dependencies into a new environment called asoid
.
conda env create -f asoid.yml
Note: This may take a few minutes to complete.
Some users (windows) might experience this issue with building hdbscan if they have not installed C++ build tools on their machine previously. The solution is to install Microsoft C++ build tools (see link) and restart this step. This might include removing the environment and recreating it (How to remove a conda environment)
Once the environment is created, activate it.
conda activate asoid
Note: You will need to activate the environment in each terminal in which you want to use it.
Start A-SOiD by running the following command:
asoid app
Note: This will open a new tab in your default browser. If it does not, copy the URL from the terminal and paste it into your browser.
(asoid) C:\Users\JSchw\PycharmProjects\A-SOID>conda activate asoid
(asoid) C:\Users\JSchw\PycharmProjects\A-SOID>asoid app
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://172.26.33.62:8501
Your browser should open to the following page (or something similar):
Note: The first time you run A-SOiD, it may take a few seconds to load.
- Updating the Environment: If the
.yml
file is updated, you can update your environment usingconda env update -f environment.yml
. - Troubleshooting: If you encounter issues, check the repository's
README
or GitHub issues for specific instructions or troubleshooting tips.