bpp-seq3
3.0.0
|
Utilitary functions dealing with both sites and sequences. More...
#include <Bpp/Seq/SymbolListTools.h>
Public Member Functions | |
SymbolListTools () | |
virtual | ~SymbolListTools () |
Static Public Member Functions | |
static bool | hasGap (const IntSymbolListInterface &site) |
static bool | hasGap (const ProbabilisticSymbolListInterface &site) |
static bool | hasGap (const CruxSymbolListInterface &site) |
static bool | hasUnresolved (const IntSymbolListInterface &site) |
static bool | isGapOnly (const IntSymbolListInterface &site) |
static bool | isGapOnly (const ProbabilisticSymbolListInterface &site) |
static bool | isGapOnly (const CruxSymbolListInterface &site) |
static size_t | numberOfGaps (const IntSymbolListInterface &site) |
static size_t | numberOfGaps (const ProbabilisticSymbolListInterface &site) |
static size_t | numberOfGaps (const CruxSymbolListInterface &site) |
static bool | isGapOrUnresolvedOnly (const IntSymbolListInterface &site) |
static bool | isGapOrUnresolvedOnly (const ProbabilisticSymbolListInterface &site) |
static bool | isGapOrUnresolvedOnly (const CruxSymbolListInterface &site) |
static size_t | numberOfUnresolved (const IntSymbolListInterface &site) |
static size_t | numberOfUnresolved (const ProbabilisticSymbolListInterface &site) |
static size_t | numberOfUnresolved (const CruxSymbolListInterface &site) |
static bool | hasUnknown (const IntSymbolListInterface &site) |
static bool | hasUnknown (const ProbabilisticSymbolListInterface &site) |
static bool | hasUnknown (const CruxSymbolListInterface &site) |
static bool | isComplete (const IntSymbolListInterface &site) |
static bool | isComplete (const ProbabilisticSymbolListInterface &site) |
static bool | isComplete (const CruxSymbolListInterface &site) |
static bool | isConstant (const IntSymbolListInterface &site, bool ignoreUnknown=false, bool unresolvedRaisesException=true) |
Tell if a site is constant, that is displaying the same state in all sequences that do not present a gap. More... | |
static bool | isConstant (const ProbabilisticSymbolListInterface &site, bool unresolvedRaisesException=true) |
static bool | isConstant (const CruxSymbolListInterface &site, bool ignoreUnknown=false, bool unresolvedRaisesException=true) |
static bool | areSymbolListsIdentical (const IntSymbolListInterface &list1, const IntSymbolListInterface &list2) |
static bool | areSymbolListsIdentical (const ProbabilisticSymbolListInterface &list1, const ProbabilisticSymbolListInterface &list2) |
static bool | areSymbolListsIdentical (const CruxSymbolListInterface &l1, const CruxSymbolListInterface &l2) |
template<class count_type > | |
static void | getCounts (const IntSymbolListInterface &list, std::map< int, count_type > &counts) |
Count all states in the list. More... | |
static void | getCounts (const ProbabilisticSymbolListInterface &list, std::map< int, double_t > &counts) |
Sum all states in the list. More... | |
static void | getCountsResolveUnknowns (const IntSymbolListInterface &list, std::map< int, double > &counts) |
Count all states in the list normalizing unknown characters. More... | |
static void | getCountsResolveUnknowns (const ProbabilisticSymbolListInterface &list, std::map< int, double > &counts) |
Count all states in the list normalizing unknown characters. More... | |
static void | getCounts (const CruxSymbolListInterface &list, std::map< int, double > &counts, bool resolveUnknowns=false) |
Count all states in the list, optionally resolving unknown characters. More... | |
template<class count_type > | |
static void | getCounts (const IntSymbolListInterface &list1, const IntSymbolListInterface &list2, std::map< int, std::map< int, count_type >> &counts) |
Count all pair of states for two lists of the same size. More... | |
static void | getCounts (const ProbabilisticSymbolListInterface &list1, const ProbabilisticSymbolListInterface &list2, std::map< int, std::map< int, double >> &counts) |
Sum along the lists the joined probabilities for all pair of states for two lists of the same size. More... | |
static void | getCountsResolveUnknowns (const IntSymbolListInterface &list1, const IntSymbolListInterface &list2, std::map< int, std::map< int, double >> &counts) |
Count all pairs of states for two lists of the same size resolving unknown characters. More... | |
static void | getCountsResolveUnknowns (const ProbabilisticSymbolListInterface &list1, const ProbabilisticSymbolListInterface &list2, std::map< int, std::map< int, double >> &counts) |
Count all pairs of states for two lists of the same size resolving unknown characters. More... | |
static void | getCounts (const CruxSymbolListInterface &list1, const CruxSymbolListInterface &list2, std::map< int, std::map< int, double >> &counts, bool resolveUnknowns) |
Count all pairs of states for two lists of the same size, optionally resolving unknown characters. More... | |
static void | getFrequencies (const CruxSymbolListInterface &list, std::map< int, double > &frequencies, bool resolveUnknowns=false) |
Get all states frequencies in the list. More... | |
static void | getFrequencies (const CruxSymbolListInterface &list1, const CruxSymbolListInterface &list2, std::map< int, std::map< int, double >> &frequencies, bool resolveUnknowns=false) |
Get all state pairs frequencies for two lists of the same size. More... | |
static double | getGCContent (const IntSymbolListInterface &list, bool ignoreUnresolved=true, bool ignoreGap=true) |
Get the GC content of a symbol list. More... | |
static double | getGCContent (const ProbabilisticSymbolListInterface &list, bool ignoreUnresolved=true, bool ignoreGap=true) |
static double | getGCContent (const CruxSymbolListInterface &list, bool ignoreUnresolved=true, bool ignoreGap=true) |
static size_t | getNumberOfDistinctPositions (const IntSymbolListInterface &l1, const IntSymbolListInterface &l2) |
Get the number of distinct positions. More... | |
static size_t | getNumberOfDistinctPositions (const ProbabilisticSymbolListInterface &l1, const ProbabilisticSymbolListInterface &l2) |
static size_t | getNumberOfDistinctPositions (const CruxSymbolListInterface &l1, const CruxSymbolListInterface &l2) |
static size_t | getNumberOfPositionsWithoutGap (const IntSymbolListInterface &l1, const IntSymbolListInterface &l2) |
Get the number of positions without gap (or without null column). More... | |
static size_t | getNumberOfPositionsWithoutGap (const ProbabilisticSymbolListInterface &l1, const ProbabilisticSymbolListInterface &l2) |
static size_t | getNumberOfPositionsWithoutGap (const CruxSymbolListInterface &l1, const CruxSymbolListInterface &l2) |
static void | changeGapsToUnknownCharacters (IntSymbolListInterface &l) |
Change all gap elements to unknown characters (or columns of 1). More... | |
static void | changeGapsToUnknownCharacters (ProbabilisticSymbolListInterface &l) |
static void | changeGapsToUnknownCharacters (CruxSymbolListInterface &l) |
static void | changeUnresolvedCharactersToGaps (IntSymbolListInterface &l) |
Change all unknown characters to gap elements (or columns of 0). More... | |
static void | changeUnresolvedCharactersToGaps (ProbabilisticSymbolListInterface &l) |
static void | changeUnresolvedCharactersToGaps (CruxSymbolListInterface &l) |
static double | variabilityShannon (const CruxSymbolListInterface &list, bool resolveUnknowns) |
Compute the Shannon entropy index of a SymbolList. More... | |
static double | variabilityFactorial (const IntSymbolListInterface &list) |
Compute the factorial diversity index of a site. More... | |
static double | mutualInformation (const CruxSymbolListInterface &list1, const CruxSymbolListInterface &list2, bool resolveUnknowns) |
Compute the mutual information between two lists. More... | |
static double | entropy (const CruxSymbolListInterface &list, bool resolveUnknowns) |
Compute the entropy of a site. This is an alias of method variabilityShannon. More... | |
static double | jointEntropy (const CruxSymbolListInterface &list1, const CruxSymbolListInterface &list2, bool resolveUnknowns) |
Compute the joint entropy between two lists. More... | |
static double | heterozygosity (const CruxSymbolListInterface &list) |
Compute the heterozygosity index of a list. More... | |
static size_t | getNumberOfDistinctCharacters (const IntSymbolListInterface &list) |
Give the number of distinct characters at a list. More... | |
static size_t | getMajorAlleleFrequency (const IntSymbolListInterface &list) |
return the number of occurrences of the most common allele. More... | |
static int | getMajorAllele (const CruxSymbolListInterface &list) |
return the state corresponding to the most common allele. More... | |
static size_t | getMinorAlleleFrequency (const IntSymbolListInterface &list) |
return the number of occurrences of the least common allele. More... | |
static int | getMinorAllele (const CruxSymbolListInterface &list) |
return the state corresponding to the least common allele. More... | |
static bool | hasSingleton (const IntSymbolListInterface &list) |
Tell if a list has singletons. More... | |
static bool | isParsimonyInformativeSite (const IntSymbolListInterface &site) |
Tell if a site is a parsimony informative site. More... | |
static bool | isTriplet (const IntSymbolListInterface &list) |
Tell if a list has more than 2 distinct characters. More... | |
static bool | isDoubleton (const IntSymbolListInterface &list) |
Tell if a list has exactly 2 distinct characters. More... | |
Utilitary functions dealing with both sites and sequences.
Definition at line 22 of file SymbolListTools.h.
|
inline |
Definition at line 25 of file SymbolListTools.h.
|
inlinevirtual |
Definition at line 26 of file SymbolListTools.h.
|
inlinestatic |
Definition at line 239 of file SymbolListTools.h.
References areSymbolListsIdentical().
|
static |
list1 | The first site. |
list2 | The second site. |
Definition at line 216 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by areSymbolListsIdentical().
|
static |
Definition at line 236 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 709 of file SymbolListTools.h.
References changeGapsToUnknownCharacters().
|
static |
Change all gap elements to unknown characters (or columns of 1).
l | The input list of characters. |
Definition at line 501 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by changeGapsToUnknownCharacters().
|
static |
Definition at line 614 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 736 of file SymbolListTools.h.
References changeUnresolvedCharactersToGaps().
|
static |
Change all unknown characters to gap elements (or columns of 0).
l | The input list of characters. |
Definition at line 511 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by changeUnresolvedCharactersToGaps().
|
static |
Definition at line 623 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Compute the entropy of a site. This is an alias of method variabilityShannon.
where is the frequency of state .
list | A list. |
resolveUnknowns | Tell is unknown characters must be resolved. |
Definition at line 817 of file SymbolListTools.h.
References variabilityShannon().
|
inlinestatic |
Count all states in the list, optionally resolving unknown characters.
For instance, in DNA, N will be counted as A=1/4,T=1/4,C=1/4,G=1/4.
list | The list. |
counts | The output map to store the counts (existing ocunts will be incremented). |
resolveUnknowns | Tell is unknown characters must be resolved. |
Definition at line 360 of file SymbolListTools.h.
References getCounts(), and getCountsResolveUnknowns().
|
inlinestatic |
Count all pairs of states for two lists of the same size, optionally resolving unknown characters.
For instance, in DNA, N will be counted as A=1/4,T=1/4,C=1/4,G=1/4.
NB: The two lists do node need to share the same alphabet! The states of the first list will be used as the first index in the output, and the ones from the second list as the second index.
list1 | The first list. |
list2 | The second list. |
counts | The output map to store the counts (existing ocunts will be incremented). |
resolveUnknowns | Tell is unknown characters must be resolved. For instance, in DNA, N will be counted as A=1/4,T=1/4,C=1/4,G=1/4. |
Definition at line 514 of file SymbolListTools.h.
References getCounts(), and getCountsResolveUnknowns().
|
inlinestatic |
Count all states in the list.
list | The list. |
counts | The output map to store the counts (existing counts will be incremented). |
Definition at line 265 of file SymbolListTools.h.
References bpp::CruxSymbolListInterface::size().
Referenced by getCounts(), bpp::SequenceContainerTools::getFrequencies(), bpp::CodonSiteTools::isSynonymousPolymorphic(), and bpp::CodonSiteTools::numberOfNonSynonymousSubstitutions().
|
inlinestatic |
Count all pair of states for two lists of the same size.
NB: The two lists do node need to share the same alphabet! The states of the first list will be used as the first index in the output, and the ones from the second list as the second index.
list1 | The first list. |
list2 | The second list. |
counts | The output map to store the counts (existing counts will be incremented). |
Definition at line 412 of file SymbolListTools.h.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Sum all states in the list.
list | The list. |
counts | The output map to store the sum for all states (existing counts will be summed). |
Definition at line 282 of file SymbolListTools.h.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Sum along the lists the joined probabilities for all pair of states for two lists of the same size.
NB: The two lists do node need to share the same alphabet! The states of the first list will be used as the first index in the output, and the ones from the second list as the second index.
list1 | The first list. |
list2 | The second list. |
counts | The output map to store the counts (existing counts will be summed). |
Definition at line 437 of file SymbolListTools.h.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Count all states in the list normalizing unknown characters.
For instance, (1,1,1,1) will be counted as (1/4,1/4,1/4,1/4).
list | The list. |
counts | The output map to store the counts (existing ocunts will be incremented). |
Definition at line 306 of file SymbolListTools.h.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by getCounts().
|
static |
Count all pairs of states for two lists of the same size resolving unknown characters.
For instance, (1,1,1,1) will be counted as (1/4,1/4,1/4,1/4).
NB: The two lists do node need to share the same alphabet! The states of the first list will be used as the first index in the output, and the ones from the second list as the second index.
list1 | The first list. |
list2 | The second list. |
counts | The output map to store the counts (existing ocunts will be incremented). |
Definition at line 357 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Count all states in the list normalizing unknown characters.
For instance, (1,1,1,1) will be counted as (1/4,1/4,1/4,1/4).
list | The list. |
counts | The output map to store the counts (existing ocunts will be incremented). |
Definition at line 331 of file SymbolListTools.h.
References bpp::CruxSymbolListInterface::size(), and bpp::VectorTools::sum().
|
static |
Count all pairs of states for two lists of the same size resolving unknown characters.
For instance, (1,1,1,1) will be counted as (1/4,1/4,1/4,1/4).
NB: The two lists do node need to share the same alphabet! The states of the first list will be used as the first index in the output, and the ones from the second list as the second index.
list1 | The first list. |
list2 | The second list. |
counts | The output map to store the counts (existing ocunts will be incremented). |
Definition at line 522 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
Get all states frequencies in the list.
list | The list. |
resolveUnknowns | Tell is unknown characters must be resolved. For instance, in DNA, N will be counted as A=1/4,T=1/4,C=1/4,G=1/4. |
frequencies | The output map with all states and corresponding frequencies. Existing frequencies will be erased if any. |
Definition at line 380 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
Referenced by bpp::CodonSiteTools::generateCodonSiteWithoutRareVariant(), bpp::SiteContainerTools::getConsensus(), bpp::CodonSiteTools::meanNumberOfSynonymousPositions(), bpp::CodonSiteTools::piNonSynonymous(), bpp::CodonSiteTools::piSynonymous(), and bpp::SiteContainerTools::removeGapSites().
|
static |
Get all state pairs frequencies for two lists of the same size.
list1 | The first list. |
list2 | The second list. |
resolveUnknowns | Tell is unknown characters must be resolved. For instance, in DNA, N will be counted as A=1/4,T=1/4,C=1/4,G=1/4. For ProbabilisticSymbolList, (1,1,1,1) states will be counted as (1/4,1/4,1/4,1/4). |
frequencies | The output map with all state pairs and corresponding frequencies. Existing frequencies will be erased if any. |
Definition at line 396 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 609 of file SymbolListTools.h.
References getGCContent().
|
static |
Get the GC content of a symbol list.
list | The list. |
ignoreUnresolved | Do not count unresolved states (or columns that sum > 1). Otherwise, weight by each state probability in case of ambiguity (e.g. the R state counts for 0.5) (or columns are normalized). |
ignoreGap | Do not count gaps (or null columns) in total |
AlphabetException | If the list is not made of nucleotide states. |
Definition at line 415 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), bpp::TemplateCoreSymbolListInterface< T >::getValue(), and bpp::CruxSymbolListInterface::size().
Referenced by getGCContent().
|
static |
Definition at line 544 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), bpp::TemplateCoreSymbolListInterface< T >::getValue(), and bpp::CruxSymbolListInterface::size().
|
static |
return the state corresponding to the most common allele.
list | A list |
Definition at line 817 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
return the number of occurrences of the most common allele.
list | A list |
Definition at line 795 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
return the state corresponding to the least common allele.
list | A list |
Definition at line 866 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
return the number of occurrences of the least common allele.
list | A list |
Definition at line 844 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
Give the number of distinct characters at a list.
list | A list |
Definition at line 774 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
Referenced by bpp::CodonSiteTools::numberOfSubstitutions().
|
inlinestatic |
Definition at line 646 of file SymbolListTools.h.
References getNumberOfDistinctPositions().
|
static |
Get the number of distinct positions.
The comparison in achieved from position 0 to the minimum size of the two vectors.
l1 | SymbolList 1. |
l2 | SymbolList 2. |
AlphabetMismatchException | if the two lists have not the same alphabet type. |
Definition at line 469 of file SymbolListTools.cpp.
References count(), bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by getNumberOfDistinctPositions().
|
static |
Definition at line 581 of file SymbolListTools.cpp.
References count(), bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 682 of file SymbolListTools.h.
References getNumberOfPositionsWithoutGap().
|
static |
Get the number of positions without gap (or without null column).
The comparison in achieved from position 0 to the minimum size of the two vectors.
l1 | SymbolList 1. |
l2 | SymbolList 2. |
AlphabetMismatchException | if the two lists have not the same alphabet type. |
Definition at line 485 of file SymbolListTools.cpp.
References count(), bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by getNumberOfPositionsWithoutGap().
|
static |
Definition at line 598 of file SymbolListTools.cpp.
References count(), bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 36 of file SymbolListTools.h.
References hasGap().
|
static |
site | A site. |
Definition at line 22 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by bpp::SiteContainerTools::changeGapsToUnknownCharacters(), bpp::SiteContainerTools::getSitesWithoutGaps(), hasGap(), bpp::NoGapTemplateSiteContainerIterator< SiteType, SequenceType, HashType >::nextSiteWithoutGapPosition(), bpp::CodonSiteTools::numberOfNonSynonymousSubstitutions(), bpp::CodonSiteTools::numberOfSubstitutions(), and bpp::NoGapTemplateSiteContainerIterator< SiteType, SequenceType, HashType >::previousSiteWithoutGapPosition().
|
static |
Definition at line 33 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
Tell if a list has singletons.
list | A list. |
Definition at line 892 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 152 of file SymbolListTools.h.
References hasUnknown().
|
static |
site | A site. |
Definition at line 109 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by hasUnknown().
|
static |
Definition at line 120 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
site | A site. |
Definition at line 46 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by bpp::SiteContainerTools::changeUnresolvedCharactersToGaps().
|
static |
Compute the heterozygosity index of a list.
where is the frequency of state .
list | A list. |
Definition at line 760 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 174 of file SymbolListTools.h.
References isComplete().
|
static |
site | A site. |
Definition at line 134 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by bpp::SiteContainerTools::getCompleteSites(), isComplete(), bpp::CompleteTemplateSiteContainerIterator< SiteType, SequenceType, HashType >::nextCompleteSitePosition(), and bpp::CompleteTemplateSiteContainerIterator< SiteType, SequenceType, HashType >::previousCompleteSitePosition().
|
static |
Definition at line 145 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 208 of file SymbolListTools.h.
References isConstant().
|
static |
Tell if a site is constant, that is displaying the same state in all sequences that do not present a gap.
site | A site. |
ignoreUnknown | If true, positions with unknown positions will be ignored. Otherwise, a site with one single state + any uncertain state will not be considered as constant. |
unresolvedRaisesException | In case of ambiguous case (gap only site for instance), throw an exception. Otherwise returns false. |
Definition at line 258 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by bpp::CodonSiteTools::fixedDifferences(), bpp::CodonSiteTools::generateCodonSiteWithoutRareVariant(), isConstant(), bpp::CodonSiteTools::isFourFoldDegenerated(), bpp::CodonSiteTools::isMonoSitePolymorphic(), bpp::CodonSiteTools::isSynonymousPolymorphic(), bpp::CodonSiteTools::numberOfNonSynonymousSubstitutions(), bpp::CodonSiteTools::numberOfSubstitutions(), bpp::CodonSiteTools::piNonSynonymous(), and bpp::CodonSiteTools::piSynonymous().
|
static |
Definition at line 320 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
Tell if a list has exactly 2 distinct characters.
list | A list. |
Definition at line 946 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 64 of file SymbolListTools.h.
References isGapOnly().
|
static |
site | A site. |
Definition at line 59 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by isGapOnly(), bpp::SiteContainerTools::removeGapOnlySites(), and bpp::SiteContainerTools::removeGapOrUnresolvedOnlySites().
|
static |
Definition at line 71 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 108 of file SymbolListTools.h.
References isGapOrUnresolvedOnly().
|
static |
site | A site. |
Definition at line 84 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by isGapOrUnresolvedOnly(), and bpp::SiteContainerTools::removeGapOrUnresolvedOnlySites().
|
static |
Definition at line 95 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
Tell if a site is a parsimony informative site.
At least two distinct characters must be present.
site | a Site. |
Definition at line 912 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
Tell if a list has more than 2 distinct characters.
list | A list. |
Definition at line 935 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
Compute the joint entropy between two lists.
where is the frequency of the pair .
list1 | First list |
list2 | Second list |
resolveUnknowns | Tell is unknown characters must be resolved. |
Definition at line 706 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
|
static |
Compute the mutual information between two lists.
where and are the frequencies of states and , and is the frequency of the pair .
list1 | First list |
list2 | Second list |
resolveUnknowns | Tell is unknown characters must be resolved. |
Definition at line 656 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 86 of file SymbolListTools.h.
References numberOfGaps().
|
static |
site | A site. |
Definition at line 159 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by bpp::SequenceApplicationTools::getSitesToAnalyse(), and numberOfGaps().
|
static |
Definition at line 172 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
inlinestatic |
Definition at line 130 of file SymbolListTools.h.
References numberOfUnresolved().
|
static |
site | A site. |
Definition at line 187 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by bpp::SequenceApplicationTools::getSitesToAnalyse(), and numberOfUnresolved().
|
static |
Definition at line 200 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
Compute the factorial diversity index of a site.
where is the number of times state is observed in the site.
list | A list. |
Definition at line 744 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::size().
|
static |
Compute the Shannon entropy index of a SymbolList.
where is the frequency of state .
list | A list. |
resolveUnknowns | Tell is unknown characters must be resolved. |
Definition at line 632 of file SymbolListTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::CruxSymbolListInterface::size().
Referenced by entropy().