X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fsurfacing%2FCombinableDomains.java;h=028810edf7e95b6abe06db7176e4357d08ce733d;hb=380f98efacccdaeff5a86ba6b9b05367df133b79;hp=05fffbf280e300270b2857900fc8d83441ce3342;hpb=48f7a89be9d34f1930a1f863e608235cc27184c5;p=jalview.git diff --git a/forester/java/src/org/forester/surfacing/CombinableDomains.java b/forester/java/src/org/forester/surfacing/CombinableDomains.java index 05fffbf..028810e 100644 --- a/forester/java/src/org/forester/surfacing/CombinableDomains.java +++ b/forester/java/src/org/forester/surfacing/CombinableDomains.java @@ -6,7 +6,7 @@ // Copyright (C) 2008-2009 Christian M. Zmasek // Copyright (C) 2008-2009 Burnham Institute for Medical Research // All rights reserved -// +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either @@ -16,20 +16,22 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA // // Contact: phylosoft @ gmail . com -// WWW: www.phylosoft.org/forester +// WWW: https://sites.google.com/site/cmzmasek/home/software/forester package org.forester.surfacing; import java.util.List; +import java.util.Set; import java.util.SortedMap; -import org.forester.util.DescriptiveStatistics; +import org.forester.protein.BinaryDomainCombination; +import org.forester.species.Species; public interface CombinableDomains { @@ -38,7 +40,7 @@ public interface CombinableDomains { * * @param protein_domain */ - public void addCombinableDomain( final DomainId protein_domain ); + public void addCombinableDomain( final String protein_domain ); /** * @@ -47,9 +49,9 @@ public interface CombinableDomains { * * @return all domains */ - List getAllDomains(); + List getAllDomains(); - List getCombinableDomains(); + List getCombinableDomains(); /** * Returns the combinable domain identifiers sorted in alphabetical manner: - @@ -58,7 +60,7 @@ public interface CombinableDomains { * * @return combining domain identifiers sorted in alphabetical manner */ - public SortedMap getCombinableDomainsIds(); + public SortedMap getCombinableDomainsIds(); public StringBuilder getCombiningDomainIdsAsStringBuilder(); @@ -68,16 +70,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 @@ -95,9 +88,11 @@ public interface CombinableDomains { */ public int getKeyDomainProteinsCount(); + public Set getKeyDomainProteins(); + public int getNumberOfCombinableDomains(); - public int getNumberOfProteinsExhibitingCombination( final DomainId protein_domain ); + public int getNumberOfProteinsExhibitingCombination( final String protein_domain ); /** * Returns the species of this combinable domains. @@ -106,16 +101,7 @@ public interface CombinableDomains { */ public Species getSpecies(); - public boolean isCombinable( final DomainId protein_domain ); - - /** - * This is to set descriptive statistics for the confidence (i.e. E-values) - * of the key domain. - * - * - * @param statistics - */ - void setKeyDomainConfidenceDescriptiveStatistics( final DescriptiveStatistics statistics ); + public boolean isCombinable( final String protein_domain ); /** * Sets how many times the key domain is present in a given species genome. @@ -125,14 +111,7 @@ public interface CombinableDomains { */ 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(); + + void addKeyDomainProtein( String protein ); } \ No newline at end of file