Skip to content

Handle TIDDIT style SV type names - #128

Draft
dnil wants to merge 3 commits into
mainfrom
tiddit_style_svtypes
Draft

dnil wants to merge 3 commits into
mainfrom
tiddit_style_svtypes

Conversation

@dnil

@dnil dnil commented Dec 21, 2023

Copy link
Copy Markdown
Member

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

@henrikstranneheim henrikstranneheim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

coordinates["end"] = end

sv_type = variant.INFO.get("SVTYPE").split(":")[0]
sv_type = variant.INFO.get("SVTYPE")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add type hint

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
Copy Markdown
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

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
Copy Markdown
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

@dnil
dnil requested review from a team as code owners April 3, 2025 12:32
@dnil
dnil marked this pull request as draft April 3, 2025 12:33
@jemten

jemten commented Apr 9, 2025

Copy link
Copy Markdown
Collaborator

Should we try to merge these changes @dnil?

@dnil

dnil commented Apr 9, 2025

Copy link
Copy Markdown
Member Author

Should we try to merge these changes @dnil?

You are asking such good questions! I had the same one last week, but didn't spend the time trying to answer it. Probably, if it was an issue 2023. On the other hand we seem to have lived without. Again, whoever has time to figure out the current status (checking files that go for upload for variants like this etc etc).

This branch has not been deployed

No deployments
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.

3 participants