tdayris/fair_genome_indexer

Download and index Ensembl sequences and annotations, remove non-canonical chromosimes, remove low TSL, index with multiple tools

Overview

Topics: ensembl fair snakemake snakemake-workflow snakemake-wrappers

Latest release: 3.9.7, Last update: 2025-03-07

Linting: linting: passed, Formatting:formatting: passed

Deployment

Step 1: Install Snakemake and Snakedeploy

Snakemake and Snakedeploy are best installed via the Mamba package manager (a drop-in replacement for conda). If you have neither Conda nor Mamba, it is recommended to install Miniforge. More details regarding Mamba can be found here.

When using Mamba, run

mamba create -c conda-forge -c bioconda --name snakemake snakemake snakedeploy

to install both Snakemake and Snakedeploy in an isolated environment. For all following commands ensure that this environment is activated via

conda activate snakemake

Step 2: Deploy workflow

With Snakemake and Snakedeploy installed, the workflow can be deployed as follows. First, create an appropriate project working directory on your system and enter it:

mkdir -p path/to/project-workdir
cd path/to/project-workdir

In all following steps, we will assume that you are inside of that directory. Then run

snakedeploy deploy-workflow https://github.com/tdayris/fair_genome_indexer . --tag 3.9.7

Snakedeploy will create two folders, workflow and config. The former contains the deployment of the chosen workflow as a Snakemake module, the latter contains configuration files which will be modified in the next step in order to configure the workflow to your needs.

Step 3: Configure workflow

To configure the workflow, adapt config/config.yml to your needs following the instructions below.

Step 4: Run workflow

The deployment method is controlled using the --software-deployment-method (short --sdm) argument.

To run the workflow with automatic deployment of all required software via conda/mamba, use

snakemake --cores all --sdm conda

To run the workflow using a combination of conda and apptainer/singularity for software deployment, use

snakemake --cores all --sdm conda apptainer

Snakemake will automatically detect the main Snakefile in the workflow subfolder and execute the workflow module that has been defined by the deployment in step 2.

For further options such as cluster and cloud execution, see the docs.

Step 5: Generate report

After finalizing your data analysis, you can automatically generate an interactive visual HTML report for inspection of results together with parameters and code inside of the browser using

snakemake --report report.zip

Configuration

The following section is imported from the workflow’s config/README.md.

This pipeline requires two configuration file:

config.yaml

A standard Snakemake configuration, yaml-formatted file containing only one key: genomes, which value is the path to a file containing the list of genomes to download as described below.

Example:

genomes: config/genomes.csv

A complete list of accepted keys is available in schemas, with their default value, expected type, and human readable description.

genomes.csv

A CSV-formatted text file containing the following mandatory columns:

  • species: The species name, according to Ensembl standards
  • build: The corresponding genome build, according to Ensembl standards
  • release: The corresponding genome release, according to Ensembl standards

Example:

species,build,release
homo_sapiens,GRCh38,110
mus_musculus,GRCm38,99
mus_musculus,GRCm39,110

A complete list of accepted keys is available in schemas, with their default value, expected type, and human readable description.

While CSV format is tested and recommended, this workflow uses python csv.Sniffer() to detect column separator. Tabulation and semicolumn are also accepted as field separator. Remember that only comma-separator is tested.

Linting and formatting

Linting results

None

Formatting results

None