Function light_phylogeny::read_phyloxml
source ยท pub fn read_phyloxml(filename: String, tree: &mut ArenaTree<String>)
Expand description
Read a phyloxml file and store the tree into a ArenaTree structure.
Examples found in repository?
More examples
examples/read_phyloxml_stroke_thickness.rs (line 9)
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
fn main() {
let mut tree: ArenaTree<String> = ArenaTree::default();
let mut options: Options = Options::new();
options.rotate = false;
let config: Config = Config::new();
read_phyloxml("examples/FAM036542_gene.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_stroke_thickness_1.svg".to_string());
println!("Please open output file 'read_phyloxml_stroke_thickness_1.svg' with your browser");
let mut tree: ArenaTree<String> = ArenaTree::default();
let mut options: Options = Options::new();
options.rotate = false;
options.gthickness = 1;
let config: Config = Config::new();
read_phyloxml("examples/FAM036542_gene.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_stroke_thickness_2.svg".to_string());
println!("Please open output file 'read_phyloxml_stroke_thickness_2.svg' with your browser");
let mut tree: ArenaTree<String> = ArenaTree::default();
let mut options: Options = Options::new();
options.rotate = false;
options.gthickness = 6;
let config: Config = Config::new();
read_phyloxml("examples/FAM036542_gene.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_stroke_thickness_3.svg".to_string());
println!("Please open output file 'read_phyloxml_stroke_thickness_3.svg' with your browser");
let mut tree: ArenaTree<String> = ArenaTree::default();
let mut options: Options = Options::new();
options.rotate = false;
options.gthickness = 2;
options.squaresize = 15.0;
let config: Config = Config::new();
read_phyloxml("examples/FAM036542_gene.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_stroke_thickness_4.svg".to_string());
println!("Please open output file 'read_phyloxml_stroke_thickness_4.svg' with your browser");
}
examples/read_phyloxml_tidy.rs (line 14)
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
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");
}
examples/read_phyloxml.rs (line 7)
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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
fn main() {
let mut tree: ArenaTree<String> = ArenaTree::default();
let options: Options = Options::new();
let config: Config = Config::new();
read_phyloxml("examples/FAM036542_gene.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml.svg".to_string());
println!("Please open output file 'read_phyloxml.svg' with your browser");
let mut tree: ArenaTree<String> = ArenaTree::default();
let mut options: Options = Options::new();
options.rotate = false;
options.gene_internal = true;
let config: Config = Config::new();
read_phyloxml("examples/FAM036542_gene.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_landscape.svg".to_string());
println!("Please open output file 'read_phyloxml_landscape.svg' with your browser");
let mut tree: ArenaTree<String> = ArenaTree::default();
let options: Options = Options::new();
let config: Config = Config::new();
read_phyloxml("examples/apaf.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_dist.svg".to_string());
println!("Please open output file 'read_phyloxml_dist.svg' with your browser");
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.branch = true;
options.gene_internal = true;
let config: Config = Config::new();
read_phyloxml("examples/apaf.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");
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.branch = true;
options.rotate = false;
let config: Config = Config::new();
read_phyloxml("examples/apaf.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_dist_real_landscape.svg".to_string());
println!("Please open output file 'read_phyloxml_dist_real_landscape.svg' with your browser");
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;
let config: Config = Config::new();
read_phyloxml("examples/bcl_2.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_events.svg".to_string());
println!("Please open output file 'read_phyloxml_events.svg' with your browser");
let mut tree: ArenaTree<String> = ArenaTree::default();
let mut options: Options = Options::new();
options.real_length_flag = true;
options.scale = 10.0;
options.support = true;
let config: Config = Config::new();
read_phyloxml("examples/ENSGT00390000003602.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_ensembl.svg".to_string());
println!("Please open output file 'read_phyloxml_ensembl.svg' with your browser");
let mut tree: ArenaTree<String> = ArenaTree::default();
let mut options: Options = Options::new();
options.real_length_flag = true;
options.scale = 10.0;
options.support = true;
options.gene_colors.push("green".to_string());
options.gene_colors.push("red".to_string());
let config: Config = Config::new();
read_phyloxml("examples/ENSGT00390000003602.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_ensembl_color.svg".to_string());
println!("Please open output file 'read_phyloxml_ensembl_color.svg' with your browser");
let mut tree: ArenaTree<String> = ArenaTree::default();
let mut options: Options = Options::new();
options.real_length_flag = true;
options.scale = 10.0;
options.support = true;
options.gene_colors.push("green".to_string());
options.gene_colors.push("red".to_string());
options.node_colors.push("ENSTRUG00000006177".to_string());
let config: Config = Config::new();
read_phyloxml("examples/ENSGT00390000003602.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_ensembl_color_2.svg".to_string());
println!("Please open output file 'read_phyloxml_ensembl_color_2.svg' with your browser");
let mut tree: ArenaTree<String> = ArenaTree::default();
let mut options: Options = Options::new();
options.node_colors.push("02_speciation".to_string());
options.node_colors.push("01_speciation".to_string());
options.node_colors.push("b1".to_string());
options.node_colors.push("b2".to_string());
options.gene_internal = true;
options.squaresize = 15.0;
let config: Config = Config::new();
read_phyloxml("xml_examples/example_dupli.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_example_dupli_color.svg".to_string());
println!("Please open output file 'read_phyloxml_example_dupli_color.svg' with your browser");
let mut tree: ArenaTree<String> = ArenaTree::default();
let mut options: Options = Options::new();
options.gene_colors.push("green".to_string());
options.gene_colors.push("red".to_string());
options.gene_colors.push("orange".to_string());
options.node_colors.push("02_speciation".to_string());
options.node_colors.push("01_speciation".to_string());
options.node_colors.push("b1".to_string());
options.node_colors.push("b2".to_string());
options.gene_internal = true;
options.squaresize = 15.0;
let config: Config = Config::new();
read_phyloxml("xml_examples/example_dupli.xml".to_string(), &mut tree);
phyloxml_processing(&mut tree, &options, &config,"read_phyloxml_example_dupli_color_2.svg".to_string());
println!("Please open output file 'read_phyloxml_example_dupli_color_2.svg' with your browser");
}