Open
Conversation
Incorporate the calculations based on the Leucht equivalences in the compute_medication_effects.py script
Added the equivalent dose calculations based on the Leucht table provided by Scott. They are listed as a new constant (med_idx_drug_equivalent_dose_leucht) .
Member
|
Hi Moritz, Other scripts that use the outputs from this script are: The scripts run in the following order:
Please let me know if you can modify this script as well as part of this PR, if not I can work on this too! Thanks, |
Momo1502
added a commit
to Momo1502/ampscz-formsdb-leucht-ed
that referenced
this pull request
Nov 16, 2025
Hi Dheshan, I have updated the compute_medication_effects_by_class.py to take your feedback in Pull req AMP-SCZ#10 into account.
Hi Dheshan, I have updated the compute_medication_effects_by_class.py to take your feedback in Pull req AMP-SCZ#10 into account.
Author
|
Hi Dheshan, thanks for your feedback! I went through the compute_medication_effects_by_class.py script as well and implemented the relevant changes. This hopefully addresses all relevant scripts that use the equivalent doses. Best, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi Dheshan,
Sorry for cancelling the last pull request, I still had to add additional antipsychotics first.
I have (i) updated the constants.py file to incorporate a new constant for the conversion of antipsychotics to haloperidol 1 mg equivalences based on the Leucht table provided by Scott Woods and (ii) updated the formsdb/runners/compute/compute_medication_effects.py file to calculate the equivalences based on the constants.
Please let me know if another script also uses the constants / calculated values so that I can update them as well.
Best,
Moritz