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
{{ message }}
Repository navigation
PDBIo error when saving chain with more than one character #3438
I disagree that this use case "should work, regardless of the length of the chain id". The PDB format allows for one character in that field, so what would you do then? Truncate and issue a warning? I prefer to explicitly throw an exception (probably a more informative one) and let the user change the chain id themselves before extracting.
You are absolutely right, I forgot that when using PDBIO the output file must comply to the PDB file format.
It would still be nice to have a more informative exception though.
Thank you very much for the clarification.
Activity
peterjc commentedon Dec 9, 2020
Reminds me of the discussion on #3250 and #3262 - can you look at this @JoaoRodrigues ?
JoaoRodrigues commentedon Dec 9, 2020
Thanks for the ping @peterjc .
I disagree that this use case "should work, regardless of the length of the chain id". The PDB format allows for one character in that field, so what would you do then? Truncate and issue a warning? I prefer to explicitly throw an exception (probably a more informative one) and let the user change the chain id themselves before extracting.
saiden89 commentedon Dec 9, 2020
You are absolutely right, I forgot that when using
PDBIOthe output file must comply to thePDBfile format.It would still be nice to have a more informative exception though.
Thank you very much for the clarification.
JoaoRodrigues commentedon Dec 9, 2020
More informative exception it is then :) I'll push it through this afternoon.
Improvements to PDBIO.