Skip to content

Commit

Permalink
Merge pull request #28 from karel-brinda/devel
Browse files Browse the repository at this point in the history
SMBL 1.4.3
  • Loading branch information
karel-brinda committed Nov 17, 2015
2 parents 54c992e + e019cd9 commit b4e661d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 70 deletions.
14 changes: 1 addition & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,9 @@ install:
- sudo apt-get install git-svn
# libraries for HDF5
- sudo apt-get install libhdf5-serial-dev
#libhdf5-openmpi-dev libhdf5-mpich-dev libhdf5-lam-dev
- pip install -r requirements.txt
- pip install .
script:
- tests/tests_examples.sh
- tests/tests_st.sh
- tests/tests_mt.sh
#- tests/tests_fa.sh
deploy:
provider: pypi
user: karel.brinda
distributions: "sdist"
password:
secure: dG6t/kcAyEK+LZR2mzj5SywUOtpvaoFde3dUdNr5J/lEvp1crv8fTQS0iTVaVmO71H/SRtakXWqTzABDYIyB+RnDYVzfQOog8gb+hr2JLr2XPFEhRbbQ2VDoLH21TJTAbTXAoA/jCVcv0FjeL5pA7TCIZerUF0ZBYyGMSWc6hL8=
on:
repo: karel-brinda/smbl
branch: master
tags: true

33 changes: 21 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
SMBL - SnakeMake Bioinformatics Library
=======================================

.. image:: https://badges.gitter.im/Join%20Chat.svg
:alt: Join the chat at https://gitter.im/karel-brinda/smbl
:target: https://gitter.im/karel-brinda/smbl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

.. image:: https://travis-ci.org/karel-brinda/smbl.svg?branch=master
:target: https://travis-ci.org/karel-brinda/smbl

.. image:: https://travis-ci.org/karel-brinda/smbl.svg?branch=devel
:target: https://travis-ci.org/karel-brinda/smbl


In case of any problem, don't hesitate to contact me on [email protected].

Expand All @@ -16,31 +15,40 @@ Short description
-----------------

**SMBL** is a library of some useful rules and Python functions which can be used in Snakemake (https://bitbucket.org/johanneskoester/snakemake/) pipelines. It makes possible to automatically
download various bioinformatics programs like read mappers, read simulators, conversion tools, etc.
install various bioinformatics programs like read mappers, read simulators, conversion tools, etc.
It supports also downloading and conversion of some important references in FASTA format (e.g., human genome).


Installation / upgrade
----------------------

To install SMBL, you need to have Unix-like operating system (e.g., Linux, MacOS) and Python at least 3.2.
To install SMBL, you need to have Unix-like operating system (e.g., Linux, MacOS) and Python at least 3.3.
Installation / upgrade can be performed using the following command.

.. code-block:: bash
pip install --upgrade smbl
pip3 install --upgrade smbl
If SnakeMake has not been installed, yet, it will
be installed automatically with SMBL.

The current GIT version of SMBL can be installed by
The current version of SMBL from git can be installed by

.. code-block:: bash
git clone --depth 1 http://github.com/karel-brinda/smbl
cd smbl
./install.sh
pip3 install --upgrade git+git://github.com/karel-brinda/smbl
Requirements
------------

To be able to download and install software automatically, SMBL requires the following programs to be present in you Unix system:

* wget or curl
* gcc 4.7+
* git
* make


Usage
Expand Down Expand Up @@ -182,8 +190,9 @@ FASTA files
| Chimpanzee genome PANTR04 | ``smbl.fasta.CHIMP_PANTRO4`` |
+------------------------------+------------------------------------------------------------+


Example
~~~~~~~
-------

The following example demonstrates how SMBL can be used for automatic installation of software.

Expand Down
21 changes: 1 addition & 20 deletions smbl/include_all.snake
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
import smbl
from snakemake.utils import min_version

shell.prefix("set -e -o pipefail; ")
shell.executable("/bin/bash")

#include: "utils/rules.snake"
#include: "prog/prog.snake"
include: "fasta/fasta.snake"

#rule smbl_clean:
# shell:
# 'rm -fR "{}" "{}" "{}"'.format(smbl.bin_dir,smbl.fa_dir,smbl.src_dir)
#
#rule smbl_clean_fa:
# shell:
# 'rm -fR "{}"'.format(smbl.fa_dir)
#
#rule smbl_clean_prog:
# shell:
# 'rm -fR "{}"'.format(smbl.bin_dir)
#
#rule smbl_clean_src:
# shell:
# 'rm -fR "{}"'.format(smbl.src_dir)


for i, rule in enumerate(smbl.utils.get_registered_rules()):
rule:
input:
Expand Down
25 changes: 0 additions & 25 deletions smbl/prog/prog.snake

This file was deleted.

0 comments on commit b4e661d

Please sign in to comment.