biomcmc-lib  0.1
low level library for phylogenetic analysis
splitset_distances.h
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 gmail.com; http://www.leomartins.org ]
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.
8 
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 http://www.gnu.org/copyleft/gpl.html).
12  */
13 
23 #ifndef _biomcmc_splitset_distances_h_
24 #define _biomcmc_splitset_distances_h_
25 
26 #include "reconciliation.h"
27 
31 void del_splitset (splitset split);
33 int dSPR_gene_species (topology gene, topology species, splitset split);
35 int dSPR_gene_species_rf (topology gene, topology species, splitset split);
37 int dSPR_gene_species_hdist (topology gene, topology species, splitset split);
38 
39 #endif
Definition: genetree.h:66
mapping between gene tree nodes (this) and (external) species tree nodes
Definition: genetree.h:48
int dSPR_gene_species_hdist(topology gene, topology species, splitset split)
h distance (edge disagreement assignment cost) between unrooted gene and species trees (leafset mappi...
Definition: splitset_distances.c:197
low-level file for gene tree and species tree reconciliation. This file is hidden from user and conta...
int dSPR_gene_species(topology gene, topology species, splitset split)
approximate dSPR between unrooted gene and species trees (leafset mapping)
Definition: splitset_distances.c:179
void del_splitset(splitset split)
free memory allocated for splitset structure
Definition: splitset_distances.c:81
splitset new_splitset_genespecies(topology gene, topology species, reconciliation rec)
Splitset structure for dSPR calculation (also allocates aux vectors)
Definition: splitset_distances.c:108
int dSPR_gene_species_rf(topology gene, topology species, splitset split)
RF distance between unrooted gene and species trees (leafset mapping)
Definition: splitset_distances.c:190
Binary unrooted topology (rooted at leaf with ID zero)
Definition: topology_common.h:47