-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat: refactor hgvsTools and support c.
translation
#366
Conversation
It would be nice, albeit out of scope here, if the generic |
c.
translationc.
translation
@larrybabb can you pull in changes from |
@korikuzma @jsstevenson @ahwagner could you please try to prioritize reviewing this PR? The primary purpose of it was to get support for the |
@larrybabb I am in the middle of reviewing 😄 James is PTO today, but he did an initial review already |
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.
@larrybabb Great work! Overall, I like this change. I made some suggestions
@larrybabb as Kori said, I'm out for at least today (which will probably entail some frantic catch-up once I'm back) but for the sake of pragmatism, we can assume my approval once Kori's additional notes above are addressed |
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.
Two minor things. Good job @larrybabb
'refget_accession' (str): The accession ID of the reference genome. | ||
'start' (int): The start position of the allele. | ||
'end' (int): The end position of the allele. | ||
literal_sequence' (str): The literal sequence for the allele. |
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.
literal_sequence' (str): The literal sequence for the allele. | |
'literal_sequence' (str): The literal sequence for the allele. |
sstate = models.LiteralSequenceExpression(sequence=ins_seq) | ||
allele = models.Allele(location=location, state=sstate) | ||
allele = self._post_process_imported_allele(allele, **kwargs) | ||
# TODO: ask other devs if this should be down on all _from_... methods? |
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.
# TODO: ask other devs if this should be down on all _from_... methods? |
Address #365
Begin refactoring the Translator logic to aggregate the functions and logic related to
hgvs
and provide support forc.
from and to translation. This should be step in the direction of re-thinking the organization of how the Translators are architected.