Skip to content
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

AlphaFold conversion to BinaryCIF fails #10

Closed
fkaiserbio opened this issue Nov 19, 2021 · 2 comments
Closed

AlphaFold conversion to BinaryCIF fails #10

fkaiserbio opened this issue Nov 19, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@fkaiserbio
Copy link

Hi!

Using the library in version 3.0.0 from Maven Central

<dependency>
    <groupId>org.rcsb</groupId>
    <artifactId>ciftools-java</artifactId>
    <version>3.0.0</version>
</dependency>

conversion to BinaryCIF fails with the example code given in the README. The file is not actually converted and contains mmCIF content. Please review the files attached. The gene name of this particular structure on UniProt is strange and contains a two quote characters: ''cytochrome P450.

Code used for conversion:

CifFile cifFile = CifIO.readFromPath(cifFilePath);
MmCifFile mmCifFile = cifFile.as(StandardSchemata.MMCIF);

// convert to BinaryCIF representation
byte[] output = CifIO.writeBinary(mmCifFile);

Thank you for checking.
AF-O49373-F1-model_v1.zip

@JonStargaryen JonStargaryen added the bug Something isn't working label Nov 22, 2021
@JonStargaryen
Copy link
Member

Thanks for reporting @fkaiserbio. This should be fixed with 3.0.1.
Please let me know if you still see issues when converting files.

@fkaiserbio
Copy link
Author

Hi @JonStargaryen,

thanks a lot for the quick fix. I can confirm that it works now for this structure. I will close the issue for now and let you know if there are problems with any other of the AlphaFold structures.

Best 👋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants