MacSyFinder: Detection of macromolecular systems in protein datasets using systems modelling and similarity search
Project description
MacSyFinder
MacSyFinder - Detection of macromolecular systems in protein datasets using systems modelling and similarity search.
Citation
Abby SS, Néron B, Ménager H, Touchon M, Rocha EPC (2014). MacSyFinder: A Program to Mine Genomes for Molecular Systems with an Application to CRISPR-Cas Systems. PLoS ONE 9(10): e110726. doi:10.1371/journal.pone.0110726 http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0110726
MacSyFinder is available on pypi
Installation from distribution
We encourage to install macsyfinder in a virtualenv
After creating a virtualenv dedicated to macsyfinder and activating it
python3 -m venv my_project
cd my_project
source bin/activate
you can install macsyfinder as describe below.
from pypi
pip3 install macsyfinder==x.x
where x.x
is the version number
from git repository
git clone https://github.com/gem-pasteur/macsyfinder.git
cd macsyfinder
pip3 install .
for developers
git clone https://github.com/gem-pasteur/macsyfinder.git
cd macsyfinder
pip3 install .[dev]
Unit tests
python3 setup.py test
or
python3 tests/run_tests.py -vv
or to run a specific test
python3 tests/run_tests.py -vv tests/test_xxx.py
with travis-ci
Models installation
Models are no longer shipped along macsyfinder package. To install Models you can use macsydata
.
macsydata allow to manage models stored in macsy-models.
Below some most useful commands.
- available: List Models available on macsy-models.
- search: Discover new packages.
- install: Install or upgarde packages.
- uninstall: Uninstall packages.
- cite: How to cite a package.
- ...
For complete documentation see macsydata section on readthedoc
For models not stored in macsy-models the commands available, search, installation from remote or upgrade from remote are NOT available.
For models Not stored in macsy-models, you have to manage them semi-manually. Download the archive (do not unarchive it), then use macsydata for the installation.
Documentation
You will find complete documentation for setting up your project on readthedocs
Docker
MacSyFinder is also available as Docker container
how to use macsyfinder container with docker
The computations are performed under msf
user in /home/msf
inside the container.
So You have to mount a directory from the host in the container to exchange data (inputs data, and results)
from the host and the container.
The shared directory must be writable by the msf
user or overwrite the user in the container by your id (see example below)
Furthermore the models are no longer packaged along macsyfinder. So you have to install them by yourself. For that we provide a command line tool macsydata which is inspired by pip
macsydata search PACKNAME
macsydata install PACKNAME== or >=, or ... VERSION
To work with Docker you have to install models in a directory which will be mounted in the image at run time
mkdir shared_dir
cd shared_dir
# install desired models in my_models
docker run -v ${PWD}/:/home/msf -u $(id -u ${USER}):$(id -g ${USER}) gempasteur/macsyfinder:<tag> macsydata install --target /home/msf/my_models MODELS
# run msf with these models
docker run -v ${PWD}/:/home/msf -u $(id -u ${USER}):$(id -g ${USER}) gempasteur/macsyfinder:<tag> --db-type gembase --models-dir=/home/msf/my_models/ --models TFF-SF Archaeal-T4P ComM MSH T2SS T4bP T4P Tad --sequence-db my_genome.fasta -w 12
how to use with singularity
As the docker image is registered in docker hub you can also use it directly with Singularity.
Unlike docker you have not to worry about shared directory, your home
and /tmp
are automatically shared.
singularity run -H ${HOME} docker://gempasteur/macsyfinder:<tag> macsydata install --target my_models MODELS
singularity run -H ${HOME} docker://gempasteur/macsyfinder:<tag> macsyfinder --db-type gembase --models-dir=my_models --models TFF-SF Archaeal-T4P ComM MSH T2SS T4bP T4P Tad --sequence-db my_genome.fasta -w 12
Licence:
MacSyFinder is developed and released under
Contributing
We encourage contributions, bug report, enhancement ...
But before to do that, we encourage to read the contributing guide.
Contributors
List of all people who participated in the macsyfinder project.
Note
The setsid
binary in utils directory is used only for functional tests on macosx.
The binary has been build using the setsid-macosx project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file MacSyFinder-2.0rc7.tar.gz
.
File metadata
- Download URL: MacSyFinder-2.0rc7.tar.gz
- Upload date:
- Size: 42.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.1 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75ded5dbb0897d1595b40535b0401fcc65713a10e937ccafaa863d52b254f7a9 |
|
MD5 | ce1d6fdfc2216c8ad9f487dd8904d8b2 |
|
BLAKE2b-256 | e8080e2976307ed7ce81e4be42f2c05e644a039277326289758477ea4a2740ba |