Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

dnil
Copy link
Collaborator

@dnil dnil commented Dec 21, 2023

This PR adds | fixes:

How to prepare for test:

  • ssh to ...
  • Install on stage:
    bash servers/resources/SERVER.scilifelab.se/update-[THIS_TOOL]-stage.sh [THIS-BRANCH-NAME]

How to test:

Expected outcome:

  • [ ]

Review:

  • Code approved by
  • Tests executed by
  • "Merge and deploy" approved by

This version is a:

  • MAJOR - when you make incompatible API changes
  • MINOR - when you add functionality in a backwards compatible manner
  • PATCH - when you make backwards compatible bug fixes or documentation/instructions

Copy link
Contributor

@henrikstranneheim henrikstranneheim left a 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")
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
variant = duptandem_tiddit_variant
variant: str = duptandem_tiddit_variant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants