X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fsurfacing%2FCombinableDomains.java;h=28fa0e25349a931867cccc2e8bc24566a9d4ce22;hb=1d144f35479f96cb36c5247d9711e22ed234651a;hp=28ca259fe2bf48df1a2eec450237fee8da5cbc13;hpb=656be28debec520e0e35a8b311114398a40ea366;p=jalview.git diff --git a/forester/java/src/org/forester/surfacing/CombinableDomains.java b/forester/java/src/org/forester/surfacing/CombinableDomains.java index 28ca259..28fa0e2 100644 --- a/forester/java/src/org/forester/surfacing/CombinableDomains.java +++ b/forester/java/src/org/forester/surfacing/CombinableDomains.java @@ -27,12 +27,11 @@ package org.forester.surfacing; import java.util.List; +import java.util.Set; import java.util.SortedMap; import org.forester.protein.BinaryDomainCombination; -import org.forester.protein.DomainId; import org.forester.species.Species; -import org.forester.util.DescriptiveStatistics; public interface CombinableDomains { @@ -41,18 +40,7 @@ public interface CombinableDomains { * * @param protein_domain */ - public void addCombinableDomain( final DomainId protein_domain ); - - /** - * - * This must return all domains in this set of combinable domains (i.e. - * the key domain and all domains which can combine with the key domain). - * - * @return all domains - */ - List getAllDomains(); - - List getCombinableDomains(); + public void addCombinableDomain( final String protein_domain ); /** * Returns the combinable domain identifiers sorted in alphabetical manner: - @@ -61,7 +49,7 @@ public interface CombinableDomains { * * @return combining domain identifiers sorted in alphabetical manner */ - public SortedMap getCombinableDomainsIds(); + public SortedMap getCombinableDomainsIds(); public StringBuilder getCombiningDomainIdsAsStringBuilder(); @@ -71,16 +59,7 @@ public interface CombinableDomains { * * @return the domain identifier */ - public DomainId getKeyDomain(); - - /** - * Gets descriptive statistics for the confidence (i.e. E-values) of the key - * domain. - * - * - * @return descriptive statistics for the confidence of the key domain - */ - public DescriptiveStatistics getKeyDomainConfidenceDescriptiveStatistics(); + public String getKeyDomain(); /** * Returns how many times the key domain is present in a given species @@ -90,6 +69,8 @@ public interface CombinableDomains { */ public int getKeyDomainCount(); + public Set getKeyDomainProteins(); + /** * Returns how many proteins with the key domain are present in a given * species genome. @@ -100,7 +81,7 @@ public interface CombinableDomains { public int getNumberOfCombinableDomains(); - public int getNumberOfProteinsExhibitingCombination( final DomainId protein_domain ); + public int getNumberOfProteinsExhibitingCombination( final String protein_domain ); /** * Returns the species of this combinable domains. @@ -109,16 +90,22 @@ public interface CombinableDomains { */ public Species getSpecies(); - public boolean isCombinable( final DomainId protein_domain ); + public boolean isCombinable( final String protein_domain ); + + public List toBinaryDomainCombinations(); + + void addKeyDomainProtein( String protein ); /** - * This is to set descriptive statistics for the confidence (i.e. E-values) - * of the key domain. * + * This must return all domains in this set of combinable domains (i.e. + * the key domain and all domains which can combine with the key domain). * - * @param statistics + * @return all domains */ - void setKeyDomainConfidenceDescriptiveStatistics( final DescriptiveStatistics statistics ); + List getAllDomains(); + + List getCombinableDomains(); /** * Sets how many times the key domain is present in a given species genome. @@ -127,15 +114,4 @@ public interface CombinableDomains { * key domain count in species */ void setKeyDomainCount( final int key_domain_count ); - - /** - * Sets how many proteins with the key domain are present in a given species - * genome. - * - * @param key_domain_proteins_count - * key domain protein count in species - */ - void setKeyDomainProteinsCount( final int key_domain_proteins_count ); - - public List toBinaryDomainCombinations(); } \ No newline at end of file