Skip to main content

Crate use_annotation

Crate use_annotation 

Source
Expand description

§use-annotation

Primitive annotation vocabulary.

use-annotation stores generic string annotations in deterministic key order. It does not perform ontology lookup, parse GFF/GTF, connect to databases, or infer biological meaning.

use use_annotation::{Annotation, AnnotationKey, AnnotationSet, AnnotationValue};

let mut annotations = AnnotationSet::new();
annotations.insert(Annotation::new(
    AnnotationKey::new("source").unwrap(),
    AnnotationValue::new("manual"),
));

assert_eq!(annotations.get("source").unwrap().as_str(), "manual");

Structs§

Annotation
A single annotation key-value pair.
AnnotationKey
A non-empty annotation key.
AnnotationSet
A deterministic annotation collection.
AnnotationValue
A plain string annotation value.

Enums§

AnnotationKeyError
Error returned by annotation key constructors.