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

Adding aa_ref argument to StopLoss for variants which delete codons before stop #203

Merged
merged 6 commits into from Dec 5, 2016

Conversation

iskandr
Copy link
Contributor

@iskandr iskandr commented Dec 3, 2016

Issue: #202


This change is Reviewable

@iskandr iskandr changed the title Adding aa_ref argument to StopLoss for variants which delete codons before stop WIP: Adding aa_ref argument to StopLoss for variants which delete codons before stop Dec 3, 2016
@@ -617,14 +617,24 @@ def __init__(
self,
variant,
transcript,
extended_protein_sequence):
aa_mutation_start_offset = len(transcript.protein_sequence)
extended_protein_sequence,
Copy link

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.

Copy link
Contributor Author

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).

Copy link

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.

Copy link
Contributor Author

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.

@coveralls
Copy link

coveralls commented Dec 5, 2016

Coverage Status

Coverage decreased (-0.02%) to 88.954% when pulling de412e6 on stoploss-with-extra-codons into 23f7dd5 on master.

@iskandr iskandr changed the title WIP: Adding aa_ref argument to StopLoss for variants which delete codons before stop Adding aa_ref argument to StopLoss for variants which delete codons before stop Dec 5, 2016
@coveralls
Copy link

coveralls commented Dec 5, 2016

Coverage Status

Coverage decreased (-0.3%) to 88.703% when pulling 0af2084 on stoploss-with-extra-codons into 23f7dd5 on master.

@iskandr iskandr merged commit a811b1e into master Dec 5, 2016
@iskandr iskandr deleted the stoploss-with-extra-codons branch December 6, 2016 16:00
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.

None yet

3 participants