biomcmc-lib  0.1
low level library for phylogenetic analysis
Go to the documentation of this file.
1 /*
2  * This file is part of biomcmc-lib, a low-level library for phylogenomic analysis.
3  * Copyright (C) 2019-today Leonardo de Oliveira Martins [ leomrtns at; ]
4  *
5  * biomcmc is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
6  * License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
7  * version.
9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
10  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11  * details (file "COPYING" or
12  */
19 #ifndef _biomcmc_newick_space_h_
20 #define _biomcmc_newick_space_h_
22 #include "read_newick_trees.h"
24 typedef struct newick_space_struct* newick_space;
28 {
29  int ntrees;
32 };
34 newick_space new_newick_space ();
35 void del_newick_space (newick_space nwk);
38 newick_space new_newick_space_from_file (char *filename);
39 void update_newick_space_from_file (newick_space nwk, char *filename);
40 void update_newick_space_from_string (newick_space nwk, char *tree_string, size_t string_size);
41 void update_newick_space_from_topology (newick_space nwk, topology topol);
43 #endif
int ref_counter
Vector of trees originally in nexus file and compacted.
Definition: newick_space.h:31
topology new_single_topology_from_newick_file(char *filename)
Convenience function to read one newick tree from file, skipping checks (comments, multiline trees, etc.)
Definition: newick_space.c:46
Collection of topologies from tree file. Each topology will have its own char_vector.
Definition: newick_space.h:27
topology * t
Number of trees originally in nexus file and compacted (only distinct topologies).
Definition: newick_space.h:30
Low-level functions for reading newick strings.
Binary unrooted topology (rooted at leaf with ID zero)
Definition: topology_common.h:47