-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ByteArray
encoding type 33
#4
Comments
33 is for Float64 arrays |
This is my first time doing this kind of raw byte decoding, so I might be missing something here that is obvious, but why is this the case? Does 33 mean not 33? Are the data types specified as below?
|
Not sure it is in the spec. Here is the normative implementation... https://github.com/molstar/molstar/blob/master/src/mol-io/common/binary-cif/encoding.ts#L60-L72 |
Okay thanks for the additional clarification. Should this be something that is specified in the spec, if it's the official implementation? |
Yeah it should. the spec could definitely use an overhaul. |
Are there any other little 'gotchas' you can think of while I'm tackling this? |
I'd look at the molstar implementation or this minimal python implementation https://gist.github.com/dsehnal/b06f5555fa9145da69fe69abfeab6eaf |
Ah many thanks. I was also doing a minimal numpy implementation, and the example you linked does exactly what I am after but they've done it much more cleanly than I had come up with. Wish I had googled a bit harder and I would have saved myself a weekend of tinkering. Would be useful to have that minimal implementation linked in the README also. |
I'm working on my own parser, and I have it successfully working with importing example data
.bcif
from thepy-mmcif
as well as CellPack.bcif
files frommolstar.org/dev/me.
It seems to be working well on parsing everything for the structures, but when extracting the symmetry operations from the CellPack files, I am coming across aByteArray
type that doesn't make sense.Is 33 something special that isn't explicitly mentioned in the spec, or have I gotten something wrong earlier in my pipeline?
The text was updated successfully, but these errors were encountered: