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
Adding aa_ref argument to StopLoss for variants which delete codons before stop #203
Conversation
@@ -617,14 +617,24 @@ def __init__( | |||
self, | |||
variant, | |||
transcript, | |||
extended_protein_sequence): | |||
aa_mutation_start_offset = len(transcript.protein_sequence) | |||
extended_protein_sequence, |
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.
To keep it in syc with the other classes, perhaps having aa_ref/aa_alt in that order would make more sense.
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.
Good idea, what do you think of the current changes? I'm a little nervous about having '*' in the aa_ref sequence since the stop codon isn't made explicit anywhere else (e.g. it's not in truncating effects).
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.
First time I saw "*"
in aa_ref
I was like "what just crashed my script?" (handling a big vcf file, generating mutated protein sequences to a file).
I don't think it's necessary to have the stop codon there, since it's implied that StopLoss
already affects it.
Being pedantic if you have a variant that affects both sides of the stop codon (e.g. chr1 100484693 TTCATCTGAACT CCCTAACCCCCC
), then aa_ref
would be FI*T
.
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.
Yeah, I agree that it's unnecessary, going to limit the aa_ref/aa_alt sequences to everything before a stop codon.
…ffects required '*' in aa_ref
Issue: #202
This change is