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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py-gfe-1.1.6.tar.gz.
File metadata
- Download URL: py-gfe-1.1.6.tar.gz
- Upload date:
- Size: 70.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d77a7df73e3b789bb2f72a39afc31dd6d2864aed857aad44d22293288f825f2a
|
|
| MD5 |
8e5a7a0fb50c5af7e4d4f2e14b2aa1ac
|
|
| BLAKE2b-256 |
594a029fd972c9771e453d0d4d26a2b81f1114c08fa1c1e2b873931a2173974e
|
File details
Details for the file py_gfe-1.1.6-py2.py3-none-any.whl.
File metadata
- Download URL: py_gfe-1.1.6-py2.py3-none-any.whl
- Upload date:
- Size: 64.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69f2a929cdd5f0314f48a5d604afbdf6e0016a445156c31dcce5c2baa15424cb
|
|
| MD5 |
1b13968d7c58d22c37806605980e2e6e
|
|
| BLAKE2b-256 |
8177ba7065ac0cccaafd71f2ac3d424814e9cc1914aeeddc8a97b1db6cbcbe45
|