Example #1
0
 def __preprocess_conf__(self, conf):
   if not 'laneSlotUK' in conf:
     if 'tag' in conf:
       conf['laneSlotUK'] = make_unique_key(conf['tag'], conf['lane'].label)
     else:
       conf['laneSlotUK'] = make_unique_key(conf['lane'].label)
   return assign_vid(conf)
Example #2
0
 def __update_constraints__(self):
     st_code_uk = make_unique_key(self.study.id, self.studyCode)
     setattr(self.ome_obj, 'stCodeUK',
             self.to_omero(self.__fields__['stCodeUK'][0], st_code_uk))
     st_ind_uk = make_unique_key(self.study.id, self.individual.id)
     setattr(self.ome_obj, 'stIndUK',
             self.to_omero(self.__fields__['stIndUK'][0], st_ind_uk))
Example #3
0
 def __update_constraints__(self):
   csl_uk = make_unique_key(self.container.label, self.label)
   setattr(self.ome_obj, 'containerSlotLabelUK',
           self.to_omero(self.__fields__['containerSlotLabelUK'][0], csl_uk))
   csi_uk = make_unique_key(self.container.label, '%04d' % self.slot)
   setattr(self.ome_obj, 'containerSlotIndexUK',
           self.to_omero(self.__fields__['containerSlotIndexUK'][0], csi_uk))
Example #4
0
 def __update_constraints__(self):
   st_code_uk = make_unique_key(self.study.id, self.studyCode)
   setattr(self.ome_obj, 'stCodeUK',
           self.to_omero(self.__fields__['stCodeUK'][0], st_code_uk))
   st_ind_uk = make_unique_key(self.study.id, self.individual.id)
   setattr(self.ome_obj, 'stIndUK',
           self.to_omero(self.__fields__['stIndUK'][0], st_ind_uk))
Example #5
0
 def __update_constraints__(self):
   if self.tag:
     ls_uk = make_unique_key(self.tag, self.lane.label)
     setattr(self.ome_obj, 'laneSlotUK',
             self.to_omero(self.__field__['laneSlotUK'][0], ls_uk))
   else:
     ls_uk = make_unique_key(self.lane.label)
     setattr(self.ome_obj, 'laneSlotUK',
             self.to_omero(self.__field__['laneSlotUK'][0], ls_uk))
Example #6
0
 def __preprocess_conf__(self, conf):
     if not 'stCodeUK' in conf:
         svid = conf['study'].vid
         conf['stCodeUK'] = make_unique_key(svid, conf['studyCode'])
     if not 'stIndUK' in conf:
         svid = conf['study'].vid
         ivid = conf['individual'].vid
         conf['stIndUK'] = make_unique_key(svid, ivid)
     return conf
Example #7
0
 def __preprocess_conf__(self, conf):
   if not 'stCodeUK' in conf:
     svid = conf['study'].vid
     conf['stCodeUK'] = make_unique_key(svid, conf['studyCode'])
   if not 'stIndUK' in conf:
     svid = conf['study'].vid
     ivid = conf['individual'].vid
     conf['stIndUK'] = make_unique_key(svid, ivid)
   return conf
Example #8
0
 def __preprocess_conf__(self, conf):
   super(PlateWell, self).__preprocess_conf__(conf)
   if not 'containerSlotLabelUK' in conf:
     clabel = conf['container'].label
     label   = conf['label']
     conf['containerSlotLabelUK'] = make_unique_key(clabel, label)
   if not 'containerSlotIndexUK' in conf:
     clabel = conf['container'].label
     slot   = conf['slot']
     conf['containerSlotIndexUK'] = make_unique_key(clabel, '%04d' % slot)
   return conf
Example #9
0
 def __preprocess_conf__(self, conf):
     conf = assign_vid(conf)
     if not "demogUK" in conf:
         conf["demogUK"] = make_unique_key(
             conf["name"], conf["surname"], conf["birthdate"], conf["gender"].omero_id, conf["birthPlace"].id
         )
     return conf
 def __preprocess_conf__(self, conf):
     if not 'label' in conf:
         conf['label'] = '%s:%s' % (conf['flowCell'].label, conf['slot'])
     if not 'laneUK' in conf:
         conf['laneUK'] = make_unique_key(conf['flowCell'].label,
                                          conf['slot'])
     return super(Lane, self).__preprocess_conf__(conf)
