gen 0.1.31

A sequence graph and version control system.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use gen_models::{annotations::AnnotationGroup, db::GraphConnection};

#[derive(Clone, Debug, Eq, PartialEq)]
pub struct AnnotationGroupEntry {
    pub name: String,
}

pub fn load_annotation_group_entries(
    conn: &GraphConnection,
    sample_name: &str,
) -> Vec<AnnotationGroupEntry> {
    AnnotationGroup::query_by_sample(conn, sample_name)
        .into_iter()
        .map(|group| AnnotationGroupEntry { name: group.name })
        .collect()
}