Class CvTermUtils
- java.lang.Object
-
- psidev.psi.mi.jami.utils.CvTermUtils
-
public class CvTermUtils extends Object
Utility class for CvTerms- Since:
05/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description CvTermUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CvTerm
createAllosteryCooperativeMechanism()
createAllosteryCooperativeMechanismstatic CvTerm
createAuthorAssignedName()
createAuthorAssignedNamestatic CvTerm
createBioactiveEntityType()
createBioactiveEntityTypestatic CvTerm
createBiologicalFeatureType()
createBiologicalFeatureTypestatic CvTerm
createCertainStatus()
createCertainStatusstatic CvTerm
createChebiDatabase()
createChebiDatabasestatic CvTerm
createComplexInteractorType()
createComplexInteractorTypestatic CvTerm
createComplexPhysicalProperties()
createComplexPhysicalPropertiesstatic CvTerm
createComplexPortalDatabase()
createComplexPortalDatabasestatic CvTerm
createComplexPortalPrimaryQualifier()
createComplexPortalPrimaryQualifierstatic CvTerm
createComplexRecommendedName()
createComplexRecommendedNamestatic CvTerm
createComplexSynonym()
createComplexSynonymstatic CvTerm
createComplexSystematicName()
createComplexSystematicNamestatic CvTerm
createCTerminalRangeStatus()
createCTerminalRangeStatusstatic CvTerm
createCTerminalStatus()
createCTerminalStatusstatic CvTerm
createDdbjEmblGenbankDatabase()
createDdbjEmblGenbankDatabasestatic CvTerm
createDoiDatabase()
createDoiDatabasestatic CvTerm
createECOCvTerm(String name, String ecoId)
createECOCvTermstatic CvTerm
createEnsemblDatabase()
createEnsemblDatabasestatic CvTerm
createEnsemblGenomesDatabase()
createEnsemblGenomesDatabasestatic CvTerm
createEntrezGeneIdDatabase()
createEntrezGeneIdDatabasestatic CvTerm
createGeneInteractorType()
createGeneInteractorTypestatic CvTerm
createGeneNameAliasType()
createGeneNameAliasTypestatic CvTerm
createGeneNameSynonym()
createGeneNameSynonymstatic CvTerm
createGOCvTerm(String name, String goId)
createGOCvTermstatic CvTerm
createGreaterThanRangeStatus()
createGreaterThanRangeStatusstatic CvTerm
createIdentityQualifier()
createIdentityQualifierstatic CvTerm
createIdentityQualifier(CvTerm psiMi)
createIdentityQualifierstatic CvTerm
createIdentityQualifierNameOnly()
createIdentityQualifierNameOnlystatic CvTerm
createIdentityXrefQualifier()
createIdentityXrefQualifierstatic CvTerm
createImexDatabase()
createImexDatabasestatic CvTerm
createImexPrimaryQualifier()
createImexPrimaryQualifierstatic CvTerm
createInterproDatabase()
createInterproDatabasestatic CvTerm
createIsoformSynonym()
createIsoformSynonymstatic CvTerm
createLessThanRangeStatus()
createLessThanRangeStatusstatic CvTerm
createLocusName()
createLocusNamestatic CvTerm
createMICvTerm(String name, String MI)
createMICvTermstatic CvTerm
createMODCvTerm(String name, String MOD)
createMODCvTermstatic CvTerm
createMoleculeSetType()
createMoleculeSetTypestatic CvTerm
createNTerminalRangeStatus()
createNTerminalRangeStatusstatic CvTerm
createNTerminalStatus()
createNTerminalStatusstatic CvTerm
createNucleicAcidInteractorType()
createNucleicAcidInteractorTypestatic CvTerm
createOrfName()
createOrfNamestatic CvTerm
createPARCvTerm(String name, String PAR)
createPARCvTermstatic CvTerm
createPolymerInteractorType()
createPolymerInteractorTypestatic CvTerm
createProteinInteractorType()
createProteinInteractorTypestatic CvTerm
createPsiMiDatabase()
createPsiMiDatabasestatic CvTerm
createPsiMiDatabase(CvTerm identity)
createPsiMiDatabasestatic CvTerm
createPsiMiDatabaseNameOnly()
createPsiMiDatabaseNameOnlystatic CvTerm
createPsiModDatabase()
createPsiModDatabasestatic CvTerm
createPsiParDatabase()
createPsiParDatabasestatic CvTerm
createPubmedDatabase()
createPubmedDatabasestatic CvTerm
createPutativeSelf()
createPutativeSelfstatic CvTerm
createRaggedNTerminalStatus()
createRaggedNTerminalStatusstatic CvTerm
createRangeStatus()
createRangeStatusstatic CvTerm
createRefseqDatabase()
createRefseqDatabasestatic CvTerm
createRigid()
createRigidstatic CvTerm
createRogid()
createRogidstatic CvTerm
createSecondaryXrefQualifier()
createSecondaryXrefQualifierstatic CvTerm
createSelf()
createSelfstatic CvTerm
createSmile()
createSmilestatic CvTerm
createStandardInchi()
createStandardInchistatic CvTerm
createStandardInchiKey()
createStandardInchiKeystatic CvTerm
createUndeterminedStatus()
createUndeterminedStatusstatic CvTerm
createUniprotkbDatabase()
createUniprotkbDatabasestatic CvTerm
createUnknownInteractorType()
createUnknownInteractorTypestatic CvTerm
createUnspecifiedMethod()
createUnspecifiedMethodstatic CvTerm
createUnspecifiedRole()
createUnspecifiedRolestatic CvTerm
getAllosteryMechanism()
Getter for the fieldallosteryMechanism
.static String
getBestIdentifier(CvTerm cvObject)
Gets the unique identifier of a CvObject.static CvTerm
getCertain()
Getter for the fieldcertain
.static CvTerm
getCTerminal()
Getter for the fieldcTerminal
.static CvTerm
getCTerminalRange()
Getter for the fieldcTerminalRange
.static CvTerm
getFuzzyRange()
getFuzzyRangestatic CvTerm
getGene()
Getter for the fieldgene
.static CvTerm
getGreaterThan()
Getter for the fieldgreaterThan
.static CvTerm
getIdentity()
Getter for the fieldidentity
.static CvTerm
getImexPrimary()
Getter for the fieldimexPrimary
.static CvTerm
getLessThan()
Getter for the fieldlessThan
.static CvTerm
getNTerminal()
Getter for the fieldnTerminal
.static CvTerm
getNTerminalRagged()
Getter for the fieldnTerminalRagged
.static CvTerm
getNTerminalRange()
Getter for the fieldnTerminalRange
.static CvTerm
getPsimi()
Getter for the fieldpsimi
.static Xref
getPsiMiReference(CvTerm term)
getPsiMiReferencestatic CvTerm
getPsimod()
Getter for the fieldpsimod
.static Xref
getPsiModReference(CvTerm term)
getPsiModReferencestatic CvTerm
getPsipar()
Getter for the fieldpsipar
.static Xref
getPsiParReference(CvTerm term)
getPsiParReferencestatic CvTerm
getPutativeSelf()
getPutativeSelfstatic CvTerm
getSecondary()
Getter for the fieldsecondary
.static CvTerm
getSelf()
Getter for the fieldself
.static CvTerm
getUndetermined()
Getter for the fieldundetermined
.static CvTerm
getUnknownInteractorType()
Getter for the fieldunknownInteractorType
.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
-
-
-
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
-
getAllosteryMechanism
public static CvTerm getAllosteryMechanism()
Getter for the field
allosteryMechanism
.- 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.
-
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.
-
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.
-
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.
-
createStandardInchi
public static CvTerm createStandardInchi()
createStandardInchi
- Returns:
- a
CvTerm
object.
-
createStandardInchiKey
public static CvTerm createStandardInchiKey()
createStandardInchiKey
- Returns:
- a
CvTerm
object.
-
createCertainStatus
public static CvTerm createCertainStatus()
createCertainStatus
- Returns:
- a
CvTerm
object.
-
createPutativeSelf
public static CvTerm createPutativeSelf()
createPutativeSelf
- 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.
-
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 checkmi
- : the mi id to comparename
- : the name to compare- Returns:
- true if the CvTerm natches the MI term and/or the name
-
-