1 Introduction

This page explains how to install the core package of the Regulatory Sequence Analysis Tools (rsat-core) via the conda package manager.

The rsat-core package contains the RSAT command line tools, but no web server or web services.


2 Requirements

2.1 Availability

The conda package rsat-core is available on the anaconda server, in the bioconda channel:

2.2 Operating systems

  • The package has been compiled for Linux and Mac OS X.

  • It is not directly available as a conda package for Windows, but it could easily be included in a Docker or Singularity container.

2.3 Miniconda

This tutorial assumes that the conda package manager is installed on your operating system.

If it is not the case, you can easily install miniconda3. Note that for this it is not necessary to have admin rights.

For Mac OS X conda can now be installed with the standard Mac OS X package installer.


3 Conda environment

It may be convenient to create a specific conda environment rather than in the default environment.

Advantage: RSAT and all its dependencies are isolated from the other packages installed on your operating system. This may avoid conflicts between incompatible versions of languages or libraries required by other conda packages.

Inconvenient: the installation may take more space on your storage device since all the dependencies have to be installed in the rsat-specific environment folder.

If you prefer to install rsat-core in the basic conda environment, just skip this section.

3.1 Creating a conda environment

Check that the environment has well been created

3.2 Activating the rsat environment

We will now activate the newly created conda environemnt rsat and check its package content.

The name of the current conda environment should appear at the beginning of your prompt, for example:

(rsat) %

In principle, at this stage, the environment should contain no package since we just created it. We can check this by listing the packages.


4 Installing rsat-core


4.1 Temporary patches

In the 2020.01.04 release, some Perl libraries are still missing from conda.

We will soon package them for conda. In the meantime, it is easy to install them manually using cpan (especially if you created a conda environment for rsat, in which case you don’t need admin rights to install Perl modules in the environment).

First, if not done yet, you need to activate the conda environment where rsat-core has been installed.

We can now install the Perl modules with cpan. At the first usage, cpan might ask you which install mode you prefer between local::lib, sudo or manual. Simply type the enter key to choose the default (local::lib), in order to install the modules in the same environment as your rsat-core package.


5 Testing the rsat-core environment

We can perform a quick test of the rsat-core package.

5.1 Locating the rsat command

We will first locate the rsat command.

5.2 Listing rsat subcommands

The rsat command enables to run all the RSAT tools as sub-commands. We can list them with the option --list, or get a short description with the option --help.

5.3 Getting help for an rsat subcommand

The help page of an RSAT command can be obtained by running

rsat [subcommand] -h

For example:

5.4 Testing some RSAT commands

Generate 3 random sequences of length 100.

Generate random sequences and send them as input to oligo-analysis to count the dinucleotide occurrences. Note that the result of an RSAT command can be directly used as input by another command with the pipe symbol |.

5.5 Locating the RSAT components

The path of the RSAT components depends on your local configuration of conda.

You can find them as subfolders of the conda path, which may itself be generic (base environment) or specific to rsat (rsat environment).

The rsat command is found in the bin directory, together with some RSAT compiled programs (e.g. count-words, matrix-scan-quick, variation-scan). All the programs found in this bin directory are automatically in your path as soon as you activate conda.

The two following commands should in principle return the same path.

Additional files of the RSAT suite are found in the folder share/rsat of the conda directory.

This includes Perl, python, R scripts, makefiles, as well as RSAT configuration files.

5.6 A battery of tests for rsat subcommands

RSAT includes a set of tests for different commands, which can be run individually via a makefile.

This displays the list of make targets, which can be called individually by appending them to the previous command. For example, we can run the target randseq in order to test the RSAT program random-seq.

This will generate a random sequence, store it in a local file, and display the path on the result. The same can be done for each other target. The full RSAT command is systematically displayed, which indicates the parameters used for some typical analyses.

The target all runs all the test commands (this can take some time, because it includes downloading the yeast genome, running the peak-motifs workflow, …).

6 Uninstalling rsat-core

To uninstall rsat-core, you should simply remove the package from conda. The way to proceed depends on whether you installed rsat-core in a specific conda environment (rsat) or in the base environment.

6.1 Uninstalling rsat-core from the base environment

6.2 Uninstalling the rsat conda environment (and all its packages)