コード例 #1
0
 private Set<ScorisQig> getScorisQigs(Structure... structures) {
   MarkGroup markGroup = new MarkGroup();
   for (Structure structure : structures) markGroup.getStructures().add(structure);
   ScorisQig scorisQig = new ScorisQig();
   scorisQig.setId(1);
   scorisQig.setMarkGroup(markGroup);
   Set<ScorisQig> scorisQigs = new HashSet<ScorisQig>();
   scorisQigs.add(scorisQig);
   return scorisQigs;
 }
コード例 #2
0
  private Integer getTmdTolerance(QualityModel qualityModel, MarkGroup markGroup)
      throws TranslatorException {
    throwExceptionForNullInput(qualityModel, "qualityModel");
    String qmName = qualityModel.getName();

    if (QualityModel.SEEDING_TMD.equals(qmName) || QualityModel.SEEDING_AMD_TMD.equals(qmName))
      return markGroup.getTmdTolerance();
    else return null;
  }