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.
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.
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
.
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 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
.
sfs
is available via conda
on the BioConda channel:
conda install -c bioconda sfs
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.