Beispiel #1
0
 def glycopeptide_hypotheses(self, user=None):
     return [
         hypothesis
         for hypothesis in self.hypothesis_manager
         if hypothesis.hypothesis_type == "glycopeptide" and
         has_access(hypothesis, user)
     ]
Beispiel #2
0
 def glycan_hypotheses(self, user=None):
     return [
         hypothesis
         for hypothesis in self.hypothesis_manager
         if hypothesis.hypothesis_type == "glycan_composition" and
         has_access(hypothesis, user)
     ]
Beispiel #3
0
 def glycan_analyses(self, user=None):
     return [analysis for analysis in (self.analysis_manager)
             if AnalysisTypeEnum.glycan_lc_ms == analysis.analysis_type and
             has_access(analysis, user)]
Beispiel #4
0
 def analyses(self, user=None):
     return [analysis for analysis in self.analysis_manager
             if has_access(analysis, user)]
Beispiel #5
0
 def hypotheses(self, user=None):
     return [
         hypothesis
         for hypothesis in self.hypothesis_manager
         if has_access(hypothesis, user)
     ]
Beispiel #6
0
 def samples(self, user_id=None):
     q = [sample for sample in self.sample_manager
          if has_access(sample, user_id)]
     return q