Skip to content
Snippets Groups Projects
Commit fcf33a5e authored by tpylak's avatar tpylak
Browse files

LMS-2190 minor refactoring

SVN: 21112
parent 961b3980
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,7 @@ public class MaterialFeatureVectorSummaryLoader extends ExperimentFeatureVectorS
return null;
}
List<IWellData> materialWellDataList =
filterMaterialWells(wellDataCollection.getWellDataList(), materialId);
filterWellsByMaterial(wellDataCollection.getWellDataList(), materialId);
GroupByMap<Double, IWellData> subgroupMap = groupBySubgroup(materialWellDataList);
List<MaterialReplicaSubgroupFeatureVector> subgroups = Collections.emptyList();
......@@ -324,7 +324,7 @@ public class MaterialFeatureVectorSummaryLoader extends ExperimentFeatureVectorS
return subgroupMap.getKeys().size() == 1 && subgroupMap.getKeys().contains(null);
}
private static List<IWellData> filterMaterialWells(List<IWellData> wellDataList,
private static List<IWellData> filterWellsByMaterial(List<IWellData> wellDataList,
final TechId materialId)
{
return CollectionUtils.filter(wellDataList, new ICollectionFilter<IWellData>()
......
......@@ -38,9 +38,9 @@ public interface IWellData
Sample getWell();
/**
* Material in the well which allowed to find replicates.<br>
* Material in the well which allowed to find replicates (e.g. gene or compound).<br>
* Note: if the replicaId is the same for two wellData then the returned material is also the
* same
* same.
*/
Material getMaterial();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment