Difference between revisions of "PO Developers Guide"
Line 71: | Line 71: | ||
All new terms that are added that are added to the PO should be posted as a request on our [https://sourceforge.net/tracker/?group_id=76834&atid=835555 Source Forge tracker]. This provides an opportunity for all curators and collaborators to comment on the proposed term and its definition and relations. The tracker item also provides a record of the decisions that were made about a term, when those decisions were made, and why. | All new terms that are added that are added to the PO should be posted as a request on our [https://sourceforge.net/tracker/?group_id=76834&atid=835555 Source Forge tracker]. This provides an opportunity for all curators and collaborators to comment on the proposed term and its definition and relations. The tracker item also provides a record of the decisions that were made about a term, when those decisions were made, and why. | ||
− | ===Merging | + | ===Merging terms=== |
Merging and splitting of terms that have descendents can have broad ripple effects. Such changes will need to be approved by a consensus prior to committing them. Any proposed merges or splits should be posted on the [https://sourceforge.net/tracker/?group_id=76834&atid=835555 Source Forge tracker]. | Merging and splitting of terms that have descendents can have broad ripple effects. Such changes will need to be approved by a consensus prior to committing them. Any proposed merges or splits should be posted on the [https://sourceforge.net/tracker/?group_id=76834&atid=835555 Source Forge tracker]. |
Revision as of 15:09, 7 February 2011
This page is under re-construction
As an OBO Foundry candidate ontology, the Plant Ontology Consortium (POC) is guided by the OBO Foundry principles. Other standard operating procedures have been developed to insure consistency among curators.
Plant Onotology Files
Our curation and management model is based on a tested protocol established by the Gene Ontology Consortium.
Ontology files
Plant Ontology (PO) development work was originally based around four separate text files in flat file format.
anatomy.ontology -- Plant structure related terms and relationships
anatomy.defs -- Definitions of Plant structure related terms
development.ontology -- Growth and development stage terms and relationships
development.defs -- Definitions of growth and development stage terms
Definition files were eventually merged into the ontology files, so that the ontologies were maintained in two files using the OBO flat file format:
po_anatomy.obo -- Plant structure related terms, relationships, and definition
po_temporal.obo -- Growth and development stage terms, relationships, and definitions
In January 2011, the Plant Structure Ontology (PSO) and the Plant Growth and Development Stage Ontology (PGDSO) were merged into one file:
plant_ontology.obo -- includes terms, relationships, and definition related to plant anatomical entities as well as plant growth and development stages
This merged file allows users to download the entire ontology as a single file and allows editors to create relations between terms in the two branches of the PO.
In compliance with OBO Foundry principles, the PO is "open and available to be used by all without any constraint other than (a) its origin must be acknowledged and (b) it is not to be altered and subsequently redistributed under the original name or with the same identifiers." The live version of this file is available through our SVN repository at http://palea.cgrb.oregonstate.edu/viewsvn/Poc/tags/live/plant_ontology.obo?view=co as well as on our web browser at [1].
For the immediate future, the POC will maintain separate versions of the po_anatomy.obo and po_temporal.obo files that match the live version of plant_ontology.obo (but obviously will lack links between the two branches) at our SVN site. However, users are encouraged to switch to the merged file as soon as possible.
The editors' version of the plant_ontology.obo file is maintained at the SVN repository at http://palea.cgrb.oregonstate.edu/viewsvn/Poc/trunk/ontology/OBO_format/plant_ontology.obo?view=log . Outside uers should be extremely cautious about accessing this version of the file, as it is under regular revision, and changes made to this file may not be incorporated into live releases.
The SVN system allows users and editors to track changes to POC documents, allows members to work on the same documents concurrently, and allows differences between different curators' versions of the file to be merged reliably.
In order to update the ontologies, curators use OBO-Edit. This open source Java application facilitates editing and implements the rules and constraints needed to maintain internal consistency in the ontology.
Association files
Collaborating databases and projects provide the POC project a tab delimited file, known informally as a " association file". This file carries links between database objects and PO terms. The database object may represent one of gene, transcript, protein, protein_structure, complex, germplasm (stock/cultivar), mutant, QTL, etc.. Please refer to the Annotation_File_Format page for guidelines on how to prepare annotation files.
Annotation/association files are currently being contributed by Gramene, MaizeGDB, NASC, SGN, and TAIR.
Plant Ontology Editing Guidelines
In addition to the OBO Foundry principles, the POC has established internal guidelines, to ensure consistent editing practices, as described below.
Ontology file syntax
As specified in the OBO Foundry principles, ontologies must be expressed in either the OBO syntax, extensions of this syntax, or OWL. All editing work and the live version of the PO are in the OBO format. For each live release, an OWL version of the plant_ontology file is also available at: http://palea.cgrb.oregonstate.edu/viewsvn/Poc/tags/live/plant_ontology.owl?view=log.
Unique identifiers
As specified in the OBO Foundry principles, the PO must possesses a unique identifier space within the OBO Foundry, so that the source of a term (i.e. class) can be immediately identified by the prefix of its identifier. The prefix for Plant Ontology terms is PO, with the syntax PO:nnnnnnn, where nnnnnnn is a zero-padded unique integer of seven digits. To ensure database integrity, unique identifiers are never removed after they have been published in a live release of the ontology. Instead, terms that are retired from the ontology are moved into the obsolete category (see below).
To ensure that the same identifier is not used twice by different editors, each contributing group within the POC has been given non-overlapping ranges of numbers (see the Accession_IDS_Guide). These ranges automatically act as internal identifiers for the group that submitted the term.
A term can have multiple IDs (one primary ID and one or more alternate IDs). Alternate IDs are created whenever two terms are merged internally or when terms have been added to the PO by merging external ontologies (e.g., TAIR and Gramene IDs).
Adding terms
New terms can often be added to the tips of the ontology (leaf terms) without disturbing the structure of the graph. For example, creating a new specific instance of a more general term will not disturb sibling or cousin terms. However, introducing a new root term or a term into the middle of the graph can disturb existing parent/children relationships, and needs to be performed with more care.
All new terms that are added that are added to the PO should be posted as a request on our Source Forge tracker. This provides an opportunity for all curators and collaborators to comment on the proposed term and its definition and relations. The tracker item also provides a record of the decisions that were made about a term, when those decisions were made, and why.
Merging terms
Merging and splitting of terms that have descendents can have broad ripple effects. Such changes will need to be approved by a consensus prior to committing them. Any proposed merges or splits should be posted on the Source Forge tracker.
Two or more terms should be merged when the curators determine that they are describing the same class of objects. This often occurs when two ontologies are merged, and there is some overlap of classes between the ontologies. It can also occur if a decision is made only to include a more general class rather than several specific classes. For example, achene, berry and capsule were merged into the term fruit. Finally, merging may be necessary if the curators determine that two classes are redundant, such as when meristemoid was merged with initial cell.
Merging involves a target term and a source term (or terms). When the two terms are merged, the ID of the target term becomes the primary ID while the ID of the source term becomes a secondary ID. The term name of the target term remains as the primary name while the term name of the source term becomes an exact synonym. Definitions and comments are merged, and the curators must edit them to ensure that they are appropriate for the new merged term.
Term names
In general, the primary name for a term is the most commonly used name, with alternative names listed as exact synonyms. When the commonly used name is ambiguous, it is important to have an unambiguous name as an exact synonym. For example, it may not be clear to non-experts or automated reasoners that "epidermal initial" is a type of cell, so it has the exact synonym "epidermal initial cell".
For more information on synonyms, see below under "Synonyms".
The names for some PO terms may appear artificial, such as "collective leaf structure". These artificial names are used for classes in which many of the instances have common names (in this case, whorl or rosette), but there is no one common name that describes all instances.
Sensu terms: The POC, following the GO, has eliminated the use of the word sensu in term names. Sensu was originally brought in to the ontology to disambiguate clashes between terms that have different meanings to different communities. For example, the term capsule is used to describe a type of angiosperm fruit, but is also used to describe the sporangium in mosses. Rather than term names like "capsule sensu moss" and "capsule sensu Angiosperma," term names should reflect the differences in characteristics between the two groups. In this example, "sporangium capsule" and "fruit capsule" would be preferable names.
All uses of the word sensu have been removed from PO term names and replaced by the taxon name plus the term name. For example, "integument sensu Zea" has been replaced by "Zea integument." In the near future, most or all of the existing taxon specific terms will be renamed or merged with other terms. Classes that are not distinguishable from their parent class, other than by the taxon in which they occur (such as Zea integument), will be merged with the parent. Classes that have unique characteristics (such as Zea ear), will be given new names that do not include the taxon name.
Plant tissue names: For clarity, the different plant tissue classes in the PO should all be preceded by the prefix "portion of," as in "portion of plant tissue" or "portion of ground tissue." Without the prefix "portion of," the name ground tissue could be referring to all of the ground tissue in every plant in the world, all of the ground tissue in an individual plant, or any bit of ground tissue in any individual plant. However, many of the curators felt that having the portion of prefix in all of the plant tissue names was too user-unfriendly. It was decided to use the portion of prefix only for the top few levels (e.g. portion of plant tissue and its direct descendants). Furthermore, if a tissue type has a common name that does not have the word tissue in the name (e.g., epidermis), then the portion of prefix is not used. Regardless of the names, the definitions of different tissue types should specify whether they refer to a portion of plant tissue (any bit of that tissue type in any individual plant), or the maximal portion of tissue in a plant structure or in a whole plant.
Term definitions
As specified in the OBO Foundry principles, each term in the PO must have a textual definition, and terms should be defined so that their precise meaning within the context of a particular ontology is clear to a human reader.
Whenever possible, internationally accepted nomenclature and definitions obtained from standard reference works, journal articles, and other published sources are used, although they may be modified to fit the genus-differentia form. In cases when a published definition is unavailable, or when published definitions disagree with each other, definitions will be written by the curators. This is often the case for upper-level ontology terms, since many published definitions are written with specific taxa in mind, while PO definitions must be appropriate for all plant taxa to which a term can apply.
All definitions must have a reference that indicates the authority for the term. References are typically textbook or journal article citations. For uniformity, the PO uses citation database identifiers, such as PubMed IDs and ISBN numbers as DBXrefs. If a definition is written by a curator (as is often the case with lower-level terms that have simple genus-differentia definitions), then the definition DBXref should have the form Database:curator initials. For example: POC:rw or TAIR:tb. Definitions that are written collectively by the POC curators are identified as POC:curators.
Images or diagrams can be helpful for supplementing text definitions, in cases where words cannot adequately describe anatomic or developmental relationships. Image files cannot be inserted into the OBO file, but links to reference images on the internet may be included. In order to insure that the images remain available between live releases, curators should only provide links to websites that are approved by the group and that have stable URLs for their images.
Renaming and redefining terms
Since the PO is still actively under development, it is often necessary to make changes to existing terms. This can happen if the curators feel that a term name is not clear, or is not the most commonly used name, or if a definition is found to be incorrect, or if two or more terms are redundant with each other. Curators should use the following guidelines:
Renaming: A change in the primary name of a term should be approved by the group, and a tracker item posted on Source Forge. If the name is changed from a less-common to a more-common name, then the term's ID should stay the same, and the original name should be added as a synonym. If the name is changed because the original name was incorrect for the definition, then the term should be obsoleted, and replaced by a new term with the correct name and definition.
Redefining: Any substantive change in the definition of a term, and any change in the definition of an upper-level term (generally 4 or fewer layers into the ontology) should be approved by the group, and a tracker item posted on Source Forge.
There is an ongoing effort to convert all text definitions in the PO to the genus-differentia form (see Term definitions, below). If a new genus-differentia definition is for a lower-level ontology term and does change the meaning of the original definition but only uses the new wording format, then a curator may change the definition without posting a tracker item. For example, a change to the definition of epidermis (a term with three levels of ancestors), should be posted on Source Forge, while converting all of the definitions of the different types of epidermis (shoot epidermis, root epidermis, leaf epidermis, etc.) to genus-differentia form does not need a Source Forge tracker item. If the conversion to genus-differentia form changes the meaning of the definition then a tracker item should be posted.
If the original definition for a term was wrong, and changes to a definition substantially change its meaning, such that a comparison of the original definition and the new definition suggest that they are referring to two different classes, then the original term should be made obsolete, and replaced by a term with the same name but correct definition. Having a live term and an obsolete term wit the same name will prevent the onotology form loading onto the web browser, so the original, obsolete term should be renamed "obsolete term name", where "term name" is the original name.
Relations among terms
Under the standard Plant Ontology data structure, terms are allowed to have a limited number of relations. Relations are formally defined in the OBO relation ontology.
The PO currently has following term-to-term relation types:
is_a: This relation is used to indicate the relationship between a specific class and a more general one. For example, megasprophyll is_a sporophyll and sporophyll is_a phyllome. This means that every instance of megasporophyll is a sporophyll. Since the is_a relation is transitive, every megasporophyll is also a phyllome.
part of: This relation is used to indicate that one class is part of another class. For example, ectocarp is part_of pericarp, which in turn is part_of fruit. The part_of relation should only be applied when every instance of the child is part of some instance of the parent. In this example, every instance of ectocarp is part of some pericarp. However, this does not mean that every pericarp has some ectocarp as a part. The part_of relation is transitive, so every instance of ectocarp is also part of some fruit.
has_part: This relation is used to indicate that one class always has an instance of another class as a part. For example, inflorescence has_part flower. This means that every instance of inflorescence has a flower as a part, but it does not imply that every flower is part of an inflorescence. The has_part relation is transitive.
develops from: This relation is used to indicate that a plant structure develops from its parent term. For example, root hair cell develops_ from trichoblast. The develops_from relation is a more specific case of the derives_from relation in the OBO relation ontology, and a formal definition is under development. The develops_from relation is not transitive.
Associations and relations
For is_a and part_of relations, associations for a child term are passed up to the parent term. For example, annotations associated with megasporphyll are also associated with sporophyll and phyllome, and annotations associated with ectocarp are also associated with pericarp and fruit. For the has_part and develops_from relations, associations should not be passed from parent to child. For example, the genes express in an inflorescence may or may not be expressed in flowers, so the annotations associated with inflorescence should not be passed up to flower. Likewise, genes expressed in a root hair cell may or may not be expressed in a trichoblast, so the annotations associated with root hair should not be passed up to trichoblast.
Synonyms
A synonym indicates an alternative name for a term. Terms can have multiple synonyms.
The scope of a synonym may fall into one of three categories:
exact: the definition of the synonym is exactly the same as primary term definition
narrow: the definition of the synonym is the same as the primary definition, but has additional qualifiers. For example, pod is a narrow synonym of fruit. The definition of fruit accurately describes a pod, but a pod has additional characteristics that not all fruits share.
broad: the primary definition accurately describes the synonym, but the definition of the synonym may encompass other structures (PO classes) as well. In most cases where a broad synonym is given, it will be a broad synonym for more than one PO term. For example, adventitious root is a broad synonym of both basal root and shoot-borne root, because the definition of adventitious root can encompass both basal and shoot-borne roots.
related: this scope is applied when a word of phrase has been used synonymously with the primary term name in the literature, but the usage is not strictly correct, that is, the synonym in fact has a slightly different meaning than the primary term name. Since users may not be aware that the synonym was being used incorrectly when searching for a term, related synonyms are included. For example, carpel septum is a related synonym of ovary septum.
The software used to create and edit the PO uses related as the default synonym type. Therefor, many of the existing PO synonyms are listed as related, even though they should be exact or narrow. Work is ongoing to convert inappropriate related related synonyms to the correct scope.
Synonyms can also be classified by types. The default is no type. Three new types of synonyms are under development in the PO: Spanish language synonyms, Japanese language synonyms, and German language synonyms. Within each types, synonyms can still be exact, narrow, broad, or related.
Whenever possible, database cross-references (dbxrefs) for synonyms should be provided, to indicate the publication that used the synonym. However, dbxrefs for synonyms are not madatory.
References (Dbxrefs)
There may be multiple types of references, or database cross-references (dbxrefs), associated with a PO term.
A definition dbxref is required for any term that has a definition (see above under "Term definitions." This indicates the authority for the term and should either be a textbook, journal article, or the database and initials of the curator. Definition dbxrefs should have the form database:identifier. Database is either the abbriviation for an external database such as PMID or ISBN (see DBXrefs) or the abbreviation for the ontology that defined the term, such as the Plant Ontology Consortium (POC), The Arabidopsis Information Resource (TAIR), Gramene (GR), or the Common Anatomy Reference Ontology (CARO). The identifier will be a unique number in the case of an external database (e.g., PubMed) or ontology (e.g. CARO), or will be the curator's initials in the case of POC, TAIR, or GR.
A synonym dbxref is the same as a definition dbxref, except that it describes the publication that used the synonym.
A term may have an Xref that is not associated with a definition or synonym. This may either refer to an external ontology that has a similar term (and will take the form of the unique identifier for that term in the external ontology), or it may be a link to an image in an external database (including a URL). Other types of xrefs are possible, but not yet widely used in the PO.
Obsoleting and destroying terms
Quality control and consistency checking
As the monocot and dicot ontologies are merged, conflicts and inconsistencies will inevitably arise. We will monitor the developing PO for inconsistencies by applying the true path rule, which insists that semantic coherence is maintained as terms are followed upwards to their ancestors. Equally importantly, we will subject the PO to continuous testing and evaluation as we use it for practical database curation