bpp-popgen3
3.0.0
PolymorphismMultiGContainerTools.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: The Bio++ Development Group
2
//
3
// SPDX-License-Identifier: CECILL-2.1
4
5
#ifndef _POLYMORPHISMMULTIGCONTAINERTOOLS_H_
6
#define _POLYMORPHISMMULTIGCONTAINERTOOLS_H_
7
8
// From the STL
9
#include <set>
10
11
// From the PolGenLib library
12
#include "
PolymorphismMultiGContainer.h
"
13
14
#include <
Bpp/Numeric/Random/RandomTools.h
>
15
16
namespace
bpp
17
{
25
class
PolymorphismMultiGContainerTools
26
{
27
public
:
34
static
std::unique_ptr<PolymorphismMultiGContainer>
permuteMultiG
(
const
PolymorphismMultiGContainer
& pmgc);
35
46
static
std::unique_ptr<PolymorphismMultiGContainer>
permuteMonoG
(
const
PolymorphismMultiGContainer
& pmgc,
const
std::set<size_t>& groups);
47
58
static
std::unique_ptr<PolymorphismMultiGContainer>
permuteIntraGroupMonoG
(
const
PolymorphismMultiGContainer
& pmgc,
const
std::set<size_t>& groups);
59
70
static
std::unique_ptr<PolymorphismMultiGContainer>
permuteAlleles
(
const
PolymorphismMultiGContainer
& pmgc,
const
std::set<size_t>& groups);
71
81
static
std::unique_ptr<PolymorphismMultiGContainer>
permuteIntraGroupAlleles
(
const
PolymorphismMultiGContainer
& pmgc,
const
std::set<size_t>& groups);
82
83
static
std::unique_ptr<PolymorphismMultiGContainer>
extractGroups
(
const
PolymorphismMultiGContainer
& pmgc,
const
std::set<size_t>& groups);
84
};
85
}
// end of namespace bpp;
86
87
#endif
// _POLYMORPHISMMULTIGCONTAINERTOOLS_H_
PolymorphismMultiGContainer.h
RandomTools.h
bpp::PolymorphismMultiGContainerTools
Tools for PolymorphismMultiGContainer.
Definition:
PolymorphismMultiGContainerTools.h:26
bpp::PolymorphismMultiGContainerTools::permuteMultiG
static std::unique_ptr< PolymorphismMultiGContainer > permuteMultiG(const PolymorphismMultiGContainer &pmgc)
Permut the MultilocusGenotype in the whole PolymorphismMultiGContainer.
Definition:
PolymorphismMultiGContainerTools.cpp:15
bpp::PolymorphismMultiGContainerTools::permuteIntraGroupAlleles
static std::unique_ptr< PolymorphismMultiGContainer > permuteIntraGroupAlleles(const PolymorphismMultiGContainer &pmgc, const std::set< size_t > &groups)
Permut the Alleles between individuals in the same group.
Definition:
PolymorphismMultiGContainerTools.cpp:231
bpp::PolymorphismMultiGContainerTools::permuteAlleles
static std::unique_ptr< PolymorphismMultiGContainer > permuteAlleles(const PolymorphismMultiGContainer &pmgc, const std::set< size_t > &groups)
Permut the Alleles.
Definition:
PolymorphismMultiGContainerTools.cpp:164
bpp::PolymorphismMultiGContainerTools::extractGroups
static std::unique_ptr< PolymorphismMultiGContainer > extractGroups(const PolymorphismMultiGContainer &pmgc, const std::set< size_t > &groups)
Definition:
PolymorphismMultiGContainerTools.cpp:318
bpp::PolymorphismMultiGContainerTools::permuteIntraGroupMonoG
static std::unique_ptr< PolymorphismMultiGContainer > permuteIntraGroupMonoG(const PolymorphismMultiGContainer &pmgc, const std::set< size_t > &groups)
Permut the MonolocusGenotype between individuals in the same group.
Definition:
PolymorphismMultiGContainerTools.cpp:93
bpp::PolymorphismMultiGContainerTools::permuteMonoG
static std::unique_ptr< PolymorphismMultiGContainer > permuteMonoG(const PolymorphismMultiGContainer &pmgc, const std::set< size_t > &groups)
Permut the MonolocusGenotype.
Definition:
PolymorphismMultiGContainerTools.cpp:34
bpp::PolymorphismMultiGContainer
The PolymorphismMultiGContainer class.
Definition:
PolymorphismMultiGContainer.h:35
bpp
Bpp
PopGen
PolymorphismMultiGContainerTools.h
Generated on Sun Jul 21 2024 08:40:35 for bpp-popgen3 by
1.9.1