Skip to content

Commit

Permalink
Merge pull request #7 from matthiaskoenig/develop
Browse files Browse the repository at this point in the history
changes for v0.2.0
  • Loading branch information
matthiaskoenig authored Jul 30, 2019
2 parents 0f21cc0 + 9c178a7 commit 6ef6d87
Show file tree
Hide file tree
Showing 15 changed files with 2,611 additions and 727 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
brendapy/resources/brenda_download.txt filter=lfs diff=lfs merge=lfs -text
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ brendapy.egg-info
.tox
dist

brendapy/resources/brenda_download.txt
brendapy/resources/brenda_download_2019-07-29.zip
tmp
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: python
cache: pip
python:
- "3.6"
- "3.7"
sudo: required

install:
pip install -r requirements-develop.txt

script:
pytest --cov=brendapy

after_success:
pip install codecov; codecov
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
include requirements.txt
include README.md
include README.rst


include brendapy/resources/README.md
include brendapy/resources/brenda_download_2019-07-29.zip
Expand Down
2,337 changes: 2,285 additions & 52 deletions README.md

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
brendapy: BRENDA in python
====================================

The ``brendapy`` package provides a python parser for
`BRENDA <https://www.brenda-enzymes.org/index.php>`__
enzyme information. The parser extracts the protein information from the
database flat file and makes it accessible in a simple manner.

This package was developed in the context of building kinetic pathway models
with source code at https://github.com/matthiaskoenig/brendapy

``brendapy`` support has been tested on ``py36`` and ``py37``.

If you use this package cite `BRENDA <https://www.brenda-enzymes.org/index.php>`__

::

BRENDA in 2019: a European ELIXIR core data resource
Jeske L., Placzek S., Schomburg I., Chang A., Schomburg D., Nucleic Acids Res., in print (2019)


© 2019 Matthias König
5 changes: 1 addition & 4 deletions brendapy/_version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""
Definition of version string.
"""
__version__ = "0.1.2"

PROGRAM_VERSION = __version__
PROGRAM_NAME = 'brendapy'
__version__ = "0.2.0"
4 changes: 2 additions & 2 deletions brendapy/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ def parse_proteins_for_ec():
"""
brenda = BrendaParser()
ec = "1.1.1.1"
proteins = brenda.parse_proteins(ec)
proteins = brenda.get_proteins(ec)

print(f"{len(proteins)} proteins for EC {ec} in BRENDA")
print(f"Protein identifier: {proteins.keys()}")
print("-"*80)
print("-" * 80)
for p in proteins.values():
if p.organism == "Homo sapiens":
print(p)
Expand Down
Loading

0 comments on commit 6ef6d87

Please sign in to comment.