Metadata-Version: 2.1
Name: snapgene_utils
Version: 0.2.0
Summary: Convert Snapgene *.dna files dict/json/biopython.
Author: poeticpete
Maintainer: petertao
License: MIT
Keywords: DNA sequence design format converter
License-File: LICENCE.txt
Requires-Dist: biopython
Requires-Dist: xmltodict
Requires-Dist: html2text

SnapGene Utils
===============

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

.. code:: python

  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:

.. code:: bash

    pip install snapgene_utils

Test with Pytest:

.. code:: bash

    pytest --cov=snapgene_utils tests/

Development
------------
.. code:: bash

    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 <https://github.com/IsaacLuo>`_ at the Cai Lab. This fork is released under the MIT licence. Everyone is welcome to contribute!
