Skip to content

Commit

Permalink
More examples for option -q
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpenel committed May 22, 2024
1 parent aed17a5 commit 8d99c84
Showing 1 changed file with 50 additions and 6 deletions.
56 changes: 50 additions & 6 deletions examples/test_multicol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ fn main() {
read_recphyloxml_multi("examples/toyrec.xml".to_string(),
&mut sp_tree, &mut gene_trees, &mut global_roots);
recphyloxml_processing(&mut sp_tree, &mut gene_trees, &mut options, &config, true,
&transfers, "prout1.svg".to_string());
println!("Please open output file 'prout1.svg' with your browser");
&transfers, "toy1.svg".to_string());
println!("Please open output file 'toy1.svg' with your browser");


// ============================================================================================
Expand All @@ -42,8 +42,8 @@ fn main() {
read_recphyloxml_multi("examples/toyrec.xml".to_string(),
&mut sp_tree, &mut gene_trees, &mut global_roots);
recphyloxml_processing(&mut sp_tree, &mut gene_trees, &mut options, &config, true,
&transfers, "prout2.svg".to_string());
println!("Please open output file 'prout2.svg' with your browser");
&transfers, "toy2.svg".to_string());
println!("Please open output file 'toy2.svg' with your browser");



Expand All @@ -64,6 +64,50 @@ fn main() {
read_recphyloxml_multi("examples/toyrec.xml".to_string(),
&mut sp_tree, &mut gene_trees, &mut global_roots);
recphyloxml_processing(&mut sp_tree, &mut gene_trees, &mut options, &config, true,
&transfers, "prout3.svg".to_string());
println!("Please open output file 'prout3.svg' with your browser");
&transfers, "toy3.svg".to_string());
println!("Please open output file 'toy3.svg' with your browser");


// ============================================================================================
let transfers = vec![];
let mut options: Options = Options::new();
let config: Config = Config::new();
let mut sp_tree: ArenaTree<String> = ArenaTree::default();
let mut gene_trees:std::vec::Vec<ArenaTree<String>> = Vec::new();
let mut global_roots: std::vec::Vec<usize> = Vec::new();

options.gene_colors.push("black".to_string());
options.gene_colors.push("green".to_string());
options.gene_colors.push("blue".to_string());
options.gene_colors.push("orange".to_string());

options.node_colors.push("03_duplication".to_string());
options.node_colors.push("b4_duplication".to_string());

read_recphyloxml_multi("examples/example_dupli.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, "dupli_color.svg".to_string());
println!("Please open output file 'dupli_color.svg' with your browser");


// ============================================================================================
let transfers = vec![];
let mut options: Options = Options::new();
let config: Config = Config::new();
let mut sp_tree: ArenaTree<String> = ArenaTree::default();
let mut gene_trees:std::vec::Vec<ArenaTree<String>> = Vec::new();
let mut global_roots: std::vec::Vec<usize> = Vec::new();


options.node_colors.push("03_duplication".to_string());
options.node_colors.push("b4_duplication".to_string());

read_recphyloxml_multi("examples/example_dupli.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, "dupli_color2.svg".to_string());
println!("Please open output file 'dupli_color2.svg' with your browser");

}

0 comments on commit 8d99c84

Please sign in to comment.