ggCaller installation
By Raymond Cheng & Lale Maouloud
Prerequisites
Before you begin, make sure your system meets the following requirements:
- Operating System: Linux (recommended) or macOS.
- Compiler: GCC (GNU Compiler Collection) version 4.8 or higher.
- CMake: Version 3.1.0 or later.
- Git: Version 2.0 or later.
- Python: Version 3.6 or later.
- Pip: Python package installer.
- Basic familiarity with the command line interface.
Please download the example fasta files from this link. These fasta files will be the input of ggCaller.
Installing ggCaller from Source
Installing ggCaller from source ensures that you have the most up-to-date version, tailored to your specific operating system. This tutorial will guide you through the installation process, from setting up your environment to verifying the successful installation.
To install ggCaller from source, you first need to set up your environment with the required packages, which are listed in either environment_linux.yml or environment_macOS.yml based on your OS. You’ll also need a C++17 compiler, such as gcc version 7.3 or higher. After setting up the environment using Conda, clone the ggCaller repository and install it with Python setup tools.
Overview
- Clone the ggCaller repository with a recursive flag to include submodules.
- Create and activate a Conda environment using the provided YAML file.
- Install ggCaller using Python setup.
Step-by-Step Guide
Step 1: Clone ggCaller Repository
- Open a terminal window.
- Execute the command below to clone the ggCaller repository from GitHub:
git clone --recursive https://github.com/samhorsfield96/ggCaller && cd ggCaller
This command downloads the latest version of ggCaller to your local machine and moves you into the ggCaller
directory.
Step 2: Create and Activate a Conda Environment
- To create a new environment and install the necessary dependencies, execute:
For Linux users:
conda env create -f environment_linux.yml
For macOS users:
conda env create -f environment_macOS.yml
You will see the following messages:
- Activate the newly created Conda environment:
conda activate ggc_env
You will see the following messages:
Step 3: Install ggCaller
- With the environment set up and activated, you can now install ggCaller. Run the setup script by executing:
python setup.py install
You will see the following messages:
Step 4: Verify Installation
To ensure ggCaller is correctly installed:
- Open a new terminal window.
- Check the installation by running:
ggcaller --version
You will see the following messages:
If you wish to view the ggCaller help message and confirm it’s ready for use, type:
ggcaller -h
You should see the ggCaller help message, indicating a successful installation.
Congratulations! You’ve successfully installed ggCaller from source. You’re now ready to use this powerful tool for your genomic analysis.
Installing ggCaller with Docker
Installing ggCaller with Docker avoid software dependency problem, as the docker image encapsulates applications and their dependencies needed, ensuring consistency across different environments.
Step1: Download Docker Desktop (Mac):
Go to the Docker Desktop for Mac page on the Docker website. Click the “Download from Docker Hub” button to download the Docker Desktop installer
Install Docker Desktop: Open the downloaded .dmg file to mount the Docker Desktop disk image. Drag the Docker icon to the Applications folder.
Run Docker Desktop: Open Docker Desktop from your Applications folder.
Configure Resources (Optional): In the Docker Desktop preferences, you can configure resources such as CPU, memory, and disk space allocated to Docker containers. Adjust these settings based on your system resources.
Start Docker Desktop: Click the Docker Desktop icon in your Applications folder to start Docker. The Docker icon in the menu bar indicates that Docker is running.
Verify Installation: To verify that Docker is installed and running, open Terminal and run the following commands:
docker --version
You will see the following messages:
Step2: Download ggcaller by Docker
- Download ggCaller docker image
docker pull samhorsfield96/ggcaller:latest
You will see the following messages:
- check the image is downloaded properly, list the downloaded images
docker images
You will see the following messages:
Step3: Run ggcaller Gene-calling mode
Prepare input files: Create a directory and place all the assembly files (.fasta or .fa) that you want to analyse in the directory
In the directory with fasta files, generate a input.txt file listing all the filenames of the assembly files
ls -d -1 *.fa > input.txt
- Run ggCaller gene-calling
docker run --rm -it -v $(pwd):/workdir samhorsfield96/ggcaller:latest ggcaller --refs input.txt
without specifying the output directory name, you will expect to see a new directory called ggCaller_output
storing the output files:
Congratulations! You’ve successfully installed ggCaller with Docker. You’re now ready to use this powerful tool for your genomic analysis.
More information about ggCaller
For more information about ggCaller, please refer to ggCaller documentation here. You can also find a nice and succinct introduction of ggCaller here.