Skip to content

Commit

Permalink
fix flipping allele strand bug for genes on -ve strand
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymcrae committed Oct 28, 2021
1 parent 5aa9273 commit e094da8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
description='Package to examine de novo clustering',
long_description=io.open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
version="0.9.7",
version="0.9.8",
author="Jeremy McRae",
author_email="jeremy.mcrae@gmail.com",
license="MIT",
Expand Down
5 changes: 4 additions & 1 deletion src/site_rates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ void SitesChecks::check_position(int bp) {
alts.erase(matches);
}

if (_tx.get_strand() != fwd) {
ref = transdict[ref];
}

char mutated_aa;
std::string alt_seq = seq;
std::string category;
Expand All @@ -153,7 +157,6 @@ void SitesChecks::check_position(int bp) {
// figure out what the ref and alt alleles are, with respect to
// the + strand.
if (_tx.get_strand() != fwd) {
ref = transdict[ref];
alt = transdict[alt];
}

Expand Down

0 comments on commit e094da8

Please sign in to comment.