Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  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
pip install SnapGeneFileReader
## test:
## usage:

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

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

### to convert dna file to genbank file:
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('', 'w') as f:
SeqIO.write([seqObject,], f, 'genbank')

Project details

Download files

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

Files for SnapGeneFileReader, version 0.1.11
Filename, size File type Python version Upload date Hashes
Filename, size SnapGeneFileReader-0.1.11.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page