public Document convertScoreToStorageNoSource(Score score) { return convertScoreToStorage(score.getScore(), null, score.getDescription()); }
private Document convertScoreToStorage(Score score) { return convertScoreToStorage(score.getScore(), score.getSource(), score.getDescription()); }
private void checkScore(List<Score> inScores, List<Score> outScores, String source) { Score inScore = getScore(inScores, source); Score outScore = getScore(outScores, source); if (inScore != null && outScore != null) { double inValue = inScore.getScore() == null ? 0 : inScore.getScore(); double outValue = outScore.getScore() == null ? 0 : outScore.getScore(); String inDescription = inScore.getDescription() == null ? "" : inScore.getDescription(); String outDescription = outScore.getDescription() == null ? "" : outScore.getDescription(); System.out.println(source + ": " + inValue + " vs " + outValue + " ; " + inDescription + " vs " + outDescription); } else if (inScore != null || outScore != null) { fail("Mismatchtch " + source + " values"); } } }
public static VariantAnnotationProto.Score createVariantAnnotationScore(Score score) { VariantAnnotationProto.Score.Builder builder = VariantAnnotationProto.Score.newBuilder() .setScore(score.getScore()) .setSource(score.getSource()) .setDescription(score.getDescription()); return builder.build(); } }
if (score.getScore() < sift) { sift = score.getScore(); siftDesc = score.getDescription(); polyphenDesc = score.getDescription();
trans.append(FIELD_SEP); if (sift != null) { trans.append(sift.getScore()).append(FIELD_SEP).append(sift.getDescription()); } else { trans.append(FIELD_SEP); trans.append(polyph.getScore()).append(FIELD_SEP).append(polyph.getDescription()); } else { trans.append(FIELD_SEP);
if (score.getSource().equalsIgnoreCase("sift")) { addNotNull(sift, score.getScore()); addNotNull(siftDesc, score.getDescription()); } else if (score.getSource().equalsIgnoreCase("polyphen")) { addNotNull(polyphen, score.getScore()); addNotNull(polyphenDesc, score.getDescription());