// Display a reconciled tree form recPhyloXML format use light_phylogeny::{ArenaTree,Options,Config,read_recphyloxml_multi,recphyloxml_processing}; // use std::env; fn main() { // ============================================================================================ // Version portrait let transfers = vec![]; let mut options: Options = Options::new(); //options.species_internal = true; //options.switches.push("HOSTB BEF. HYBR.".to_string()); let config: Config = Config::new(); //config.fill_species = true; 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("examples/hybrid.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, "hybrid.svg".to_string()); println!("Please open output file 'hybrid.svg' with your browser"); // ============================================================================================ // Version portrait let transfers = vec![]; let mut options: Options = Options::new(); //options.species_internal = true; //options.switches.push("HOST2 BEF. HYBR.".to_string()); let mut config: Config = Config::new(); config.fill_species = true; 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("examples/hybrid6.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, "hybrid6.svg".to_string()); println!("Please open output file 'hybrid6.svg' with your browser"); }