Closed Koesed96 closed 4 years ago
What if you fetch from the id directly?
atomium.fetch("4u3y").model
That doesn't fix the problem.
The problem ist that mmligner seems to expect an atom number in every line. I have fixed the problem with a method to add the atom number from the atom above the TER line to the TER line. I'm not sure if thats the solution we should use, but I got an working example for now.
Awesome, glad you fixed it! We should report the bug to the atomium
devs so the fix it upstream. Do you want to do that and get your open source contributor points? I can also do that, but it'd be a valuable experience if you want to proceed!
If you could give me a small heads up tomorrow, I would like to to that.
It would mainly consist of:
Oh, actually, you need to add more fields:
https://www.wwpdb.org/documentation/file-format-content/format33/sect9.html#TER
You can claim it as "Comply to PDB TER records spec"
Issue raised here: https://github.com/samirelanduk/atomium/issues/25
We have changed to MDAnalysis
for the Structure
object now, which makes mmligner
choke too :/
Well, not anymore!
Basically the title.
Full error message:
The problem is that atomium is shortening lines beginning with TER. For example: Original:
After atomium parsing and saving:
Parsing was done with:
atomium.fetch("4u3y.pdb").model
and saving with.save("./4u3y.pdb")
After replacing the different line with the original, the file can be parsed untill it reaches the next TER line.