Class ExperimentUtils


  • public class ExperimentUtils
    extends Object
    Factory for experiment
    Since:
    11/02/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • ExperimentUtils

        public ExperimentUtils()
    • Method Detail

      • createUnknownBasicExperiment

        public static Experiment createUnknownBasicExperiment()

        createUnknownBasicExperiment

        Returns:
        a Experiment object.
      • createExperimentWithoutPublication

        public static Experiment createExperimentWithoutPublication()

        createExperimentWithoutPublication

        Returns:
        a Experiment object.
      • createBasicExperimentForModelledInteractions

        public static Experiment createBasicExperimentForModelledInteractions()

        createBasicExperimentForModelledInteractions

        Returns:
        a Experiment object.
      • createBasicExperimentForComplexes

        public static Experiment createBasicExperimentForComplexes()

        createBasicExperimentForComplexes

        Returns:
        a Experiment object.
      • createBasicExperimentForComplexes

        public static Experiment createBasicExperimentForComplexes​(int taxid)

        createBasicExperimentForComplexes

        Parameters:
        taxid - a int.
        Returns:
        a Experiment object.
      • createBasicExperimentForComplexes

        public static Experiment createBasicExperimentForComplexes​(int taxid,
                                                                   String name)

        createBasicExperimentForComplexes

        Parameters:
        taxid - a int.
        name - a String object.
        Returns:
        a Experiment object.
      • getPubmedReference

        public static Xref getPubmedReference​(Experiment exp)

        getPubmedReference

        Parameters:
        exp - a Experiment object.
        Returns:
        a Xref object.
      • getDoiReference

        public static Xref getDoiReference​(Experiment exp)

        getDoiReference

        Parameters:
        exp - a Experiment object.
        Returns:
        a Xref object.
      • createExperiment

        public static Experiment createExperiment​(String pubmedId,
                                                  CvTerm interactionDetectionMethod,
                                                  Organism hostOrganism)

        createExperiment

        Parameters:
        pubmedId - a String object.
        interactionDetectionMethod - a CvTerm object.
        hostOrganism - a Organism object.
        Returns:
        a Experiment object.
      • extractMostCommonParticipantDetectionMethodFrom

        public static CvTerm extractMostCommonParticipantDetectionMethodFrom​(Experiment exp)
        Compare all participant identification methods in all participant evidences from all the interactions evidences.
        Parameters:
        exp - a Experiment object.
        Returns:
        the most frequent participant identification method (first one if several have same frequency), null if no participant identification methods