bpp-popgen3  3.0.0
bpp::PolymorphismMultiGContainerTools Class Reference

Tools for PolymorphismMultiGContainer. More...

#include <Bpp/PopGen/PolymorphismMultiGContainerTools.h>

Static Public Member Functions

static std::unique_ptr< PolymorphismMultiGContainerpermuteMultiG (const PolymorphismMultiGContainer &pmgc)
 Permut the MultilocusGenotype in the whole PolymorphismMultiGContainer. More...
 
static std::unique_ptr< PolymorphismMultiGContainerpermuteMonoG (const PolymorphismMultiGContainer &pmgc, const std::set< size_t > &groups)
 Permut the MonolocusGenotype. More...
 
static std::unique_ptr< PolymorphismMultiGContainerpermuteIntraGroupMonoG (const PolymorphismMultiGContainer &pmgc, const std::set< size_t > &groups)
 Permut the MonolocusGenotype between individuals in the same group. More...
 
static std::unique_ptr< PolymorphismMultiGContainerpermuteAlleles (const PolymorphismMultiGContainer &pmgc, const std::set< size_t > &groups)
 Permut the Alleles. More...
 
static std::unique_ptr< PolymorphismMultiGContainerpermuteIntraGroupAlleles (const PolymorphismMultiGContainer &pmgc, const std::set< size_t > &groups)
 Permut the Alleles between individuals in the same group. More...
 
static std::unique_ptr< PolymorphismMultiGContainerextractGroups (const PolymorphismMultiGContainer &pmgc, const std::set< size_t > &groups)
 

Detailed Description

Tools for PolymorphismMultiGContainer.

Provides static methods for permutations.

Author
Sylvain Gaillard

Definition at line 25 of file PolymorphismMultiGContainerTools.h.

Member Function Documentation

◆ extractGroups()

◆ permuteAlleles()

unique_ptr< PolymorphismMultiGContainer > PolymorphismMultiGContainerTools::permuteAlleles ( const PolymorphismMultiGContainer pmgc,
const std::set< size_t > &  groups 
)
static

◆ permuteIntraGroupAlleles()

unique_ptr< PolymorphismMultiGContainer > PolymorphismMultiGContainerTools::permuteIntraGroupAlleles ( const PolymorphismMultiGContainer pmgc,
const std::set< size_t > &  groups 
)
static

◆ permuteIntraGroupMonoG()

unique_ptr< PolymorphismMultiGContainer > PolymorphismMultiGContainerTools::permuteIntraGroupMonoG ( const PolymorphismMultiGContainer pmgc,
const std::set< size_t > &  groups 
)
static

Permut the MonolocusGenotype between individuals in the same group.

Permut the MonolocusGenotypes for a set of groups. The idiv for the other groups are kept intact

Parameters
pmgcThe PolymorphismMultiGContainer to permut.
groupsThe groups ids for which the MonolocusGenotypes will be permuted.
Returns
A permuted PolymorphismMultiGContainer.

Definition at line 93 of file PolymorphismMultiGContainerTools.cpp.

References bpp::MonolocusGenotypeInterface::clone(), bpp::PolymorphismMultiGContainer::getAllGroupsIds(), bpp::PolymorphismMultiGContainer::getGroupId(), bpp::PolymorphismMultiGContainer::getGroupName(), bpp::PolymorphismMultiGContainer::getNumberOfLoci(), bpp::MultilocusGenotype::monolocusGenotype(), bpp::PolymorphismMultiGContainer::multilocusGenotype(), and bpp::PolymorphismMultiGContainer::size().

◆ permuteMonoG()

unique_ptr< PolymorphismMultiGContainer > PolymorphismMultiGContainerTools::permuteMonoG ( const PolymorphismMultiGContainer pmgc,
const std::set< size_t > &  groups 
)
static

◆ permuteMultiG()

unique_ptr< PolymorphismMultiGContainer > PolymorphismMultiGContainerTools::permuteMultiG ( const PolymorphismMultiGContainer pmgc)
static

The documentation for this class was generated from the following files: