-
Notifications
You must be signed in to change notification settings - Fork 4
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
Improvements to fix missing data sources #12
base: main
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -87,7 +87,7 @@ def process_raw_data( | |||
removeHs=remove_hydrogen, | |||
) | |||
if activity_type_subset is not None: | |||
df = df.query("activities.standard_type in @activity_type_subset") | |||
df = df[df["activities.standard_type"].isin(activity_type_subset)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deja vu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joschka-gross change that now or later?
@@ -102,7 +102,9 @@ def process_raw_data( | |||
) | |||
best_structure = ( | |||
df.sort_values(by="docking.predicted_rmsd", ascending=True) | |||
.groupby(group_key)[group_key + ["docking.predicted_rmsd", "molecule"]] | |||
.groupby(group_key)[ | |||
group_key + ["docking.predicted_rmsd", "molecule", "activities.activity_id"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should probably be the best structure overall (for each activity_id)
Tries to fix #11 (comment)