nj 0.0.3

Neighbor Joining, fast phylogenetic tree construction. Library and CLI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};
use ts_rs::TS;

#[derive(Clone, Debug, TS, Serialize, Deserialize)]
#[ts(export, export_to = "../../wasm/types/lib_types.ts")]
pub struct FastaSequence {
    pub header: String,
    pub sequence: String,
}

pub type MSA = Vec<FastaSequence>;

#[derive(Serialize, Deserialize, TS, Clone, Debug)]
#[ts(export, export_to = "../../wasm/types/lib_types.ts")]
pub struct NJConfig {
    pub msa: MSA,
    pub hide_internal: bool,
}