-
Notifications
You must be signed in to change notification settings - Fork 8
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
Handle TIDDIT style SV type names #128
base: master
Are you sure you want to change the base?
Conversation
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.
👍
@@ -97,7 +97,9 @@ def get_coords(variant): | |||
end = int(end_pos) if end_pos else int(variant.end) | |||
coordinates["end"] = end | |||
|
|||
sv_type = variant.INFO.get("SVTYPE").split(":")[0] | |||
sv_type = variant.INFO.get("SVTYPE") |
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.
Add type hint
@@ -103,7 +103,7 @@ def test_format_tiddit_dup_tandem(duptandem_tiddit_variant, case_obj): | |||
|
|||
def test_format_old_tiddit_dup_tandem(duptandem_old_tiddit_variant, case_obj): | |||
## GIVEN a dup with older TIDDIT notation (TDUP, IDUP, ...) | |||
variant = duptandem_variant | |||
variant = duptandem_old_tiddit_variant |
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.
variant = duptandem_old_tiddit_variant | |
variant: str = duptandem_tiddit_variant_legacy_format |
@@ -84,7 +84,7 @@ def test_format_dup_tandem(duptandem_variant, case_obj): | |||
|
|||
def test_format_tiddit_dup_tandem(duptandem_tiddit_variant, case_obj): | |||
## GIVEN a TIDDIT style notation, ie both SVTYPE info and alt field tag has subtype, eg DUP:TANDEM | |||
variant = duptandem_variant | |||
variant = duptandem_tiddit_variant |
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.
variant = duptandem_tiddit_variant | |
variant: str = duptandem_tiddit_variant |
This PR adds | fixes:
How to prepare for test:
ssh
to ...bash servers/resources/SERVER.scilifelab.se/update-[THIS_TOOL]-stage.sh [THIS-BRANCH-NAME]
How to test:
Expected outcome:
Review:
This version is a: