/**
  * @param hybridizationDatas
  * @return
  */
 protected List<float[]> retrieveAllHybridizationValues(
     List<HybridizationData> hybridizationDatas) {
   List<float[]> allHybridizationsValues = new ArrayList<float[]>();
   for (HybridizationData hybridizationData : hybridizationDatas) {
     float[] values = ((FloatColumn) hybridizationData.getDataColumns().get(0)).getValues();
     allHybridizationsValues.add(values);
   }
   return allHybridizationsValues;
 }
Пример #2
0
 @Test
 public void testGetDataSet_Hybridizations1() throws Exception {
   logForSilverCompatibility(TEST_NAME, "testGetDataSet_Hybridizations1");
   DataSetRequest dataRequest = new DataSetRequest();
   String hid =
       "URN:LSID:caarray.nci.nih.gov:gov.nih.nci.caarray.external.v1_0.sample.Hybridization:1";
   dataRequest.setHybridizations(Collections.singleton(new CaArrayEntityReference(hid)));
   String qtid =
       "URN:LSID:caarray.nci.nih.gov:gov.nih.nci.caarray.external.v1_0.data.QuantitationType:24";
   dataRequest.setQuantitationTypes(Collections.singleton(new CaArrayEntityReference(qtid)));
   DataSet ds = service.getDataSet(dataRequest);
   List<HybridizationData> l = ds.getDatas();
   assertEquals(1, l.size());
   HybridizationData hd = l.get(0);
   assertEquals(1, hd.getDataColumns().size());
   assertEquals(qtid, hd.getDataColumns().get(0).getQuantitationType().getId());
   String resultId = hd.getHybridization().getId();
   assertEquals(hid, resultId);
 }