Python package for converting sequence annotations to gene feature enumerations (GFE).
Project description
py-gfe
Python Boilerplate contains all the boilerplate you need to create a Python package.
Free software: LGPL 3.0
Documentation: https://pygfe.readthedocs.io.
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
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
py-gfe-1.1.4.tar.gz
(59.5 kB
view hashes)
Built Distribution
py_gfe-1.1.4-py2.py3-none-any.whl
(64.9 kB
view hashes)
Close
Hashes for py_gfe-1.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 846f5d46407cbd7aa59dff1834275e64f2c2fb0368c63f0da5552e6de414001d |
|
MD5 | 606de7826284f919cca24567eaa4c439 |
|
BLAKE2b-256 | 5b5adfb46274c87ee56d1149f9845b5da83a7941cf424f96441c0cfe0f1aef98 |