Skip to content

Instantly share code, notes, and snippets.

@asford
Created January 17, 2014 01:56
Show Gist options
  • Save asford/8467196 to your computer and use it in GitHub Desktop.
Save asford/8467196 to your computer and use it in GitHub Desktop.
Reading structures from structure databases by id.
import interface_fragment_matching.structure_database
db = interface_fragment_matching.structure_database.StructureDatabase("/work/fordas/test_sets/vall_store.h5")
id_list = db.structures.read()
for i in id_list["id"][:10]:
id_residues = db.residues.read_where("id == i")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment