You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there,
I'm trying to debug why this ab1 file isn't being parsed by biopython. It doesn't seem to work with many other ab1 file parsers either, but it does seem to load fine into snapgene:
>>> from Bio import SeqIO
record = SeqIO.read("55-Mn-fw-EM-28.ab1", "abi")^[[C>>>
>>> record = SeqIO.read("src/test/testData/ab1/notfine.ab1", "abi")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Bio/SeqIO/__init__.py", line 652, in read
iterator = parse(handle, format, alphabet)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Bio/SeqIO/__init__.py", line 605, in parse
return iterator_generator(handle)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Bio/SeqIO/AbiIO.py", line 353, in __init__
super().__init__(source, mode="b", fmt="ABI")
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Bio/SeqIO/Interfaces.py", line 66, in __init__
self.records = self.parse(self.stream)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Bio/SeqIO/AbiIO.py", line 364, in parse
raise OSError("File should start ABIF, not %r" % marker)
OSError: File should start ABIF, not b'\xaeZTR'
Hey there,
I'm trying to debug why this ab1 file isn't being parsed by biopython. It doesn't seem to work with many other ab1 file parsers either, but it does seem to load fine into snapgene:
Here's the original issue that has sent me down this path - TeselaGen/openVectorEditor#890
Setup
I am reporting a problem with Biopython version, Python version, and operating
system as follows:
Expected behaviour
Parsing to have worked
Actual behaviour
Steps to reproduce
Here are the files in question
Archive (1).zip
The text was updated successfully, but these errors were encountered: