@@ -107,7 +107,7 @@ protected boolean shouldAddInputMaterials()
107107 return true ;
108108 }
109109
110- private ElisaImportHelper getImportHelper (AssayUploadXarContext context , PlateBasedAssayProvider provider , ExpProtocol protocol , File dataFile ) throws ExperimentException
110+ private ElisaImportHelper getImportHelper (AssayUploadXarContext context , PlateBasedAssayProvider provider , ExpProtocol protocol , FileLike dataFile ) throws ExperimentException
111111 {
112112 if (provider .getMetadataInputFormat (protocol ).equals (SampleMetadataInputFormat .MANUAL ))
113113 {
@@ -135,7 +135,7 @@ public Map<DataType, DataIteratorBuilder> getValidationDataMap(ExpData data, Fil
135135 Map <String , DomainProperty > sampleProperties = plateProvider .getSampleWellGroupDomain (protocol )
136136 .getProperties ().stream ()
137137 .collect (Collectors .toMap (DomainProperty ::getName , dp -> dp ));
138- ElisaImportHelper importHelper = getImportHelper (xarContext , plateProvider , protocol , dataFile . toNioPathForRead (). toFile () );
138+ ElisaImportHelper importHelper = getImportHelper (xarContext , plateProvider , protocol , dataFile );
139139
140140 for (String plateName : importHelper .getPlates ())
141141 {
@@ -148,7 +148,7 @@ public Map<DataType, DataIteratorBuilder> getValidationDataMap(ExpData data, Fil
148148 SimpleRegression regression = new SimpleRegression (true );
149149 Map <String , Double > standardConcentrations = importHelper .getStandardConcentrations (plateName , analytePlateEntry .getKey ());
150150
151- CurveFit standardCurve = calculateStandardCurve (run , plate , regression , standardConcentrations , runDomain );
151+ CurveFit <?> standardCurve = calculateStandardCurve (run , plate , regression , standardConcentrations , runDomain );
152152 if (standardCurve != null && standardCurve .getParameters () == null )
153153 throw new ExperimentException ("Unable to fit the standard concentrations to a curve, please check the input data and try again" );
154154
@@ -321,7 +321,7 @@ private boolean isRowEmptyOrNull(Map<String, Object> row)
321321 * data and can be used to generate an R squared value.
322322 */
323323 @ Nullable
324- private CurveFit calculateStandardCurve (ExpRun run , Plate plate , @ Nullable SimpleRegression regression , Map <String , Double > standardConcentrations ,
324+ private CurveFit <?> calculateStandardCurve (ExpRun run , Plate plate , @ Nullable SimpleRegression regression , Map <String , Double > standardConcentrations ,
325325 Domain runDomain ) throws ExperimentException
326326 {
327327 // compute the calibration curve, there could be multiple control groups but one contains the standards
@@ -333,7 +333,7 @@ private CurveFit calculateStandardCurve(ExpRun run, Plate plate, @Nullable Simpl
333333
334334 for (WellGroup replicate : stdWellGroup .getOverlappingGroups (WellGroup .Type .REPLICATE ))
335335 {
336- maxValue = replicate . getMean () > maxValue ? replicate .getMean () : maxValue ;
336+ maxValue = Math . max ( replicate .getMean (), maxValue ) ;
337337 }
338338
339339 for (WellGroup replicate : stdWellGroup .getOverlappingGroups (WellGroup .Type .REPLICATE ))
@@ -358,7 +358,7 @@ private CurveFit calculateStandardCurve(ExpRun run, Plate plate, @Nullable Simpl
358358
359359 // Compute curve fit parameters based on the selected curve fit (default to linear for legacy assay designs)
360360 StatsService .CurveFitType curveFitType = ElisaManager .getRunCurveFitType (runDomain , run );
361- CurveFit curveFit = StatsService .get ().getCurveFit (curveFitType , points .toArray (DoublePoint []::new ));
361+ CurveFit <?> curveFit = StatsService .get ().getCurveFit (curveFitType , points .toArray (DoublePoint []::new ));
362362 curveFit .setLogXScale (false );
363363 curveFit .setAssumeCurveDecreasing (false );
364364
0 commit comments