public class NCBITaxon extends Object implements Comparable<NCBITaxon>
Constructor and Description |
---|
NCBITaxon(int inTaxonId) |
public static final NCBITaxon HOMO_SAPIENS
public static final NCBITaxon MUS_MUSCULUS
public static final NCBITaxon RATTUS_NORVEGICUS
public static final NCBITaxon CRICETULUS_GRISEUS
public static final NCBITaxon ORYCTOLAGUS_CUNICULUS
public static final NCBITaxon BOS_TAURUS
public static final NCBITaxon EQUUS_CABALLUS
public static final NCBITaxon SUS_SCROFA
public static final NCBITaxon OVIS_ARIES
public static final NCBITaxon XENOPUS_LAEVIS
public static final NCBITaxon DROSOPHILA_MELANOGASTER
public static final NCBITaxon ESCHERICHIA_COLI
public static final NCBITaxon SACCHAROMYCES_CEREVISIAE
public static final NCBITaxon CANIS_FAMILIARIS
public static final NCBITaxon PAN_TROGLODYTES
public static final NCBITaxon MACACA_MULATTA
public static final NCBITaxon CAMELUS_BACTRIANUS
public static final NCBITaxon CAMELUS_DROMEDARIUS
public static final NCBITaxon LAMA_GLAMA
public static final NCBITaxon VICUGNA_PACOS
public static final NCBITaxon SYNTHETIC_CONSTRUCT
public NCBITaxon(int inTaxonId)
public static void addDataSource(NCBITaxonomyDataSource inValue)
public static void addDataSource(int inIndex, NCBITaxonomyDataSource inValue)
public static void setDataSource(NCBITaxonomyDataSource inValue)
public static Set<NCBITaxon> getByName(String inValue)
inValue
- the species name (common or scientific) for the taxon object to returnpublic static NCBITaxon getByTaxonId(int inValue)
inValue
- the taxon id for the taxon object to retrievepublic static Collection<NCBITaxon> getCommonSet()
public int getTaxonId()
public String getFullTaxonomy()
public boolean isSubtaxonOf(NCBITaxon inTaxon2)
public NCBITaxon getFirstCommonTaxon(NCBITaxon inTaxon2)
public NCBITaxon getParentTaxon()
public NCBITaxon setParentTaxonId(int inValue)
public int getParentTaxonId()
public String getScientificName()
public NCBITaxon setScientificName(String inValue)
public String getCommonName()
public NCBITaxon setCommonName(String inValue)
public String getGenBankCommonName()
public NCBITaxon setGenBankCommonName(String inValue)
public Set<String> getSynonyms()
public NCBITaxon setSynonyms(Collection<String> inValues)
public NCBITaxon addSynonym(String inValue)
public NCBITaxonNodeRank getTaxonomyRank()
public NCBITaxon setTaxonomyRank(NCBITaxonNodeRank inValue)
public String getEMBL_Code()
public NCBITaxon setEMBL_Code(String inValue)
public NCBIGenBankDivision getDivision()
public NCBITaxon setDivision(NCBIGenBankDivision inValue)
public boolean getInheritedDivisionFlag()
public NCBITaxon setInheritedDivisionFlag(boolean inValue)
public NCBIGeneticCode getGeneticCode()
public NCBITaxon setGeneticCode(NCBIGeneticCode inValue)
public boolean getInheritedGeneticCodeFlag()
public NCBITaxon setInheritedGeneticCodeFlag(boolean inValue)
public NCBIGeneticCode getMitochondrialGeneticCode()
public NCBITaxon setMitochondrialGeneticCode(NCBIGeneticCode inValue)
public boolean getInheritedMitochondrialGeneticCodeFlag()
public NCBITaxon setInheritedMitochondrialGeneticCodeFlag(boolean inValue)
public boolean getGenBankHiddenFlag()
public NCBITaxon setGenBankHiddenFlag(boolean inValue)
public boolean getHiddenSubtreeRootFlag()
public NCBITaxon setHiddenSubtreeRootFlag(boolean inValue)
public String getComments()
public NCBITaxon setComments(String inValue)
public int compareTo(NCBITaxon inObj)
compareTo
in interface Comparable<NCBITaxon>
public static void exportNodesFile(Set<Integer> inTaxonIds, File inDestFile)
inTaxonIds
- the list of id to extract from the taxonomy datainDestFile
- the nodes file to which the extracted taxon data should be writtenpublic static void exportNamesFile(Set<Integer> inTaxonIds, File inDestFile) throws IOException
inTaxonIds
- the list of id to extract from the taxonomy datainDestFile
- the names file to which the extracted taxon data should be writtenIOException