Package forestry.api.genetics
Interface ITaxon
public interface ITaxon
Biological classifications from domain down to genus.
Used by the Forestry analyzers to display hierarchies.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA default allele associated with a taxon. -
Method Summary
-
Method Details
-
name
String name()- Returns:
- The lowercase name of the taxon.
-
rank
TaxonomicRank rank()- Returns:
- The level inside the full hierarchy this particular taxon is located at.
-
children
- Returns:
- The taxa directly below this taxon. Guaranteed to be empty if this taxon is a
TaxonomicRank.GENUS.
-
species
- Returns:
- The member species of this group. Empty if this taxon is not a
TaxonomicRank.GENUS.
-
parent
- Returns:
- The parent taxon, or
nullif this is aTaxonomicRank.DOMAIN.
-
alleles
Map<IChromosome<?>,ITaxon.TaxonAllele> alleles()A taxon may have alleles added to it so that its species will inherit a common set of default alleles upon registration. For example, the default genomes of all bee species in the boggy genus will have the Mushroom flower type allele.- Returns:
- A map of default alleles inherited by members of this taxon. Does not include alleles from parent taxa.
-