Class InteractorUtils


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

      • InteractorUtils

        public InteractorUtils()
    • Method Detail

      • createUnknownBasicInteractor

        public static Interactor createUnknownBasicInteractor()

        createUnknownBasicInteractor

        Returns:
        a Interactor object.
      • doesInteractorHaveType

        public static boolean doesInteractorHaveType​(Interactor interactor,
                                                     String typeId,
                                                     String typeName)
        To know if an interactor have a specific interactor type.
        Parameters:
        interactor - a Interactor object.
        typeId - a String object.
        typeName - a String object.
        Returns:
        true if the interactor has the type with given name/identifier
      • createProteinUniprot

        public static Protein createProteinUniprot​(String name,
                                                   String uniprot)

        createProteinUniprot

        Parameters:
        name - a String object.
        uniprot - a String object.
        Returns:
        a Protein object.
      • createProteinRefseq

        public static Protein createProteinRefseq​(String name,
                                                  String refseq)

        createProteinRefseq

        Parameters:
        name - a String object.
        refseq - a String object.
        Returns:
        a Protein object.
      • createProteinGeneName

        public static Protein createProteinGeneName​(String name,
                                                    String geneName)

        createProteinGeneName

        Parameters:
        name - a String object.
        geneName - a String object.
        Returns:
        a Protein object.
      • createProteinRogid

        public static Protein createProteinRogid​(String name,
                                                 String rogid)

        createProteinRogid

        Parameters:
        name - a String object.
        rogid - a String object.
        Returns:
        a Protein object.
      • createBioactiveEntityStandardInchi

        public static BioactiveEntity createBioactiveEntityStandardInchi​(String name,
                                                                         String standard)

        createBioactiveEntityStandardInchi

        Parameters:
        name - a String object.
        standard - a String object.
        Returns:
        a BioactiveEntity object.
      • createBioactiveEntityStandardInchiKey

        public static BioactiveEntity createBioactiveEntityStandardInchiKey​(String name,
                                                                            String key)

        createBioactiveEntityStandardInchiKey

        Parameters:
        name - a String object.
        key - a String object.
        Returns:
        a BioactiveEntity object.
      • createNucleicAcidDdbjEmblGenbank

        public static NucleicAcid createNucleicAcidDdbjEmblGenbank​(String name,
                                                                   String identity)

        createNucleicAcidDdbjEmblGenbank

        Parameters:
        name - a String object.
        identity - a String object.
        Returns:
        a NucleicAcid object.
      • createNucleicAcidRefseq

        public static NucleicAcid createNucleicAcidRefseq​(String name,
                                                          String identity)

        createNucleicAcidRefseq

        Parameters:
        name - a String object.
        identity - a String object.
        Returns:
        a NucleicAcid object.
      • createGeneRefseq

        public static Gene createGeneRefseq​(String name,
                                            String identity)

        createGeneRefseq

        Parameters:
        name - a String object.
        identity - a String object.
        Returns:
        a Gene object.
      • createGeneEnsembl

        public static Gene createGeneEnsembl​(String name,
                                             String identity)

        createGeneEnsembl

        Parameters:
        name - a String object.
        identity - a String object.
        Returns:
        a Gene object.
      • createGeneEnsemblGenomes

        public static Gene createGeneEnsemblGenomes​(String name,
                                                    String identity)

        createGeneEnsemblGenomes

        Parameters:
        name - a String object.
        identity - a String object.
        Returns:
        a Gene object.
      • createGeneEntrezGene

        public static Gene createGeneEntrezGene​(String name,
                                                String identity)

        createGeneEntrezGene

        Parameters:
        name - a String object.
        identity - a String object.
        Returns:
        a Gene object.
      • createPolymer

        public static Polymer createPolymer​(String name,
                                            String sequence)

        createPolymer

        Parameters:
        name - a String object.
        sequence - a String object.
        Returns:
        a Polymer object.