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.7.0.tar.gz (7.6 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.7.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snapgene_utils-0.7.0.tar.gz
  • Upload date:
  • Size: 7.6 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.7.0.tar.gz
Algorithm Hash digest
SHA256 96f86781338b8b22d3efb02d0f4b0523be5c5d0c4d053a94da418a74776c9cd3
MD5 881605dc318ea2b75cbc86a969d6e9ad
BLAKE2b-256 6591954b30e266ab794df4ae619aba8b7303a3b50bdb3dae9e7ed9bfc45d9f12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snapgene_utils-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9088c5a7bd73aa21b65d5b92e32acac1996dbcc58124e94dce85c5437dabd3c
MD5 be12672b5b45d1cde98bd9aa6b2a13a8
BLAKE2b-256 059c33bdaefb1f90e6aa8be11fe2a2f16c4facedc09a422e85b67464e7fa95db

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