fix for #420 and #710 - selenocysteine support #814
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
In this MR we are adding support to create correct hgvs_p names, for variants that impact Selenocysteine positions.
Previously they would yield
p.?, however now it is possible to create names likeNP_065184.2:p.Sec462Arg, orNP_065184.2:p.U127delDetails:
After getting the protein accession, fetches the reference protein sequence
Checks if it contains 'U' (selenocysteine)
If found, re-translates using TranslationTable.selenocysteine
Stores the actual translation table used in self.translation_table
Unfortunately also needed to address linting in the files, since I could not commit otherwise.