Package org.forester.surfacing
Class BasicCombinableDomains
java.lang.Object
org.forester.surfacing.BasicCombinableDomains
- All Implemented Interfaces:
CombinableDomains
- Direct Known Subclasses:
AdjactantDirectedCombinableDomains
,DirectedCombinableDomains
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCombinableDomain
(String protein_domain) To add a new combinable domain.void
addKeyDomainProtein
(String protein) This must return all domains in this set of combinable domains (i.e.Returns the combinable domain identifiers sorted in alphabetical manner: - keys are the combinable domain identifiers - values are the counts of proteins exhibiting a particular combinationReturns the domain whose combinable domains are in stored in this combinable domains.int
Returns how many times the key domain is present in a given species genome.int
Returns how many proteins with the key domain are present in a given species genome.int
int
getNumberOfProteinsExhibitingCombination
(String protein_domain) Returns the species of this combinable domains.boolean
isCombinable
(String protein_domain) void
setKeyDomainCount
(int key_domain_count) Sets how many times the key domain is present in a given species genome.toString()
-
Constructor Details
-
BasicCombinableDomains
-
-
Method Details
-
addCombinableDomain
Description copied from interface:CombinableDomains
To add a new combinable domain.- Specified by:
addCombinableDomain
in interfaceCombinableDomains
-
addKeyDomainProtein
- Specified by:
addKeyDomainProtein
in interfaceCombinableDomains
-
getAllDomains
Description copied from interface:CombinableDomains
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).- Specified by:
getAllDomains
in interfaceCombinableDomains
- Returns:
- all domains
-
getCombinableDomains
- Specified by:
getCombinableDomains
in interfaceCombinableDomains
-
getCombinableDomainsIds
Description copied from interface:CombinableDomains
Returns the combinable domain identifiers sorted in alphabetical manner: - keys are the combinable domain identifiers - values are the counts of proteins exhibiting a particular combination- Specified by:
getCombinableDomainsIds
in interfaceCombinableDomains
- Returns:
- combining domain identifiers sorted in alphabetical manner
-
getCombiningDomainIdsAsStringBuilder
- Specified by:
getCombiningDomainIdsAsStringBuilder
in interfaceCombinableDomains
-
getKeyDomain
Description copied from interface:CombinableDomains
Returns the domain whose combinable domains are in stored in this combinable domains.- Specified by:
getKeyDomain
in interfaceCombinableDomains
- Returns:
- the domain identifier
-
getKeyDomainCount
public int getKeyDomainCount()Description copied from interface:CombinableDomains
Returns how many times the key domain is present in a given species genome.- Specified by:
getKeyDomainCount
in interfaceCombinableDomains
- Returns:
- key domain count in species
-
getKeyDomainProteins
- Specified by:
getKeyDomainProteins
in interfaceCombinableDomains
-
getKeyDomainProteinsCount
public int getKeyDomainProteinsCount()Description copied from interface:CombinableDomains
Returns how many proteins with the key domain are present in a given species genome.- Specified by:
getKeyDomainProteinsCount
in interfaceCombinableDomains
- Returns:
- key domain proteins count in species
-
getNumberOfCombinableDomains
public int getNumberOfCombinableDomains()- Specified by:
getNumberOfCombinableDomains
in interfaceCombinableDomains
-
getNumberOfProteinsExhibitingCombination
- Specified by:
getNumberOfProteinsExhibitingCombination
in interfaceCombinableDomains
-
getSpecies
Description copied from interface:CombinableDomains
Returns the species of this combinable domains.- Specified by:
getSpecies
in interfaceCombinableDomains
- Returns:
- the species
-
isCombinable
- Specified by:
isCombinable
in interfaceCombinableDomains
-
setKeyDomainCount
public void setKeyDomainCount(int key_domain_count) Description copied from interface:CombinableDomains
Sets how many times the key domain is present in a given species genome.- Specified by:
setKeyDomainCount
in interfaceCombinableDomains
- Parameters:
key_domain_count
- key domain count in species
-
toBinaryDomainCombinations
- Specified by:
toBinaryDomainCombinations
in interfaceCombinableDomains
-
toString
-
getCombiningDomains
-