-
Notifications
You must be signed in to change notification settings - Fork 4
Remove phenix clashscore script and add occupancy/density utility improvements #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -152,6 +152,11 @@ def compute_density_from_atomarray( | |
| atom_array, device | ||
| ) | ||
|
|
||
| # need to make sure these all have the same batch dimension or the transformer will fail. | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @k-chrispens this may no longer be needed with the changes you main in real_space_density.py but I'm going to leave here for now then test everything in my next PR, if that's okay with you.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think I made any changes affecting this
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do think it would be clearer to do match_batch here in the next PR though, esp. since these are potentially already at batch size n_model from an AtomArrayStack, which could lead to errors that we would catch and report well in match_batch |
||
| elements = elements.expand(coords.shape[0], -1) | ||
| b_factors = b_factors.expand(coords.shape[0], -1) | ||
| occupancies = occupancies.expand(coords.shape[0], -1) | ||
|
|
||
| with torch.no_grad(): | ||
| density = transformer( | ||
| coordinates=coords, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.