Class CvTermUtils


  • public class CvTermUtils
    extends Object
    Utility class for CvTerms
    Since:
    05/02/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • CvTermUtils

        public CvTermUtils()
    • Method Detail

      • getBestIdentifier

        public static String getBestIdentifier​(CvTerm cvObject)
        Gets the unique identifier of a CvObject. If it has PSI MI Identifier (miIdentifier) return it, otherwise returns the MOD identifier, If no MOD identifier, returns the PAR identifier. if no PAR identifier, returns the first identifier in the list of identifiers.
        Parameters:
        cvObject - The object to get the identifier from.
        Returns:
        The identifier. Will be null if no miIdentifier or identity xref is found.
        Since:
        1.8.0
      • getGene

        public static CvTerm getGene()

        Getter for the field gene.

        Returns:
        a CvTerm object.
      • getAllosteryMechanism

        public static CvTerm getAllosteryMechanism()

        Getter for the field allosteryMechanism.

        Returns:
        a CvTerm object.
      • getPsimi

        public static CvTerm getPsimi()

        Getter for the field psimi.

        Returns:
        a CvTerm object.
      • getPsimod

        public static CvTerm getPsimod()

        Getter for the field psimod.

        Returns:
        a CvTerm object.
      • getPsipar

        public static CvTerm getPsipar()

        Getter for the field psipar.

        Returns:
        a CvTerm object.
      • getIdentity

        public static CvTerm getIdentity()

        Getter for the field identity.

        Returns:
        a CvTerm object.
      • getSecondary

        public static CvTerm getSecondary()

        Getter for the field secondary.

        Returns:
        a CvTerm object.
      • getImexPrimary

        public static CvTerm getImexPrimary()

        Getter for the field imexPrimary.

        Returns:
        a CvTerm object.
      • getUndetermined

        public static CvTerm getUndetermined()

        Getter for the field undetermined.

        Returns:
        a CvTerm object.
      • getNTerminalRange

        public static CvTerm getNTerminalRange()

        Getter for the field nTerminalRange.

        Returns:
        a CvTerm object.
      • getCTerminalRange

        public static CvTerm getCTerminalRange()

        Getter for the field cTerminalRange.

        Returns:
        a CvTerm object.
      • getFuzzyRange

        public static CvTerm getFuzzyRange()

        getFuzzyRange

        Returns:
        a CvTerm object.
      • getNTerminal

        public static CvTerm getNTerminal()

        Getter for the field nTerminal.

        Returns:
        a CvTerm object.
      • getCTerminal

        public static CvTerm getCTerminal()

        Getter for the field cTerminal.

        Returns:
        a CvTerm object.
      • getNTerminalRagged

        public static CvTerm getNTerminalRagged()

        Getter for the field nTerminalRagged.

        Returns:
        a CvTerm object.
      • getGreaterThan

        public static CvTerm getGreaterThan()

        Getter for the field greaterThan.

        Returns:
        a CvTerm object.
      • getLessThan

        public static CvTerm getLessThan()

        Getter for the field lessThan.

        Returns:
        a CvTerm object.
      • getCertain

        public static CvTerm getCertain()

        Getter for the field certain.

        Returns:
        a CvTerm object.
      • getPutativeSelf

        public static CvTerm getPutativeSelf()

        getPutativeSelf

        Returns:
        a CvTerm object.
      • getSelf

        public static CvTerm getSelf()

        Getter for the field self.

        Returns:
        a CvTerm object.
      • getUnknownInteractorType

        public static CvTerm getUnknownInteractorType()

        Getter for the field unknownInteractorType.

        Returns:
        a CvTerm object.
      • createPsiMiDatabaseNameOnly

        public static CvTerm createPsiMiDatabaseNameOnly()

        createPsiMiDatabaseNameOnly

        Returns:
        a CvTerm object.
      • createIdentityQualifierNameOnly

        public static CvTerm createIdentityQualifierNameOnly()

        createIdentityQualifierNameOnly

        Returns:
        a CvTerm object.
      • createMICvTerm

        public static CvTerm createMICvTerm​(String name,
                                            String MI)

        createMICvTerm

        Parameters:
        name - a String object.
        MI - a String object.
        Returns:
        a CvTerm object.
      • createECOCvTerm

        public static CvTerm createECOCvTerm​(String name,
                                             String ecoId)

        createECOCvTerm

        Parameters:
        name - a String object.
        ecoId - a String object.
        Returns:
        a CvTerm object.
      • createGOCvTerm

        public static CvTerm createGOCvTerm​(String name,
                                            String goId)

        createGOCvTerm

        Parameters:
        name - a String object.
        goId - a String object.
        Returns:
        a CvTerm object.
      • createMODCvTerm

        public static CvTerm createMODCvTerm​(String name,
                                             String MOD)

        createMODCvTerm

        Parameters:
        name - a String object.
        MOD - a String object.
        Returns:
        a CvTerm object.
      • createPARCvTerm

        public static CvTerm createPARCvTerm​(String name,
                                             String PAR)

        createPARCvTerm

        Parameters:
        name - a String object.
        PAR - a String object.
        Returns:
        a CvTerm object.
      • createPsiMiDatabase

        public static CvTerm createPsiMiDatabase()

        createPsiMiDatabase

        Returns:
        a CvTerm object.
      • createPsiModDatabase

        public static CvTerm createPsiModDatabase()

        createPsiModDatabase

        Returns:
        a CvTerm object.
      • createPsiParDatabase

        public static CvTerm createPsiParDatabase()

        createPsiParDatabase

        Returns:
        a CvTerm object.
      • createIdentityQualifier

        public static CvTerm createIdentityQualifier()

        createIdentityQualifier

        Returns:
        a CvTerm object.
      • createChebiDatabase

        public static CvTerm createChebiDatabase()

        createChebiDatabase

        Returns:
        a CvTerm object.
      • createEnsemblDatabase

        public static CvTerm createEnsemblDatabase()

        createEnsemblDatabase

        Returns:
        a CvTerm object.
      • createEnsemblGenomesDatabase

        public static CvTerm createEnsemblGenomesDatabase()

        createEnsemblGenomesDatabase

        Returns:
        a CvTerm object.
      • createEntrezGeneIdDatabase

        public static CvTerm createEntrezGeneIdDatabase()

        createEntrezGeneIdDatabase

        Returns:
        a CvTerm object.
      • createRefseqDatabase

        public static CvTerm createRefseqDatabase()

        createRefseqDatabase

        Returns:
        a CvTerm object.
      • createDdbjEmblGenbankDatabase

        public static CvTerm createDdbjEmblGenbankDatabase()

        createDdbjEmblGenbankDatabase

        Returns:
        a CvTerm object.
      • createUniprotkbDatabase

        public static CvTerm createUniprotkbDatabase()

        createUniprotkbDatabase

        Returns:
        a CvTerm object.
      • createImexDatabase

        public static CvTerm createImexDatabase()

        createImexDatabase

        Returns:
        a CvTerm object.
      • createComplexPortalDatabase

        public static CvTerm createComplexPortalDatabase()

        createComplexPortalDatabase

        Returns:
        a CvTerm object.
      • createPubmedDatabase

        public static CvTerm createPubmedDatabase()

        createPubmedDatabase

        Returns:
        a CvTerm object.
      • createDoiDatabase

        public static CvTerm createDoiDatabase()

        createDoiDatabase

        Returns:
        a CvTerm object.
      • createInterproDatabase

        public static CvTerm createInterproDatabase()

        createInterproDatabase

        Returns:
        a CvTerm object.
      • createSmile

        public static CvTerm createSmile()

        createSmile

        Returns:
        a CvTerm object.
      • createStandardInchi

        public static CvTerm createStandardInchi()

        createStandardInchi

        Returns:
        a CvTerm object.
      • createStandardInchiKey

        public static CvTerm createStandardInchiKey()

        createStandardInchiKey

        Returns:
        a CvTerm object.
      • createRogid

        public static CvTerm createRogid()

        createRogid

        Returns:
        a CvTerm object.
      • createRigid

        public static CvTerm createRigid()

        createRigid

        Returns:
        a CvTerm object.
      • createCertainStatus

        public static CvTerm createCertainStatus()

        createCertainStatus

        Returns:
        a CvTerm object.
      • createPutativeSelf

        public static CvTerm createPutativeSelf()

        createPutativeSelf

        Returns:
        a CvTerm object.
      • createSelf

        public static CvTerm createSelf()

        createSelf

        Returns:
        a CvTerm object.
      • createRangeStatus

        public static CvTerm createRangeStatus()

        createRangeStatus

        Returns:
        a CvTerm object.
      • createUndeterminedStatus

        public static CvTerm createUndeterminedStatus()

        createUndeterminedStatus

        Returns:
        a CvTerm object.
      • createNTerminalRangeStatus

        public static CvTerm createNTerminalRangeStatus()

        createNTerminalRangeStatus

        Returns:
        a CvTerm object.
      • createCTerminalRangeStatus

        public static CvTerm createCTerminalRangeStatus()

        createCTerminalRangeStatus

        Returns:
        a CvTerm object.
      • createNTerminalStatus

        public static CvTerm createNTerminalStatus()

        createNTerminalStatus

        Returns:
        a CvTerm object.
      • createCTerminalStatus

        public static CvTerm createCTerminalStatus()

        createCTerminalStatus

        Returns:
        a CvTerm object.
      • createRaggedNTerminalStatus

        public static CvTerm createRaggedNTerminalStatus()

        createRaggedNTerminalStatus

        Returns:
        a CvTerm object.
      • createGreaterThanRangeStatus

        public static CvTerm createGreaterThanRangeStatus()

        createGreaterThanRangeStatus

        Returns:
        a CvTerm object.
      • createLessThanRangeStatus

        public static CvTerm createLessThanRangeStatus()

        createLessThanRangeStatus

        Returns:
        a CvTerm object.
      • createGeneInteractorType

        public static CvTerm createGeneInteractorType()

        createGeneInteractorType

        Returns:
        a CvTerm object.
      • createPolymerInteractorType

        public static CvTerm createPolymerInteractorType()

        createPolymerInteractorType

        Returns:
        a CvTerm object.
      • createProteinInteractorType

        public static CvTerm createProteinInteractorType()

        createProteinInteractorType

        Returns:
        a CvTerm object.
      • createNucleicAcidInteractorType

        public static CvTerm createNucleicAcidInteractorType()

        createNucleicAcidInteractorType

        Returns:
        a CvTerm object.
      • createBioactiveEntityType

        public static CvTerm createBioactiveEntityType()

        createBioactiveEntityType

        Returns:
        a CvTerm object.
      • createMoleculeSetType

        public static CvTerm createMoleculeSetType()

        createMoleculeSetType

        Returns:
        a CvTerm object.
      • createGeneNameAliasType

        public static CvTerm createGeneNameAliasType()

        createGeneNameAliasType

        Returns:
        a CvTerm object.
      • createComplexInteractorType

        public static CvTerm createComplexInteractorType()

        createComplexInteractorType

        Returns:
        a CvTerm object.
      • createComplexSynonym

        public static CvTerm createComplexSynonym()

        createComplexSynonym

        Returns:
        a CvTerm object.
      • createAuthorAssignedName

        public static CvTerm createAuthorAssignedName()

        createAuthorAssignedName

        Returns:
        a CvTerm object.
      • createGeneNameSynonym

        public static CvTerm createGeneNameSynonym()

        createGeneNameSynonym

        Returns:
        a CvTerm object.
      • createIsoformSynonym

        public static CvTerm createIsoformSynonym()

        createIsoformSynonym

        Returns:
        a CvTerm object.
      • createOrfName

        public static CvTerm createOrfName()

        createOrfName

        Returns:
        a CvTerm object.
      • createLocusName

        public static CvTerm createLocusName()

        createLocusName

        Returns:
        a CvTerm object.
      • createComplexRecommendedName

        public static CvTerm createComplexRecommendedName()

        createComplexRecommendedName

        Returns:
        a CvTerm object.
      • createComplexSystematicName

        public static CvTerm createComplexSystematicName()

        createComplexSystematicName

        Returns:
        a CvTerm object.
      • createUnspecifiedRole

        public static CvTerm createUnspecifiedRole()

        createUnspecifiedRole

        Returns:
        a CvTerm object.
      • createComplexPhysicalProperties

        public static CvTerm createComplexPhysicalProperties()

        createComplexPhysicalProperties

        Returns:
        a CvTerm object.
      • createImexPrimaryQualifier

        public static CvTerm createImexPrimaryQualifier()

        createImexPrimaryQualifier

        Returns:
        a CvTerm object.
      • createComplexPortalPrimaryQualifier

        public static CvTerm createComplexPortalPrimaryQualifier()

        createComplexPortalPrimaryQualifier

        Returns:
        a CvTerm object.
      • createAllosteryCooperativeMechanism

        public static CvTerm createAllosteryCooperativeMechanism()

        createAllosteryCooperativeMechanism

        Returns:
        a CvTerm object.
      • createIdentityXrefQualifier

        public static CvTerm createIdentityXrefQualifier()

        createIdentityXrefQualifier

        Returns:
        a CvTerm object.
      • createSecondaryXrefQualifier

        public static CvTerm createSecondaryXrefQualifier()

        createSecondaryXrefQualifier

        Returns:
        a CvTerm object.
      • createBiologicalFeatureType

        public static CvTerm createBiologicalFeatureType()

        createBiologicalFeatureType

        Returns:
        a CvTerm object.
      • createUnspecifiedMethod

        public static CvTerm createUnspecifiedMethod()

        createUnspecifiedMethod

        Returns:
        a CvTerm object.
      • createUnknownInteractorType

        public static CvTerm createUnknownInteractorType()

        createUnknownInteractorType

        Returns:
        a CvTerm object.
      • isCvTerm

        public static boolean isCvTerm​(CvTerm term,
                                       String mi,
                                       String name)
        Check if the CvTerm natches the MI term and/or the name if no MI term exist
        Parameters:
        term - : the term to check
        mi - : the mi id to compare
        name - : the name to compare
        Returns:
        true if the CvTerm natches the MI term and/or the name
      • getPsiMiReference

        public static Xref getPsiMiReference​(CvTerm term)

        getPsiMiReference

        Parameters:
        term - a CvTerm object.
        Returns:
        a Xref object.
      • getPsiModReference

        public static Xref getPsiModReference​(CvTerm term)

        getPsiModReference

        Parameters:
        term - a CvTerm object.
        Returns:
        a Xref object.
      • getPsiParReference

        public static Xref getPsiParReference​(CvTerm term)

        getPsiParReference

        Parameters:
        term - a CvTerm object.
        Returns:
        a Xref object.
      • createPsiMiDatabase

        public static CvTerm createPsiMiDatabase​(CvTerm identity)

        createPsiMiDatabase

        Parameters:
        identity - a CvTerm object.
        Returns:
        a CvTerm object.
      • createIdentityQualifier

        public static CvTerm createIdentityQualifier​(CvTerm psiMi)

        createIdentityQualifier

        Parameters:
        psiMi - a CvTerm object.
        Returns:
        a CvTerm object.