Skip to content

Commit

Permalink
ploidy
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrausch committed Jan 18, 2024
1 parent 89b0270 commit c14b7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bolog.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct BoLog {
double glObs = std::log10(boost::math::pdf(s, mean));
glObs = (glObs > SMALLEST_GL) ? glObs : SMALLEST_GL;
uint32_t plVariant = (uint32_t) boost::math::round(-10 * glObs);
uint32_t plPloidy = (uint32_t) boost::math::round(-10 * gl[file_c * MAX_CN + c.ploidy]);
uint32_t plPloidy = (uint32_t) boost::math::round(-10 * gl[file_c * MAX_CN + (int) std::round(c.ploidy)]);
int32_t varqual = plPloidy - plVariant;

// GQ
Expand Down

0 comments on commit c14b7ba

Please sign in to comment.