Skip to main content

Sequence Annotation

Project description

SeqAnn

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

Sequence Annotation

Docker

  • docker pull nmdpbioinformatics/pygfe

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

Features

With mysql connection:

from seqann
from Bio import SeqIO
from BioSQL import BioSeqDatabase

server = BioSeqDatabase.open_database(driver="pymysql", user="root",
                                      passwd="", host="localhost",
                                      db="bioseqdb")
seqann = seqann.BioSeqAnn(server=server)
for seq in SeqIO.parse(input_seq, "fasta"):
        annotation = seqann.annotate(seq, "HLA-A")
        for feat in annotation.annotation:
                print(feat, annotation.annotation[feat], sep="\t")

Without mysql connection:

import seqann
from Bio import SeqIO

# ** If you don't have a copy of the hla.dat
# ** file it will download it
seqann = seqann.BioSeqAnn()
for seq in SeqIO.parse(input_seq, "fasta"):
        annotation = seqann.annotate(seq, "HLA-A")
        for feat in annotation.annotation:
                print(feat, annotation.annotation[feat], sep="\t")

Dependencies

Credits

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

History

0.0.1 (2017-10-19)

  • 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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

seqann-0.0.16-py2.py3-none-any.whl (18.0 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page