// Display a reconciled tree form recPhyloXML format use light_phylogeny::{ArenaTree,Options,Config,read_recphyloxml_multi,recphyloxml_processing}; fn main() { // ============================================================================================ let transfers = vec![]; let mut options: Options = Options::new(); let config: Config = Config::new(); let mut sp_tree: ArenaTree = ArenaTree::default(); let mut gene_trees:std::vec::Vec> = Vec::new(); let mut global_roots: std::vec::Vec = Vec::new(); read_recphyloxml_multi("recphylo_examples/gene_1tree_obsolete_format.recphylo".to_string(), &mut sp_tree, &mut gene_trees, &mut global_roots); recphyloxml_processing(&mut sp_tree, &mut gene_trees, &mut options, &config, true, &transfers, "read_recphyloxml_obsolete_1.svg".to_string()); println!("Please open output file 'read_recphyloxml_obsolete_1.svg' with your browser"); // ============================================================================================ let transfers = vec![]; let mut options: Options = Options::new(); let config: Config = Config::new(); let mut sp_tree: ArenaTree = ArenaTree::default(); let mut gene_trees:std::vec::Vec> = Vec::new(); let mut global_roots: std::vec::Vec = Vec::new(); read_recphyloxml_multi("recphylo_examples/gene_2tree_obsolete_format.recphylo".to_string(), &mut sp_tree, &mut gene_trees, &mut global_roots); recphyloxml_processing(&mut sp_tree, &mut gene_trees, &mut options, &config, true, &transfers, "read_recphyloxml_obsolete_2.svg".to_string()); println!("Please open output file 'read_recphyloxml_obsolete_2.svg' with your browser"); }