Package org.forester.protein
Class BasicProtein
java.lang.Object
org.forester.protein.BasicProtein
- All Implemented Interfaces:
Protein
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProteinDomain
(Domain protein_domain) boolean
If in_nc_order is set to true, this should return true only and only if the order in List 'domains' and this protein (as determined by the start positions of the domains of this proteins, _not_ by their index) are the same (interspersing, 'other', domains in this are ignored).int
getName()
int
getProteinDomain
(int index) int
getProteinDomainCount
(String domain_id) getProteinDomains
(String domain_id) void
setAccession
(String accession) void
setDescription
(String description) void
toDomainArchitectureString
(String separator) toDomainArchitectureString
(String separator, int repeats_limit, String repeat_separator) toString()
-
Field Details
-
DomainMidPositionComparator
-
-
Constructor Details
-
BasicProtein
-
-
Method Details
-
addProteinDomain
- Specified by:
addProteinDomain
in interfaceProtein
-
contains
Description copied from interface:Protein
If in_nc_order is set to true, this should return true only and only if the order in List 'domains' and this protein (as determined by the start positions of the domains of this proteins, _not_ by their index) are the same (interspersing, 'other', domains in this are ignored). If in_nc_order is set to false, this should return true only and only if this contains all domains listed in 'domains' (order and count do not matter). -
getAccession
- Specified by:
getAccession
in interfaceProtein
-
getDescription
- Specified by:
getDescription
in interfaceProtein
-
getDomainsSortedByPosition
- Specified by:
getDomainsSortedByPosition
in interfaceProtein
-
getLength
public int getLength() -
getName
-
getNumberOfProteinDomains
public int getNumberOfProteinDomains()- Specified by:
getNumberOfProteinDomains
in interfaceProtein
-
getProteinDomain
- Specified by:
getProteinDomain
in interfaceProtein
-
getProteinDomainCount
- Specified by:
getProteinDomainCount
in interfaceProtein
-
getProteinDomains
- Specified by:
getProteinDomains
in interfaceProtein
-
getProteinDomains
- Specified by:
getProteinDomains
in interfaceProtein
-
getProteinId
- Specified by:
getProteinId
in interfaceProtein
-
getSpecies
- Specified by:
getSpecies
in interfaceProtein
-
setAccession
-
setDescription
-
setName
-
toDomainArchitectureString
-
toDomainArchitectureString
-
toString
-