public static Structure readFromWeb ( String pdbId ) throws IOException { // Get the reader - this is the bit that people need to implement. MmtfStructureReader mmtfStructureReader = new MmtfStructureReader ( ) ; // Do the inflation new StructureDataToAdapter ( new GenericDecoder ( ReaderUtils . getDataFromUrl ( pdbId ) ) , mmtfStructureReader ) ; // Get the structue return mmtfStructureReader . getStructure ( ) ; }
Get a Biojava structure from the mmtf REST service .