Search code examples
javaprotein-databasebiojava

How can I use mmCIF format instead PDB in BioJava?


I have a small problem...

I know that for download a PDB structure using BioJava I should use

Structure s = StructureIO.getStructure("code");

What I should do to use mmCIF file instead?


Solution

  • If you are on the latest BioJava, the default is already to use mmcif. You can configure this in the AtomCache class (and set a custom cache in StructureIO)