コード例 #1
0
ファイル: vessels.py プロジェクト: flywind2/omero.biobank
 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)
コード例 #2
0
ファイル: individual.py プロジェクト: flywind2/omero.biobank
 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))
コード例 #3
0
ファイル: vessels.py プロジェクト: flywind2/omero.biobank
 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))
コード例 #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))
コード例 #5
0
ファイル: vessels.py プロジェクト: flywind2/omero.biobank
 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))
コード例 #6
0
ファイル: individual.py プロジェクト: flywind2/omero.biobank
 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
コード例 #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
コード例 #8
0
ファイル: vessels.py プロジェクト: flywind2/omero.biobank
 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
コード例 #9
0
ファイル: demographic.py プロジェクト: jburel/omero.biobank
 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
コード例 #10
0
 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)
コード例 #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
コード例 #12
0
ファイル: demographic.py プロジェクト: jburel/omero.biobank
 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))
コード例 #13
0
ファイル: vessels.py プロジェクト: flywind2/omero.biobank
 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)
コード例 #14
0
 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))
コード例 #15
0
ファイル: vessels.py プロジェクト: flywind2/omero.biobank
 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))
コード例 #16
0
 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)
コード例 #17
0
 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))
コード例 #18
0
 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))
コード例 #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))
コード例 #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))
コード例 #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
コード例 #22
0
 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)
コード例 #23
0
 def __preprocess_conf__(self, conf):
   if not 'snpMarkersSetUK' in conf:
     conf['snpMarkersSetUK'] = make_unique_key(conf['maker'], conf['model'],
                                               conf['release'])
   return conf
コード例 #24
0
 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)
コード例 #25
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))
コード例 #26
0
 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))