Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 3.05 KB

README.md

File metadata and controls

61 lines (52 loc) · 3.05 KB

SABer

Codacy Badge

SAG Anchored Binner for recruiting metagenomic reads using single-cell amplified genomes as references

Check out the wiki for tutorials and more information on SABer!!

Install SABer and Dependencies

Currently the easiest way to install SABer is to use a conda virtual environment.
This will require the installation of conda. It can be Anaconda, MambaForge, or Miniconda.
Note: that SABer is written in Python 3, so the conda has to support Python 3.
Warning!! SABer has been developed and tested on Linux, use OSX and Windows at your own risk!!

Once one of the "conda"s is installed, you can follow the directions below to install all dependencies and SABer within a conda environment.

git clone https://github.com/hallamlab/SABer.git
cd SABer

Now use make to create the conda env, activate it, and install SABer via pip.

make install-saberenv
conda activate saber_cenv
make install-saber

Test SABer Install

Here is a small demo dataset to make sure your SABer install was successful. Just download and follow along below to run SABer. (make sure you've activated the SABer conda env)

unzip demo.zip
cd demo
saber recruit -m k12.gold_assembly.fasta -l read_list.txt -o SABer_out -s SAG

The result of the above commands is a new directory named SABer_out that contains all the intermediate and final outputs for the SABer analysis.

Docker and Singularity containers

If you would like to use a Docker or Singularity container of SABer they are available.
In either case, they can be pulled from Quay.IO with one of the following commands:

# For Docker (need sudo access)
sudo docker pull quay.io/hallamlab/saber
# Run above demo with Docker
sudo docker run -it --network=host --rm -v ./:/cwd quay.io/hallamlab/saber:latest saber recruit -m cwd/k12.gold_assembly.fasta -l cwd/docker_read_list.txt -o cwd/SABer_out -s cwd/SAG

#For Singularity
singularity pull docker://quay.io/hallamlab/saber
# Run the above demo with Singularity
singularity exec saber_latest.sif saber recruit -m k12.gold_assembly.fasta -l read_list.txt -o SABer_out -s SAG

Note: Make sure you are in the demo directory when running the above commands as the examples assume this.

They can also be build from scratch using the following commands:
Docker (need sudo access):

make docker-build

Singularity (assumes you built the Docker locally first):

make singularity-local-build