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

Optionally filter by number of mismatches after the variant #74

Merged
merged 3 commits into from
Jan 17, 2017

Conversation

julia326
Copy link
Contributor

@julia326 julia326 commented Jan 17, 2017

at least during matching sequence to reference context.

@iskandr am I missing any other points in isovar logic where I need to take the number of mismatches after the variant into account?

Fixes #73


This change is Reviewable

@coveralls
Copy link

coveralls commented Jan 17, 2017

Coverage Status

Coverage increased (+0.05%) to 88.836% when pulling 31e45ba on filter-mismatches-after-variant into e201889 on master.

if len_diff > 0:
# if the reference is shorter than the read, the read runs into the intron - these count as
# mismatches. pad the reference suffix if necessary with underscores
reference_suffix += '_' * len_diff
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a fan of modifying the cDNA sequence with extra characters. Why not just add max(0, len_diff) to the sum below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes much more sense, done

@coveralls
Copy link

coveralls commented Jan 17, 2017

Coverage Status

Coverage increased (+0.1%) to 88.88% when pulling a977d4c on filter-mismatches-after-variant into e201889 on master.

@julia326 julia326 merged commit 4b82673 into master Jan 17, 2017
@julia326 julia326 deleted the filter-mismatches-after-variant branch January 17, 2017 20:28
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