Skip to main content

Convert Snapgene *.dna files dict/json/biopython.

Project description

SnapGene Utils is a Python library to parse Snapgene *.dna files into dictionaries or Biopython SeqRecords:

from snapgene_utils import snapgene_file_to_dict, snapgene_file_to_seqrecord

file_path = './snap_gene_file.dna'
dictionary = snapgene_file_to_dict(filepath)
seqrecord = snapgene_file_to_seqrecord(filepath)

Installation

Install with PIP:

pip install snapgene_utils

Test with Pytest:

pytest --cov=snapgene_utils tests/

Development

python3 -m venv venv
source venv/bin/activate
pip install -e .
pip install -r requirements_dev.txt

## Run tests
./venv/bin/pytest tests/

Licence = MIT

SnapGene Utils is an open-source software originally written by Isaac Luo at the Cai Lab. This fork is released under the MIT licence. Everyone is welcome to contribute!

Project details


Download files

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

Source Distribution

snapgene_utils-0.2.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snapgene_utils-0.2.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file snapgene_utils-0.2.0.tar.gz.

File metadata

  • Download URL: snapgene_utils-0.2.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for snapgene_utils-0.2.0.tar.gz
Algorithm Hash digest
SHA256 74b346cc1580d74715b26a0f23dbf5b8ff44453476c7806dc91eddc046eb23b5
MD5 299e907f7c8099280fbec1ddd0a416ed
BLAKE2b-256 72fd69db6eccf400f7abb12fb0e4aacbc9c1e46a33d62ea018446f74f86b212b

See more details on using hashes here.

File details

Details for the file snapgene_utils-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: snapgene_utils-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for snapgene_utils-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f630ea620942ace719885d1074c3801cee3cb5f0fdf324d18389bb6df1100e31
MD5 107ec5ca8f2e7713e3b8e7ffe1c09418
BLAKE2b-256 f7cc8fd5b4a62227fea9018efad90393036f73a56a2dfc26a290608b32299e08

See more details on using hashes here.

Supported by

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