Example #11
0
 def __preprocess_conf__(self, conf):
   conf = assign_vid(conf)
   if not 'demogUK' in conf:
     conf['demogUK'] = make_unique_key(conf['name'], conf['surname'],
                                       conf['birthdate'],
                                       conf['gender'].omero_id,
                                       conf['birthPlace'].id)
   return conf
Example #12
0
 def __update_constraints__(self):
     uk = make_unique_key(self.name, self.surname, self.birthdate, self.gender.omero_id, self.birthPlace.id)
     seattr(self.ome_obj, "demogUK", self.to_omero(self.__fields__["demogUK"][0], uk))
Example #13
0
 def __preprocess_conf__(self, conf):
   if not 'vesselsCollectionItemUK' in conf:
     v_vid = conf['vessel'].id
     vc_vid = conf['vesselsCollection'].id
     conf['vesselsCollectionItemUK'] = make_unique_key(vc_vid, v_vid)
   return assign_vid(conf)
 def __update_constraints__(self):
   l_uk = make_unique_key(self.flowCell.label, self.slot)
   setattr(self.ome_obj, 'laneUK',
           self.to_omero(self.__field__['laneUK'][0], l_uk))
Example #15
0
 def __update_contraints__(self):
   vci_uk = make_unique_key(self.vesselsCollection.id, self.vessel.id)
   setattr(self.ome_obj, 'vesselsCollectionItemUK',
           self.to_omero(self.__fields__['vesselsCollectionItemUK'][0], vci_uk))
 def __preprocess_conf__(self, conf):
     if not 'dataCollectionItemUK' in conf:
         dc_vid = conf['dataCollection'].id
         ds_vid = conf['dataSample'].id
         conf['dataCollectionItemUK'] = make_unique_key(dc_vid, ds_vid)
     return assign_vid(conf)
 def __update_constraints__(self):
     l_uk = make_unique_key(self.flowCell.label, self.slot)
     setattr(self.ome_obj, 'laneUK',
             self.to_omero(self.__field__['laneUK'][0], l_uk))
 def __update_constraints__(self):
     dci_uk = make_unique_key(self.dataCollection.id, self.dataSample.id)
     setattr(
         self.ome_obj, 'dataCollectionItemUK',
         self.to_omero(self.__fields__['dataCollectionItemUK'][0], dci_uk))
Example #19
0
 def __update_constraints__(self):
   uk = make_unique_key(self.name, self.surname, self.birthdate,
                        self.gender.omero_id, self.birthPlace.id)
   seattr(self.ome_obj, 'demogUK',
          self.to_omero(self.__fields__['demogUK'][0], uk))
Example #20
0
 def __update_constraints__(self):
     uk = make_unique_key(self.maker, self.model, self.release)
     setattr(self.ome_obj, 'snpMarkersSetUK',
             self.to_omero(self.__fields__['snpMarkersSetUK'][0], uk))
Example #21
0
 def __preprocess_conf__(self, conf):
     if not 'snpMarkersSetUK' in conf:
         conf['snpMarkersSetUK'] = make_unique_key(conf['maker'],
                                                   conf['model'],
                                                   conf['release'])
     return conf
 def __preprocess_conf__(self, conf):
   if not 'label' in conf:
     conf['label'] = '%s:%s' % (conf['flowCell'].label, conf['slot'])
   if not 'laneUK' in conf:
     conf['laneUK'] = make_unique_key(conf['flowCell'].label, conf['slot'])
   return super(Lane, self).__preprocess_conf__(conf)
 def __preprocess_conf__(self, conf):
   if not 'snpMarkersSetUK' in conf:
     conf['snpMarkersSetUK'] = make_unique_key(conf['maker'], conf['model'],
                                               conf['release'])
   return conf
 def __preprocess_conf__(self, conf):
   if not 'dataCollectionItemUK' in conf:
     dc_vid = conf['dataCollection'].id
     ds_vid = conf['dataSample'].id
     conf['dataCollectionItemUK'] = make_unique_key(dc_vid, ds_vid)
   return assign_vid(conf)
 def __update_constraints__(self):
   uk = make_unique_key(self.maker, self.model, self.release)
   setattr(self.ome_obj, 'snpMarkersSetUK',
           self.to_omero(self.__fields__['snpMarkersSetUK'][0], uk))
 def __update_constraints__(self):
   dci_uk = make_unique_key(self.dataCollection.id, self.dataSample.id)
   setattr(self.ome_obj, 'dataCollectionItemUK',
           self.to_omero(self.__fields__['dataCollectionItemUK'][0], dci_uk))