Skip to content

Fix #116 and call PrematureStop when stop codon is added in the middle of an insertion#117

Merged
iskandr merged 4 commits intomasterfrom
fix-116
Aug 21, 2015
Merged

Fix #116 and call PrematureStop when stop codon is added in the middle of an insertion#117
iskandr merged 4 commits intomasterfrom
fix-116

Conversation

@leekaiinthesky
Copy link
Copy Markdown
Contributor

Fixes #116. Also ran into an issue that if a stop codon is not at the end of an in-frame coding variant, it will not get called a PrematureStop. I seems like it still should though, so I changed that too.

Here are three examples that were not called as PrematureStop before but are now.

Called Silent but should be PrematureStop
7 117182143 . T TGTA . . . GT 0/1
Called Deletion but should be PrematureStop
7 117182143 . TAACAG TATAAC . . . GT 0/1
Called Insertion but should be PrematureStop
7 117182143 . TA TATAGGTT . . . GT 0/1

Review on Reviewable

Comment thread varcode/in_frame_coding_effect.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sadly, we lost xrange in Py3, do you mind changing this to six.moves.range?

@iskandr
Copy link
Copy Markdown
Contributor

iskandr commented Aug 19, 2015

Thanks for catching this. Aside from making sure it works with Python 3, do you mind adding the example variants to test_effect_classes.py?

Python 2/3 compatibility
Called Silent but should be PrematureStop
7 117182143 . T TGTA . . . GT 0/1
Called Deletion but should be PrematureStop
7 117182143 . TAACAG TATAAC . . . GT 0/1
Called Insertion but should be PrematureStop
7 117182143 . TA TATAGGTT . . . GT 0/1
@leekaiinthesky
Copy link
Copy Markdown
Contributor Author

Ok, added! Thanks for the catch with compatibility.

iskandr added a commit that referenced this pull request Aug 21, 2015
Fix #116 and call PrematureStop when stop codon is added in the middle of an insertion
@iskandr iskandr merged commit bea7e4c into master Aug 21, 2015
@iskandr iskandr deleted the fix-116 branch August 21, 2015 00:20
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.

2 participants