Package org.forester.surfacing
Class DomainParsimonyCalculator
java.lang.Object
org.forester.surfacing.DomainParsimonyCalculator
-
Method Summary
Modifier and TypeMethodDescriptionstatic DomainParsimonyCalculator
createInstance
(Phylogeny phylogeny) static DomainParsimonyCalculator
createInstance
(Phylogeny phylogeny, List<GenomeWideCombinableDomains> gwcd_list) static DomainParsimonyCalculator
createInstance
(Phylogeny phylogeny, List<GenomeWideCombinableDomains> gwcd_list, Map<String, Set<String>> domain_id_to_secondary_features_map) createMatrixOfDomainPresenceOrAbsence
(List<GenomeWideCombinableDomains> gwcd_list, SortedSet<String> positive_filter) createMatrixOfSecondaryFeatureBinaryDomainCombinationPresenceOrAbsence
(List<GenomeWideCombinableDomains> gwcd_list, Map<String, String> domain_id_to_second_features_map) void
void
void
executeDolloParsimonyOnDomainPresence
(SortedSet<String> positive_filter) void
executeDolloParsimonyOnSecondaryFeatures
(Map<Species, MappingResults> mapping_results_map) void
executeFitchParsimonyOnBinaryDomainCombintion
(boolean use_last) void
executeFitchParsimonyOnBinaryDomainCombintion
(long random_number_seed) void
executeFitchParsimonyOnBinaryDomainCombintionOnSecondaryFeatures
(boolean use_last) void
executeFitchParsimonyOnDomainPresence
(boolean use_last) void
executeFitchParsimonyOnDomainPresence
(long random_number_seed) void
executeOnGivenBinaryStatesMatrix
(CharacterStateMatrix<CharacterStateMatrix.BinaryStates> binary_states_matrix, String[] character_labels) int
getCost()
int
getNetGainsOnNode
(String node_identifier) int
getSumOfGainsOnNode
(String node_identifier) int
getSumOfLossesOnNode
(String node_identifier) int
getSumOfPresentOnNode
(String node_identifier) int
int
int
getUnitsGainedOnNode
(String node_identifier) getUnitsLostOnNode
(String node_identifier) getUnitsOnNode
(String node_identifier)
-
Method Details
-
executeDolloParsimonyOnBinaryDomainCombintionPresence
public void executeDolloParsimonyOnBinaryDomainCombintionPresence() -
executeDolloParsimonyOnDomainPresence
public void executeDolloParsimonyOnDomainPresence() -
executeDolloParsimonyOnDomainPresence
-
executeDolloParsimonyOnSecondaryFeatures
public void executeDolloParsimonyOnSecondaryFeatures(Map<Species, MappingResults> mapping_results_map) -
executeFitchParsimonyOnBinaryDomainCombintion
public void executeFitchParsimonyOnBinaryDomainCombintion(boolean use_last) -
executeFitchParsimonyOnBinaryDomainCombintion
public void executeFitchParsimonyOnBinaryDomainCombintion(long random_number_seed) -
executeFitchParsimonyOnBinaryDomainCombintionOnSecondaryFeatures
public void executeFitchParsimonyOnBinaryDomainCombintionOnSecondaryFeatures(boolean use_last) -
executeFitchParsimonyOnDomainPresence
public void executeFitchParsimonyOnDomainPresence(boolean use_last) -
executeFitchParsimonyOnDomainPresence
public void executeFitchParsimonyOnDomainPresence(long random_number_seed) -
executeOnGivenBinaryStatesMatrix
public void executeOnGivenBinaryStatesMatrix(CharacterStateMatrix<CharacterStateMatrix.BinaryStates> binary_states_matrix, String[] character_labels) -
getCost
public int getCost() -
getGainLossCountsMatrix
-
getGainLossMatrix
-
getInternalStatesMatrix
-
getNetGainsOnNode
-
getSumOfGainsOnNode
-
getSumOfLossesOnNode
-
getSumOfPresentOnNode
-
getTotalGains
public int getTotalGains() -
getTotalLosses
public int getTotalLosses() -
getTotalUnchanged
public int getTotalUnchanged() -
getUnitsGainedOnNode
-
getUnitsLostOnNode
-
getUnitsOnNode
-
createInstance
-
createInstance
public static DomainParsimonyCalculator createInstance(Phylogeny phylogeny, List<GenomeWideCombinableDomains> gwcd_list) -
createInstance
public static DomainParsimonyCalculator createInstance(Phylogeny phylogeny, List<GenomeWideCombinableDomains> gwcd_list, Map<String, Set<String>> domain_id_to_secondary_features_map) -
createMatrixOfBinaryDomainCombinationPresenceOrAbsence
public static CharacterStateMatrix<CharacterStateMatrix.BinaryStates> createMatrixOfBinaryDomainCombinationPresenceOrAbsence(List<GenomeWideCombinableDomains> gwcd_list) -
createMatrixOfDomainPresenceOrAbsence
public static CharacterStateMatrix<CharacterStateMatrix.BinaryStates> createMatrixOfDomainPresenceOrAbsence(List<GenomeWideCombinableDomains> gwcd_list, SortedSet<String> positive_filter) -
createMatrixOfSecondaryFeatureBinaryDomainCombinationPresenceOrAbsence
public static CharacterStateMatrix<CharacterStateMatrix.BinaryStates> createMatrixOfSecondaryFeatureBinaryDomainCombinationPresenceOrAbsence(List<GenomeWideCombinableDomains> gwcd_list, Map<String, String> domain_id_to_second_features_map)
-