Repository navigation
Revise to use in memory db - #9
Merged
Merged
Conversation
…ction to improve readability
…ith refactored report generation
…actionability object
…y database. The file matchmaker.py now directly imports other classes. Calculating model similarity can be turned on and off in the config.ini file, as well as if the results are included in the actionability report. Added seed to SNFpy
…uts while staying entirely in memory
brendanreardon
commented
Feb 14, 2023
brendanreardon
left a comment
Collaborator
Author
There was a problem hiding this comment.
Finished reviewing all files changed within Pull Request.
Collaborator
Author
|
No relevant documentation needed to be updated as this was an internal, backwards compatible change. |
Collaborator
Author
|
Merging pull request. |
4 tasks done
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.
This is backwards compatible revision to run with the underlying moalmanac database existing entirely in memory for the process, rather than reading from TinyDB. Additionally, the codebase has been refactored to allow for additional customizability of which features are executed.
The underlying molecular oncology almanac database has been updated to the v.2023-02-02 release within this pull request.
Additions:
function_togglehas been added toconfig.inito enable or disable several features of moalmanac, including,Revisions:
annotator.pyno longer require patient_id and output folder to be passed.import_dswithin classAlmanacwithindatasources.py was revised and the functionimport_genes` was added.Almanacclass ofannotator.pyto import genes contained within the moalmanac database.create_almanac_db.pywithin thedatasources/moalmanac/was revised to generate the database from the moalmanac-db GitHub repository. In addition to containing database content, the script adds keys detailing the database version and release information as well as genes contained in the database.moalmanac.py. Figures are now generated and written frommoalmanac.py.run_tests.shbecause incidental figures are no longer generated when testing.moalmanac.py. Figures are now generated and written frommoalmanac.py.matchmaker.pyhave been revised to have one class per linemoalmanac.jsontomolecular-oncology-almanac.json.reporter.pymodule has been refactored to generate the report based on an object, in line with Frozen Flask best practices.moalmanac.py, rather than within modules of the codebase.moalmanac.pycalledoutput_labelto reduce the repetition of calling the profile_id, which is used for output file names.additional.matches.jsonoutput is no longer produced. These results are entirely included in the actionability report output.annotator.pyanddatasources.pyare no longer explicitly inherited from the object class, per Python 3 practices.test/annotator_tests.pyandtest/features_test.pywere updated to support the latest version of the moalmanac database being used within this release, both the database content and to not use TinyDB.requirements.txt.Bug fixes:
almanac-gdsc-mappings.jsonwas revised to include Cetuximab within GDSC for the therapyCetuximab + Encorafenib.calculate_signatures.pywas revised to include a forward slash in the folder name, if the path did not already end with one.Pre-pull request check list,