def glycopeptide_hypotheses(self, user=None): return [ hypothesis for hypothesis in self.hypothesis_manager if hypothesis.hypothesis_type == "glycopeptide" and has_access(hypothesis, user) ]
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) ]
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)]
def analyses(self, user=None): return [analysis for analysis in self.analysis_manager if has_access(analysis, user)]
def hypotheses(self, user=None): return [ hypothesis for hypothesis in self.hypothesis_manager if has_access(hypothesis, user) ]
def samples(self, user_id=None): q = [sample for sample in self.sample_manager if has_access(sample, user_id)] return q