Skip to content

Commit

Permalink
Merge pull request #7 from kevinmicha/kevinmicha-patch-1
Browse files Browse the repository at this point in the history
Update citing.rst
  • Loading branch information
kevinmicha authored Nov 8, 2024
2 parents 47fb331 + c37ab07 commit a8dc208
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions antipasti/preprocessing/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ def load_training_images(self):

assert labels == [item for item in self.selected_entries if item not in self.pathological]

for pdb in self.selected_entries:
if pdb not in self.pathological and self.affinity_entries_only:
assert np.float16(10**kds[[item for item in self.selected_entries if item not in self.pathological].index(pdb)] == np.float16(self.df[self.df['pdb']==pdb]['affinity'])).all()
#for pdb in self.selected_entries:
# if pdb not in self.pathological and self.affinity_entries_only:
# assert np.float16(10**kds[[item for item in self.selected_entries if item not in self.pathological].index(pdb)] == np.float16(self.df[self.df['pdb']==pdb]['affinity'])).all()

return np.array(imgs), np.array(kds), labels, raw_imgs

Expand Down Expand Up @@ -623,4 +623,4 @@ def load_test_image(self):
h = h[0]
l = l[0]

return self.generate_masked_image(raw_sample, 0, test_h=int(h), test_l=int(l))[0]
return self.generate_masked_image(raw_sample, 0, test_h=int(h), test_l=int(l))[0]
2 changes: 1 addition & 1 deletion docs/citing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Citing ANTIPASTI in a publication

If you want to acknowledge ANTIPASTI in a publication, we suggest you to cite:

Kevin Michalewicz, Mauricio Barahona and Barbara Bravi. ANTIPASTI: interpretable prediction of antibody binding affinity exploiting Normal Modes and Deep Learning. bioRxiv 2023.12.22.572853; doi: `https://doi.org/10.1101/2023.12.22.572853 <https://doi.org/10.1101/2023.12.22.572853>`_
Kevin Michalewicz, Mauricio Barahona and Barbara Bravi (2024). ANTIPASTI: Interpretable prediction of antibody binding affinity exploiting normal modes and deep learning. Structure, `https://doi.org/10.1016/j.str.2024.10.001 <https://doi.org/10.1016/j.str.2024.10.001>`_
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,5 @@


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'https://docs.python.org/': None}
intersphinx_mapping = {'python': ('https://docs.python.org/', None)}

0 comments on commit a8dc208

Please sign in to comment.