Skip to main content

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

## requirement:
```python
pip install xmltodict
pip install biopython
```
## test:
```bash
python runTest.py
```
## usage:
### to convert dna file to genbank file:
```python
from Bio import SeqIO
from snapgene_file_to_seq_record import snapgene_file_to_seq_record
seqObject = snapgene_file_to_seq_record(fpath)
with open('new_file_name.gb', '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.

Source Distribution

SnapGeneFileReader-0.1.6.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file SnapGeneFileReader-0.1.6.tar.gz.

File metadata

File hashes

Hashes for SnapGeneFileReader-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4e0da1c57d5c4ef1525525b9535c6a66572321d938d8432a7335244a5d3cccb8
MD5 a59050c174dc4960d1975382cf72255f
BLAKE2b-256 1831a4f8b48cfddbcc19db40b1dc1307627c541d979af9cf00c5faf667e07d4b

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