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

feat!: create method for GRCh38 to MANE protein representation #211

Merged
merged 34 commits into from
Oct 20, 2023

Conversation

korikuzma
Copy link
Member

@korikuzma korikuzma commented Oct 16, 2023

Addresses #151 for GRCh38 (will do liftover/check at a later time). This is needed for VarCat

Notes:

  • MANETranscript updates:
    • Add method grch38_to_mane_p
      • Given GRCh38 representation, will return MANE protein representation. Also allows for longest compatible remaining representation to be returned if no compatible MANE representation found.
    • Updates get_longest_compatible_transcript
      • gene is now optional
      • Adds end_annotation_layer as a parameter. This will allow you to either return protein or cdna representation when set.
  • MANETranscriptMappings updates:
    • get_gene_mane_data always returns list. If no MANE data found, will return empty list (previously returned None)
  • UTADatabase updates:
    • get_transcripts_from_gene renamed to get_transcripts
      • gene is now an optional parameter

@korikuzma korikuzma added enhancement New feature or request priority:high High priority labels Oct 16, 2023
@korikuzma korikuzma self-assigned this Oct 16, 2023
@korikuzma korikuzma removed the request for review from jsstevenson October 16, 2023 22:22
@korikuzma korikuzma marked this pull request as draft October 16, 2023 22:22
@korikuzma
Copy link
Member Author

Added test for #212 which pointed out a bug for braf v600e

@korikuzma
Copy link
Member Author

This refactor work has made me think about #63, specifically this comment

@korikuzma korikuzma marked this pull request as ready for review October 16, 2023 22:49
@korikuzma
Copy link
Member Author

Done making changes. Ready for review!

jsstevenson
jsstevenson previously approved these changes Oct 19, 2023
Copy link
Member

@jsstevenson jsstevenson left a comment

Choose a reason for hiding this comment

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

lgtm, two small things

  1. I think changing arguments for public methods probably entails an API break (i.e. a "!")
  2. made a note about including an extra linebreak in docstrings for public methods/any methods that could conceivably have API pages generated for them

cool_seq_tool/mappers/mane_transcript.py Show resolved Hide resolved
@korikuzma korikuzma changed the title feat: create method for GRCh38 to MANE protein representation feat!: create method for GRCh38 to MANE protein representation Oct 19, 2023
@korikuzma
Copy link
Member Author

Need to actually return both cdna and protein representation

@korikuzma
Copy link
Member Author

Actually, I'm going to hold off on this

@korikuzma korikuzma merged commit af67d8e into main Oct 20, 2023
10 checks passed
@korikuzma korikuzma deleted the issue-151 branch October 20, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:high High priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants