bpp-popgen
3.0.0
|
Tools for PolymorphismMultiGContainer. More...
#include <Bpp/PopGen/PolymorphismMultiGContainerTools.h>
Tools for PolymorphismMultiGContainer.
Provides static methods for permutations.
Definition at line 61 of file PolymorphismMultiGContainerTools.h.
|
static |
Definition at line 348 of file PolymorphismMultiGContainerTools.cpp.
References bpp::PolymorphismMultiGContainer::addMultilocusGenotype(), bpp::PolymorphismMultiGContainer::getAllGroupsIds(), bpp::PolymorphismMultiGContainer::getGroupId(), bpp::PolymorphismMultiGContainer::getGroupName(), bpp::PolymorphismMultiGContainer::getMultilocusGenotype(), bpp::PolymorphismMultiGContainer::setGroupName(), and bpp::PolymorphismMultiGContainer::size().
Referenced by bpp::MultilocusGenotypeStatistics::getWCMultilocusFisAndPerm(), and bpp::MultilocusGenotypeStatistics::getWCMultilocusFstAndPerm().
|
static |
Permut the Alleles.
Permut the alleles in one or several groups breaking the links between them.
pmgc | The PolymorphismMultiGContainer to permut. |
groups | The groups ids between which the MonolocusGenotypes will be permuted. |
Definition at line 197 of file PolymorphismMultiGContainerTools.cpp.
References bpp::PolymorphismMultiGContainer::addMultilocusGenotype(), bpp::MonolocusGenotype::getAlleleIndex(), bpp::PolymorphismMultiGContainer::getAllGroupsIds(), bpp::PolymorphismMultiGContainer::getGroupId(), bpp::PolymorphismMultiGContainer::getGroupName(), bpp::MultilocusGenotype::getMonolocusGenotype(), bpp::PolymorphismMultiGContainer::getMultilocusGenotype(), bpp::PolymorphismMultiGContainer::getNumberOfLoci(), bpp::MultilocusGenotype::isMonolocusGenotypeMissing(), bpp::PolymorphismMultiGContainer::setGroupName(), bpp::MultilocusGenotype::setMonolocusGenotype(), and bpp::PolymorphismMultiGContainer::size().
|
static |
Permut the Alleles between individuals in the same group.
Permut the alleles in one or several groups
pmgc | The PolymorphismMultiGContainer to permut. |
groups | The groups ids between which the MonolocusGenotypes will be permuted. |
Definition at line 263 of file PolymorphismMultiGContainerTools.cpp.
References bpp::PolymorphismMultiGContainer::addMultilocusGenotype(), bpp::MonolocusGenotype::getAlleleIndex(), bpp::PolymorphismMultiGContainer::getAllGroupsIds(), bpp::PolymorphismMultiGContainer::getGroupId(), bpp::PolymorphismMultiGContainer::getGroupName(), bpp::MultilocusGenotype::getMonolocusGenotype(), bpp::PolymorphismMultiGContainer::getMultilocusGenotype(), bpp::PolymorphismMultiGContainer::getNumberOfLoci(), bpp::MultilocusGenotype::isMonolocusGenotypeMissing(), bpp::PolymorphismMultiGContainer::setGroupName(), bpp::MultilocusGenotype::setMonolocusGenotype(), and bpp::PolymorphismMultiGContainer::size().
Referenced by bpp::MultilocusGenotypeStatistics::getWCMultilocusFisAndPerm().
|
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
pmgc | The PolymorphismMultiGContainer to permut. |
groups | The groups ids for which the MonolocusGenotypes will be permuted. |
Definition at line 127 of file PolymorphismMultiGContainerTools.cpp.
References bpp::PolymorphismMultiGContainer::addMultilocusGenotype(), bpp::PolymorphismMultiGContainer::getAllGroupsIds(), bpp::PolymorphismMultiGContainer::getGroupId(), bpp::PolymorphismMultiGContainer::getGroupName(), bpp::MultilocusGenotype::getMonolocusGenotype(), bpp::PolymorphismMultiGContainer::getMultilocusGenotype(), bpp::PolymorphismMultiGContainer::getNumberOfLoci(), bpp::PolymorphismMultiGContainer::setGroupName(), bpp::MultilocusGenotype::setMonolocusGenotype(), and bpp::PolymorphismMultiGContainer::size().
|
static |
Permut the MonolocusGenotype.
Permut the MonolocusGenotypes in one or several groups breaking the links between them.
pmgc | The PolymorphismMultiGContainer to permut. |
groups | The groups ids between which the MonolocusGenotypes will be permuted. |
Definition at line 69 of file PolymorphismMultiGContainerTools.cpp.
References bpp::PolymorphismMultiGContainer::addMultilocusGenotype(), bpp::PolymorphismMultiGContainer::getAllGroupsIds(), bpp::PolymorphismMultiGContainer::getGroupId(), bpp::PolymorphismMultiGContainer::getGroupName(), bpp::MultilocusGenotype::getMonolocusGenotype(), bpp::PolymorphismMultiGContainer::getMultilocusGenotype(), bpp::PolymorphismMultiGContainer::getNumberOfLoci(), bpp::PolymorphismMultiGContainer::setGroupName(), bpp::MultilocusGenotype::setMonolocusGenotype(), and bpp::PolymorphismMultiGContainer::size().
|
static |
Permut the MultilocusGenotype in the whole PolymorphismMultiGContainer.
pmgc | The PolymorphismMultiGContainer to permut. |
Definition at line 49 of file PolymorphismMultiGContainerTools.cpp.
References bpp::PolymorphismMultiGContainer::getGroupId(), bpp::PolymorphismMultiGContainer::setGroupId(), and bpp::PolymorphismMultiGContainer::size().
Referenced by bpp::MultilocusGenotypeStatistics::getWCMultilocusFstAndPerm().