Closed ljmartin closed 2 months ago
Your approach looks correct. If you like you can also use the (now removed) code from structure.io.npz
:
As direct replacement I would propose using pickle
, if you want the fastest reading/writing speed and do not care about interoperability with other software or future backwards-incompatible Biotite releases. If you are able to spend a bit more computation time, I would rather propose bcif
: It is small and reading/writing is still highly optimized, especially if you do not store bonds.
thank you!
Hi biotite,
I made the unfortunate mistake of storing a bunch of complexes as npz files, and also not checking the deprecated functions when I updated the library!
Firstly: Is there a sensible way to load these into biotite structure objects using the latest library? I can see that an npz file contains all the relevant ingredients of an AtomArray:
and can turn that into an AtomArray just fine:
and can save too (note - my data has no bonds):
Secondly - do you have a replacement for npz that you use? I'll use something else if it's best practice.
Thank you!