Skip to content

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

@andrewdavidsmith

Description

@andrewdavidsmith

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions