Closed rimmartin closed 8 months ago
cif works. Not sure what differences other tools will do with cif's
Calling setup_entities()
after reading a file should fix this.
Relying on TER records is a known problem in gemmi, last time reported in #299
Ah, tried for the two cases and match 64 and get same alignment as the one above
Since there is another issue about TER's this one closes
Hi @wojdyr ,
Starting with https://github.com/project-gemmi/gemmi/blob/master/tests/1orc.pdb
Now remove the TER at https://github.com/project-gemmi/gemmi/blob/master/tests/1orc.pdb#L816 or generate output without such a TER
Maybe it is no longer a "polymer".
If we start with the original again and introduce a final TER(as pdbWriteOptions.ter_ignores_type=true does) even if ending in water, it also doesn't do the align and polymer is empty.
If we change all the waters chain ID to W then the A chain gets aligned regardless of TER's
Now for our round trip we can write with gemmi to make the TER's work on reading back in. The issue is when pdb's are made by some other tool then this problem arises.