1 unstable release
0.1.0 | Aug 31, 2023 |
---|
#150 in Biology
200KB
5K
SLoC
sfs
sfs
is a tool for creating and working with the site frequency spectra.
The README is currently under construction. Usage and examples will be added soon.
Contents
Installation
From source
A recent Rust toolchain is required to build sfs
from source. Currently, the Rust toolchain can be installed by running:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
See instructions for more details.
sfs
can now be build from source, using either the latest released version, or the current git head, as described below.
Latest release
The following will install the latest released version of sfs
:
cargo install sfs-cli
This will install the sfs
binary to $HOME/.cargo/bin
by default, which should be in the $PATH
after installing cargo
. Alternatively:
cargo install sfs-cli --root $HOME
Will install to $HOME/bin
.
Current git
The latest git version may include more (potentially experimental) features, and can be installed using:
cargo install --git https://github.com/malthesr/sfs
Pre-built
Pre-built binaries are available from the releases page (linux, mac, windows).
For a one-liner, something like the following should work in a UNIX environment:
curl -s -L $url | tar xvz -O > $dest
Where $url
is chosen from above, and $dest
is the resulting binary, e.g. $HOME/bin/sfs
.
Conda
sfs
is available via conda
on the BioConda channel:
conda install -c bioconda sfs
Docker
A docker image is automatically built by BioContainers from the BioConda recipe and hosted on Quay.io:
docker pull quay.io/biocontainers/sfs:$tag
With $tag
chosen among the available tags.
Dependencies
~6.5MB
~122K SLoC