Feature/36725/birmingham status pathclass changes#106
Merged
NImeson merged 7 commits intoSep 24, 2024
Conversation
…pecific assignment of varpathclass
shilpigoeldev
left a comment
Contributor
There was a problem hiding this comment.
Changes make sense @NImeson thanks but have a think if the code can be DRYed up as can see repetitive code
@genocolorectal.add_status(2) @genocolorectal.add_variant_class(3) if @posnegtest == 'UV'.
Collaborator
Author
Refactored code into varpath method in latest commit :-) |
shilpigoeldev
approved these changes
Sep 24, 2024
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.
What?
During the CASREF QA , 34 records with incompatible teststatus and varpath class were identified for Birmingham (RQ3) -
33 records where teststatus is 1 and varpathclass is 3
1 record where teststatus is null and varpathclass is 3
Why?
For the 33 records, the importer was setting var path class 3 before duplicating the record for all genes in a panel, therefore the var path class gets duplicated along with it so even genes without a variant will be assigned path class 3 .
For the 1 record - this record was matching a "NO EVIDENCE' regex when there was additional information in there however there was also a note of a variant reclassification in there as well which was being filtered out
How?
Removed varpath assigning from the start of variant processing and now only assigning varpath class of 3 when a teststatus of 2 is assigned and IF 'UV' is present in the overall2 field.
Added an additional exception regex to the 'NO EVIDENCE' regex to account for this scenario
Testing?
Tests added to both BRCA and CRC handler test suites and variants counts performed and compared to those before changes were made.