Repository navigation
Bug fix: failing on empty read count columns - #28
Conversation
|
All unit tests pass. All output regression tests pass for output files pre- and post- changes with both full example inputs and empty inputs, with the toggle-able settings both on and off. 2024-11-19-outputs-pre-change.zip |
|
No documentation needs to be updated for this change. |
|
All files changed have been reviewed. |
|
Docker pushed to tags |
…ith missing data within required columns
|
Further revising this branch to include
|
|
All unit tests match and regression outputs match with these changes to the ExAC and ClinVar annotation. The exception is that the example outputs do not match for ClinVar and ExAC outputs for fusions and copy number alterations, but they should not have been annotated with these data sources anyway and were previously preallocated with 0 values. |
A bug was introduced in pull request 18 when the handling of read count columns, due to Python 3.12 and pandas change to down casting of data types. Specifically, empty read count values would cause the function
calculate_coverageto fail. The interpreter version was updated to 0.7.3 for this pull request and release.Additions:
convert_to_pandas_int64andsafe_castwere written within theCoverageMetricsclass ofmoalmanac/features.pyto safely manage non-integer values being provided for the columnst_alt_countandt_ref_count.features.CoverageMetricsclassformat_metadata_dictionarywas added tomoalmanac/moalmanac.pyto ensure that missing data in the metadata dictionary is formatted correctly if the main function is instantiated directly.Revisions:
Bug fixes:
t_alt_countandt_ref_countcolumns are null.Pre-pull request check list,