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')
```
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
File details
Details for the file SnapGeneFileReader-0.1.6.tar.gz.
File metadata
- Download URL: SnapGeneFileReader-0.1.6.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e0da1c57d5c4ef1525525b9535c6a66572321d938d8432a7335244a5d3cccb8
|
|
| MD5 |
a59050c174dc4960d1975382cf72255f
|
|
| BLAKE2b-256 |
1831a4f8b48cfddbcc19db40b1dc1307627c541d979af9cf00c5faf667e07d4b
|