Installing NovaScope¶
Installing NovaScope involves multiple steps. This document provides instructions on how to install the necessary software tools and obtain reference datasets.
Installing Snakemake¶
Snakemake orchestrates the workflow of NovaScope pipeline.
Checking Snakemake Installation¶
If you are unsure whether Snakemake is installed in your system or not, you can check by running the following command:
1 |
|
In some systems that supports module
, you may be able to load the snakemake
module using the following command:
1 2 3 4 5 |
|
Installing Snakemake Using Conda and Mamba¶
If you need to install Snakemake, below is a simplified sequence of instruction. Please refer to official Snakemake documentation for more detailed instructions.
Info
If you do not have Python, it will be installed as part of setting up Miniconda.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
Configuring Python Virtual Environment¶
Python¶
If you don't have Python installed on your system and you follow the above Snakemake installation instructions, Python of the specified version should be installed during the process.
If you want to verify the installation or the version of Python on your system, run the following command:
1 |
|
Python Environment¶
We recommend creating a new Python environment for NovaScope. If you already have an existing Python environment with all required packages (see pyenv_req.txt), you may skip this step. Below is an example of creating a new Python environment:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Installing Other Dependent Tools¶
NovaScope depends on a number of software tools, detailed below. The versions specified for each software tool have been verified for compatibility with our pipeline, though other versions may also be compatible.
- STARsolo (v2.7.11b)
- samtools (v1.13; v1.14; v1.19)
- spatula (v0.1.0)
- ImageMagick (7.1.0-25.lua and 7.1.1-30)
- GDAL (v3.5.1) (Optional, required for histology alignments)
We provide an example work log documenting the installation of the aforementioned software tools.
Installing NovaScope¶
To install NovaScope, clone the repository from GitHub using the following command:
1 |
|
Preparing Reference Genomes¶
The reference genome for the species of interest must be downloaded and indexed for alignment. STARsolo accepts the reference genomes prepared by cellranger, therefore, one of the simplest way is to download the reference genome from the cellranger download page.
Given STAR index packaged by the cellranger download is outdated and will not be compatible with the latest version of STARsolo, we recommend indexing it using the latest version of STARsolo. For human and mouse, we provided examples below to prepare the reference genome. For other species, please follow the instructions provided by cellranger or STARsolo to prepare the reference genome.
Please note that this indexing process will take A LOT OF TIME, typically a few to several hours.
Mouse
The recommended reference genome for mouse is GRCm39.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
Human
The recommended reference genome for human is GRCh38.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
(Optional) Install the historef Package¶
Info
Only required if you want to align your histology images with the spatial gene expression data.
Below is an example instruction to install the historef package in the same python environment you built in Configuring Python Virtual Environment.
To access the most recent version, please see its GitHub repository.
1 2 3 4 5 6 7 8 9 |
|
(Optional) Install the FICTURE Package¶
Info
Only required if you want to apply the NovaScope additional reformat features.
NovaScope additional reformat features including the transformation of the spatial digital gene expression matrix (SGE) into a format compatible with FICTURE, and the pixel organization into user-defined hexagonal grids in the 10x genomics format. To utilize these features, users are advised to follow the FICTURE installation guidelines provided in its tutorial.