Skip to content

Commit

Permalink
Solve ties by the lowest stoichiometry assembly eppic-team#161
Browse files Browse the repository at this point in the history
This ensures we always have a BIO assembly, and only one, for each
structure.
  • Loading branch information
lafita committed Feb 9, 2017
1 parent fc6e801 commit 41592d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions eppic-cli/src/main/java/eppic/assembly/CrystalAssemblies.java
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,12 @@ public void score() {
if (indices.size() == 1) {
uniques.get(maxIndx).setCall(CallType.BIO);
} else {
// if not a unique assembly
// if not a unique assembly, choose the lowest stoichiometry
for (Integer i:indices) {
uniques.get(i).setCall(CallType.NO_PREDICTION);
if (i == Collections.min(indices))
uniques.get(i).setCall(CallType.BIO);
else
uniques.get(i).setCall(CallType.CRYSTAL);
}
}
}
Expand Down

0 comments on commit 41592d3

Please sign in to comment.