Exemplo n.º 1
0
    def _check_get_expression_set_params(self, params):
        if 'ref' not in params or params['ref'] is None:
            raise ValueError('"ref" parameter field specifiying the expression set is required')
        elif not util.check_reference(params['ref']):
            raise ValueError('"ref" parameter must be a valid workspace reference')
        if 'include_item_info' in params:
            if params['include_item_info'] not in [0, 1]:
                raise ValueError('"include_item_info" parameter field can only be set to 0 or 1')
        obj_spec = util.build_ws_obj_selector(params.get('ref'),
                                              params.get('ref_path_to_set', []))
        info = self.workspace_client.get_object_info3({"objects": [obj_spec]})

        return info["infos"][0][2], obj_spec
Exemplo n.º 2
0
 def _check_get_feature_set_set_params(self, params):
     if 'ref' not in params or params['ref'] is None:
         raise ValueError(
             '"ref" parameter field specifiying the FeatureSet set is required'
         )
     elif not check_reference(params['ref']):
         raise ValueError(
             '"ref" parameter must be a valid workspace reference')
     if 'include_item_info' in params:
         if params['include_item_info'] not in [0, 1]:
             raise ValueError(
                 '"include_item_info" parameter field can only be set to 0 or 1'
             )
 def _check_get_differential_expression_matrix_set_params(self, params):
     if 'ref' not in params or params['ref'] is None:
         raise ValueError(
             '"ref" parameter field specifiying the DifferentialExpressionMatrix set is required'
         )
     elif not check_reference(params['ref']):
         raise ValueError(
             '"ref" parameter must be a valid workspace reference')
     if 'include_item_info' in params:
         if params['include_item_info'] not in [0, 1]:
             raise ValueError(
                 '"include_item_info" parameter field can only be set to 0 or 1'
             )