コード例 #1
0
  public ThermoResult correctMeltingResults(Environment environment) {

    double Tm = correctTemperature(environment);
    environment.setResult(Tm);

    return environment.getResult();
  }
コード例 #2
0
  public ThermoResult correctMeltingResults(Environment environment) {

    OptionManagement.logMessage("\n The sodium correction is");
    OptionManagement.logMethodName(methodName);
    OptionManagement.logMessage(temperatureCorrection);

    double NaEq = Helper.computesNaEquivalent(environment);
    double Fgc = environment.getSequences().computesPercentGC() / 100.0;

    double TmInverse =
        1.0 / (environment.getResult().getTm() + 273.15)
            + (3.85 * Fgc - 6.18) * 1 / 100000 * Math.log(NaEq);
    environment.setResult((1.0 / TmInverse) - 273.15);

    return environment.getResult();
  }