Skip to content

noatgnu/dotDNA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotDNA

SnapGene .dna file parser.

Examples

Parse .dna file and output primers into a csv:

from dot_dna import parser
from csv import DictWriter

column = ["Name", "Position", "Direction", "Temperature", "Sequence"]
file_path = "tests/test.dna"

snapgene = parser.SnapGene(file_path)
snapgene.parse()
with open(output_path, "wt", newline="") as output:
    w = DictWriter(output, fieldnames=column)
    w.writeheader()
    for p in snapgene.primers:
        w.writerow(p.to_dict())

About

SnapGene .dna file parser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages