Closed JoshuaMeyers closed 2 years ago
You would have two labels and two structures in your input types file, like this:
0 1 in1.pdb in2.pdb
provider = molgrid.ExampleProvider()
provider.populate("in.types")
ex = provider.next()
list(ex.labels) # [0.0, 1.0]
len(ex.coord_sets) # 2
Thanks! That's much easier than I thought, is there a link to some documentation on the 'types' file?
It's explained in the paper (https://arxiv.org/pdf/1912.04822.pdf), but you're right that the explanation should be in the online documentation.
Hey Guys, nice library! I've enjoyed using libmolgrid to train over protein-ligand binding affinities but I'd now like to operate over pairs of input PDBs (where each pair is assigned a single label). Do you have any pointers on how one might achieve this with libmolgrid while still making use of the structure cache – I am working with pytorch. Thanks in advance