-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d3883c
commit 7852b58
Showing
4 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "light_phylogeny" | ||
version = "2.1.8" | ||
version = "2.1.9" | ||
authors = ["Simon Penel <[email protected]>"] | ||
edition = "2018" | ||
description ="Methods and functions for phylogeny." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// 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(); | ||
|
||
options.free_living = true; | ||
options.gene_internal = true; | ||
options.species_internal = true; | ||
|
||
|
||
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(); | ||
read_recphyloxml_multi("examples/free_living_reconciliated_quadruple.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, "test_colors1.svg".to_string()); | ||
println!("Please open output file 'test_colors1.svg' with your browser"); | ||
|
||
|
||
let transfers = vec![]; | ||
let mut options: Options = Options::new(); | ||
let config: Config = Config::new(); | ||
|
||
options.free_living = true; | ||
options.gene_internal = true; | ||
options.species_internal = true; | ||
options.gene_colors.push("green".to_string()); | ||
options.gene_colors.push("pink".to_string()); | ||
options.gene_colors.push("#7A5050".to_string()); | ||
|
||
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(); | ||
read_recphyloxml_multi("examples/free_living_reconciliated_quadruple.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, "test_colors2.svg".to_string()); | ||
println!("Please open output file 'test_colors2.svg' with your browser"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters