1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
use light_phylogeny::{ArenaTree,Options,Config,read_phyloxml,phyloxml_processing};

fn main() {
    // landscape
    let mut tree: ArenaTree<String> = ArenaTree::default();
    let mut options: Options = Options::new();
    options.real_length_flag = true;
    options.scale = 4.0;
    options.support = true;
    options.gene_internal = true;
    options.rotate = false;
    // options.branch = true;
    let config: Config = Config::new();
    read_phyloxml("examples/apaf_name.xml".to_string(), &mut tree);
    phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_dist_real.svg".to_string());
    println!("Please open output file 'read_phyloxml_dist_real.svg' with your browser");

    // landscape + tidy
    let mut tree: ArenaTree<String> = ArenaTree::default();
    let mut options: Options = Options::new();
    options.real_length_flag = true;
    options.scale = 4.0;
    options.support = true;
    options.gene_internal = true;
    options.rotate = false;
    options.tidy = true;
    // options.branch = true;
    let config: Config = Config::new();
    read_phyloxml("examples/apaf_name.xml".to_string(), &mut tree);
    phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_dist_real_tidy.svg".to_string());
    println!("Please open output file 'read_phyloxml_dist_real_tidy.svg' with your browser");


    // portrait
    let mut tree: ArenaTree<String> = ArenaTree::default();
    let mut options: Options = Options::new();
    options.real_length_flag = true;
    options.scale = 4.0;
    options.support = true;
    options.gene_internal = true;
    // options.rotate = false;
    // options.branch = true;
    let config: Config = Config::new();
    read_phyloxml("examples/apaf_name.xml".to_string(), &mut tree);
    phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_dist_real_portrait.svg".to_string());
    println!("Please open output file 'read_phyloxml_dist_real_portrait.svg' with your browser");

    // portrait + tidy
    let mut tree: ArenaTree<String> = ArenaTree::default();
    let mut options: Options = Options::new();
    options.real_length_flag = true;
    options.scale = 4.0;
    options.support = true;
    options.gene_internal = true;
    // options.rotate = false;
    options.tidy = true;
    // options.branch = true;
    let config: Config = Config::new();
    read_phyloxml("examples/apaf_name.xml".to_string(), &mut tree);
    phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_dist_real_tidy_portrait.svg".to_string());
    println!("Please open output file 'read_phyloxml_dist_real_tidy_portrait.svg' with your browser");

}