stratiphy 0.1.0

Phenotype-driven identification of disease subgroups
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::io::Read;

use prost::Message;

use super::workflow::ClusteringWorkflowResult;

pub fn parse_clustering_workflow_result(
    mut read: impl Read,
) -> Result<ClusteringWorkflowResult, String> {
    let mut buf = Vec::new();
    read.read_to_end(&mut buf).map_err(|e| e.to_string())?;

    ClusteringWorkflowResult::decode(&buf[..]).map_err(|err| err.to_string())
}