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/

## Distribute
## Make sure credentials are stored under ~/.pypirc
git tag <version>
git push origin --tags
python -m build
twine upload --repository pypi dist/*

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.3.2.tar.gz (7.2 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.3.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snapgene_utils-0.3.2.tar.gz
  • Upload date:
  • Size: 7.2 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.3.2.tar.gz
Algorithm Hash digest
SHA256 6f42cc907d28516e333d0ef6d86937ddf67b5f6f3fd4260639cf4e555012b839
MD5 5c6041c425a0e3a128783a90e4512f43
BLAKE2b-256 740b8ba34dc78721f5dfcbcd07814ffe6e793e61bdcdaed837a063695de24116

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snapgene_utils-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76332c65a3ef36873162378bc8ff33985c6bdeeb0d9b0a1cf91e0f431de58ff1
MD5 4eb581d1df1e34e083591a95aa3bf55a
BLAKE2b-256 b0f36f9b08dca761bf745822cc1e9e6cf60feed495a36f1d16d3f1846fdbf9d7

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