Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python package for converting sequence annotations to gene feature enumerations (GFE).

Project description

pyGFE

https://img.shields.io/pypi/v/pygfe.svg https://img.shields.io/travis/mhalagan-nmdp/pygfe.svg Documentation Status Updates

Python Boilerplate contains all the boilerplate you need to create a Python package.

Docker

docker pull nmdpbioinformatics/py-gfe
docker run -it --rm -v $PWD:/opt nmdpbioinformatics/py-gfe seq2gfe \
        -f /opt/your_fastafile.fasta -l HLA-A

Example

>>> from Bio import SeqIO
>>> from BioSQL import BioSeqDatabase
>>> from seqann.sequence_annotation import BioSeqAnn
>>> import pygfe
>>> seq_file = 'test_dq.fasta'
>>> gfe = pygfe.pyGFE()
>>> server = BioSeqDatabase.open_database(driver="pymysql", user="root",
...                                       passwd="", host="localhost",
...                                      db="bioseqdb")
>>> seqann = BioSeqAnn(server=server)
>>> seq_rec = list(SeqIO.parse(seq_file, 'fasta'))[0]
>>> annotation = seqann.annotate(seq_rec, "HLA-DQB1")
>>> gfe = gfe.get_gfe(annotation, "HLA-DQB1")
>>> print(gfe)
HLA-DQB1w0-4-0-141-0-12-0-4-0-0-0-0-0

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.0.1 (2017-11-09)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py-gfe, version 0.0.29
Filename, size File type Python version Upload date Hashes
Filename, size py_gfe-0.0.29-py2.py3-none-any.whl (64.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size py-gfe-0.0.29.tar.gz (57.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page