API reference
snapgene reader main file
- snapgene_reader.parse(val)
Parse html.
- snapgene_reader.parse_dict(obj)
Parse dict in the obj.
- snapgene_reader.snapgene_file_to_dict(filepath=None, fileobject=None)
Return a dictionary containing the data from a
*.dna
file.- Parameters:
filepath (str) – Path to a .dna file created with SnapGene.
fileobject (object) – An object-like pointing to the data of a .dna file created with SnapGene.
- snapgene_reader.snapgene_file_to_gbk(read_file_object, write_file_object)
Convert a file object.
- snapgene_reader.snapgene_file_to_seqrecord(filepath=None, fileobject=None)
Return a BioPython SeqRecord from the data of a
*.dna
file.- Parameters:
filepath (str) – Path to a .dna file created with SnapGene.
fileobject (object) – An object-like pointing to the data of a .dna file created with SnapGene.