Skip to main content
Help us improve Python packaging – donate today!

A Python project to read and write Snapgene *.dna into dict, json, and biopython object.

Project Description

# SnapGeneFileReader
a Python project to read and write Snapgene *.dna

## install
```bash
pip install SnapGeneFileReader
```
## test:
```bash
pytest
```
## usage:

### to read a SnapGene file into a dict
```python
from SnapGeneFileReader import SnapGeneFileReader

file_path = './snap_gene_file.dna'
dna_dict = SnapGeneFileReader.read_file(file_path)
```

### to convert dna file to genbank file:
```python
from Bio import SeqIO
from SnapGeneFileReader import snapgene_file_to_seq_record

file_path = './snap_gene_file.dna'

seqObject = snapgene_file_to_seq_record(file_path)
with open('genbank_file.gb', 'w') as f:
SeqIO.write([seqObject,], f, 'genbank')
```

Release history Release notifications

History Node

0.1.11

This version
History Node

0.1.10

History Node

0.1.9

History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
SnapGeneFileReader-0.1.10.tar.gz (3.4 kB) Copy SHA256 hash SHA256 Source None Nov 15, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page