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

Label ref seqs #22

Merged
merged 2 commits into from
Sep 25, 2024
Merged

Label ref seqs #22

merged 2 commits into from
Sep 25, 2024

Conversation

sallybg
Copy link
Collaborator

@sallybg sallybg commented Sep 24, 2024

Add human-readable sequence labels to post-mapped VRS output.
Remove commented-out hardcoding, since the mapper handles this score set correctly without hardcoding.

@sallybg sallybg requested a review from bencap September 24, 2024 16:17
Copy link
Collaborator

@bencap bencap left a comment

Choose a reason for hiding this comment

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

lgtm, just a couple questions I was curious about.

Comment on lines +626 to +627
else:
allele.location.sequenceReference.label = hgvs_string.split(":")[0]
Copy link
Collaborator

Choose a reason for hiding this comment

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

There will always be a colon in the hgvs string right? Just making sure we don't ever raise a key error down below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There should always be a colon in the post-mapped hgvs string, as long as the hgvs string was created by the function _create_post_mapped_hgvs_strings.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We are assuming that there's no colon in the transcript or chromosome name, though. I think that's a safe assumption, but if that assumption were to be wrong, then the post-mapped variant would not be created for the variant, and you're right that the associated error for that variant would be a KeyError.

Comment on lines -678 to -685
# TODO address this hardcoding, and if we keep it, this should be a score set mapping error message
# if metadata.urn == "urn:mavedb:00000072-a-1":
# msg = f"No RefSeq accession is available for {metadata.urn}."
# if not silent:
# click.echo(msg)
# _logger.warning(msg)
# return None

Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this raise a mapping error now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This score set raises a mapping error without the hardcoding now. This was addressed in the first release of the mapper for mavedb, but I hadn't removed the commented out code.

@sallybg sallybg merged commit 8d55408 into mavedb-main Sep 25, 2024
6 checks passed
@sallybg sallybg deleted the label-ref-seqs branch September 25, 2024 18:15
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