Package psidev.psi.mi.jami.utils
Class OrganismUtils
- java.lang.Object
-
- psidev.psi.mi.jami.utils.OrganismUtils
-
public class OrganismUtils extends Object
Created with IntelliJ IDEA.- Since:
- 29/07/13
- Version:
- $Id: $
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description OrganismUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Organism
createChemicalSynthesisOrganism()
createChemicalSynthesisOrganismstatic Organism
createInSilicoOrganism()
createInSilicoOrganismstatic Organism
createInVitroOrganism()
createInVitroOrganismstatic Organism
createInVivoOrganism()
createInVivoOrganismstatic Organism
createSpecialistOrganism(int taxID)
If the TaxId is one of the reserved numbers (-5 to -1), it denotes a non-real organism.static Organism
createUnknownOrganism()
createUnknownOrganism
-
-
-
Method Detail
-
createSpecialistOrganism
public static Organism createSpecialistOrganism(int taxID)
If the TaxId is one of the reserved numbers (-5 to -1), it denotes a non-real organism. An organism with these names will be produced if there is match. Otherwise null is returned. -1 = In Vitro -2 = Chemical synthesis -3 = Unknown -4 = In vivo -5 = In Silico- Parameters:
taxID
- A taxId which might match one of the reserved terms.- Returns:
- A complete organism record if the taxID matches reserved term. Null if it could not be found.
-
createUnknownOrganism
public static Organism createUnknownOrganism()
createUnknownOrganism
- Returns:
- a
Organism
object.
-
createInVitroOrganism
public static Organism createInVitroOrganism()
createInVitroOrganism
- Returns:
- a
Organism
object.
-
createChemicalSynthesisOrganism
public static Organism createChemicalSynthesisOrganism()
createChemicalSynthesisOrganism
- Returns:
- a
Organism
object.
-
createInVivoOrganism
public static Organism createInVivoOrganism()
createInVivoOrganism
- Returns:
- a
Organism
object.
-
-