Package org.forester.surfacing
Class DomainArchitectureBasedGenomeSimilarityCalculator
java.lang.Object
org.forester.surfacing.DomainArchitectureBasedGenomeSimilarityCalculator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
static final double
-
Constructor Summary
ConstructorDescriptionDomainArchitectureBasedGenomeSimilarityCalculator
(GenomeWideCombinableDomains combinable_domains_genome_0, GenomeWideCombinableDomains combinable_domains_genome_1) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDomainIdToIgnore
(String domain_id_to_ignore) double
This returns a score between 0.0 (no binary domain combination in common) and 1.0 (all binary domain combinations in common) measuring the similarity between two genomes based on the number of shared binary domain combinations: t: sum of (distinct) binary domain combinations s: sum of shared (distinct) binary domain combinations 1 - ( ( t - s ) / t )double
This returns a score between 0.0 (no domains in common) and 1.0 (all domains in common) measuring the similarity between two genomes based on the number of shared domains: t: sum of (distinct) domains s: sum of shared (distinct) domains 1 - ( ( t - s ) / t )void
Does not return binary combinations which contain one or two domains to be ignored -- if ignoring is allowed.Does not return domains which are to be ignored -- if ignoring is allowed.void
setAllowDomainsToBeIgnored
(boolean allow_domains_to_be_ignored)
-
Field Details
-
MAX_SIMILARITY_SCORE
public static final double MAX_SIMILARITY_SCORE- See Also:
-
MIN_SIMILARITY_SCORE
public static final double MIN_SIMILARITY_SCORE- See Also:
-
-
Constructor Details
-
DomainArchitectureBasedGenomeSimilarityCalculator
public DomainArchitectureBasedGenomeSimilarityCalculator(GenomeWideCombinableDomains combinable_domains_genome_0, GenomeWideCombinableDomains combinable_domains_genome_1)
-
-
Method Details
-
addDomainIdToIgnore
-
deleteAllDomainIdsToIgnore
public void deleteAllDomainIdsToIgnore() -
getAllBinaryDomainCombinations
Does not return binary combinations which contain one or two domains to be ignored -- if ignoring is allowed.- Returns:
- SortedSet
-
getAllDomains
Does not return domains which are to be ignored -- if ignoring is allowed.- Returns:
-
getBinaryDomainCombinationsSpecificToGenome0
-
getBinaryDomainCombinationsSpecificToGenome1
-
getDomainsSpecificToGenome0
-
getDomainsSpecificToGenome1
-
setAllowDomainsToBeIgnored
public void setAllowDomainsToBeIgnored(boolean allow_domains_to_be_ignored)
-