| 1 |
/*************************************************************************** |
| 2 |
applpopulations.h - description |
| 3 |
------------------- |
| 4 |
begin : Mon Oct 30 2000 |
| 5 |
copyright : (C) 2000 by Olivier Langella |
| 6 |
email : [email protected] |
| 7 |
***************************************************************************/ |
| 8 |
|
| 9 |
/*************************************************************************** |
| 10 |
* * |
| 11 |
* This program is free software; you can redistribute it and/or modify * |
| 12 |
* it under the terms of the GNU General Public License as published by * |
| 13 |
* the Free Software Foundation; either version 2 of the License, or * |
| 14 |
* (at your option) any later version. * |
| 15 |
* * |
| 16 |
***************************************************************************/ |
| 17 |
|
| 18 |
#ifndef APPLPOPULATIONS_H |
| 19 |
#define APPLPOPULATIONS_H |
| 20 |
|
| 21 |
#include "config.h" |
| 22 |
#define version_populations POPULATIONS_VERSION |
| 23 |
|
| 24 |
#include "arbreplus.h" |
| 25 |
#include "fstat.h" |
| 26 |
#include "applpop.h" |
| 27 |
# ifndef COMPILATION_MINGW32 |
| 28 |
//# include "olivxml.h" |
| 29 |
# endif |
| 30 |
|
| 31 |
//#include "distgnt.h" |
| 32 |
/**Objet sp�cifique � l'application "Populations" |
| 33 |
*@author Olivier Langella |
| 34 |
*/ |
| 35 |
typedef biolib::arbres::ArbrePlus ArbrePlus; |
| 36 |
typedef biolib::vecteurs::ChaineCar ChaineCar; |
| 37 |
//typedef biolib::arbres::Arbre Arbre; |
| 38 |
|
| 39 |
class ApplPopulations: public ApplPop { |
| 40 |
public: |
| 41 |
ApplPopulations(); |
| 42 |
~ApplPopulations(); |
| 43 |
|
| 44 |
void affPubEntree() const; |
| 45 |
/** */ |
| 46 |
void affVlocus(const Vecteur<unsigned int> &) const; |
| 47 |
/** Demande le nom ou le numero d'un locus */ |
| 48 |
int DemandeLocus(const char laquestion[] = 0) const; |
| 49 |
|
| 50 |
private: |
| 51 |
|
| 52 |
int menu_principal(); |
| 53 |
void menu_formats(); |
| 54 |
int menu_metdistpop(); |
| 55 |
// int menu_metdistind(); |
| 56 |
int menu_metconstructarbre(); |
| 57 |
void menu_popstructurees(); |
| 58 |
void menu_arbrepop(); |
| 59 |
void menu_arbreind(); |
| 60 |
void menu_calculs(); |
| 61 |
/** Choix de locus */ |
| 62 |
Vecteur<unsigned int> menu_choixlocus() const; |
| 63 |
|
| 64 |
//traitement en ligne de commande: |
| 65 |
void fLigneCommande(char ** commandes, int nbcommandes); |
| 66 |
void fLiPhylogeny(Titre & tab_commandes); |
| 67 |
void fLiHelp() const; |
| 68 |
void fLiTest(Titre & tab_commandes); |
| 69 |
|
| 70 |
void fconstructarbre(MatriceLD &distances, string & nomficarbre, |
| 71 |
int methodearbre); |
| 72 |
void fmat2arbre(); |
| 73 |
bool fcompdistind(MatriceLD &distances, int metdist = 0); |
| 74 |
void fdistind(); |
| 75 |
void ftreeind(); |
| 76 |
void ftreeindBootLocus(); |
| 77 |
bool fcompdistpop(MatriceLD &distances, int metdist = 0); |
| 78 |
void fdistpop(); |
| 79 |
void ftreepop(); |
| 80 |
void ftreepopBootLocus(); |
| 81 |
void ftreepopBootInd(); |
| 82 |
void fintrogresse(); |
| 83 |
void frarefaction(); |
| 84 |
void fsetniveau(); |
| 85 |
void fmicrosatcorrections(); |
| 86 |
|
| 87 |
private: |
| 88 |
|
| 89 |
void ecritGenepop(); |
| 90 |
void ecritGenepopCano(); |
| 91 |
void ecritPopulations(); |
| 92 |
void ecritImmanc(); |
| 93 |
void ecritMsat(int); |
| 94 |
void ecritArbre(ArbrePlus & larbre, string nomFichier = ""); |
| 95 |
void ecritLea(); |
| 96 |
void ecritAdmix(); |
| 97 |
void ecritGenetix(); |
| 98 |
void ecritFstat(); |
| 99 |
void ecritRapportFst(); |
| 100 |
void ecritPopulationsXML(); |
| 101 |
|
| 102 |
void AffNiveauxPopStruc(ostream &); |
| 103 |
|
| 104 |
Vecteur<unsigned int> _VcalcLocus; |
| 105 |
bool _square_distance; |
| 106 |
}; |
| 107 |
|
| 108 |
#endif |
| 109 |
|