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

Strange statement in code associated with writing the posterior scores #5

Open
andrewdavidsmith opened this issue Jan 17, 2018 · 0 comments

Comments

@andrewdavidsmith
Copy link
Contributor

There seems to be a condition check, but not an assignment. I'm not sure the purpose of this:

if (!posterior_score_file.empty() && posterior_score_file != "None")
{
size_t k = 0;
for (size_t i = 0; i < scores.size(); ++i)
for (size_t j = 0; j < scores[i].size(); ++j)
{
scores[i][j] == tmp_classes[k] ? scores[i][j] : 1 - scores[i][j];
++k;
}
write_wigfile(scores, bin_bounds, posterior_score_file);
if (VERBOSE)
cout << "Bin score file: " + posterior_score_file << endl;
}

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

No branches or pull requests

1 participant