de.zimek.proteinfeatures.attributeAssigner.dingAttributes
Class DingAttribute
java.lang.Object
de.zimek.proteinfeatures.attributeAssigner.AbstractArffRealAttributeAssigner
de.zimek.proteinfeatures.attributeAssigner.dingAttributes.DingAttribute
- All Implemented Interfaces:
- ArffAttributeAssigner
- Direct Known Subclasses:
- DingCompositionLength, DingHydrophobicity, DingPolarity, DingPolarizability, DingSecondary, DingVolume
- public abstract class DingAttribute
- extends AbstractArffRealAttributeAssigner
- Author:
- Arthur Zimek
Field Summary |
protected java.lang.String |
attributeName
|
protected java.util.Map |
ID2ATTRIBUTES
|
protected boolean |
includeLength
Whether to include length of protein in the attribute set.
|
protected java.lang.String[] |
postfix
|
protected java.lang.String |
uri
|
Method Summary |
protected double[] |
attributes(Protein protein)
Returns the attributes according to the actual attribute-assigner. |
java.lang.String |
getAttributeDefinition()
Provides the attribute-definition in arff-format with an ending newline. |
protected void |
init()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uri
protected java.lang.String uri
postfix
protected java.lang.String[] postfix
attributeName
protected java.lang.String attributeName
includeLength
protected boolean includeLength
- Whether to include length of protein in the attribute set.
Length of protein is the last attribute in each attribute set as provided by Ding and Dubchak.
It shall only be included in composition, thus each attribute set wil be of length 21.
ID2ATTRIBUTES
protected final java.util.Map ID2ATTRIBUTES
DingAttribute
public DingAttribute()
init
protected void init()
attributes
protected double[] attributes(Protein protein)
- Description copied from class:
AbstractArffRealAttributeAssigner
- Returns the attributes according to the actual attribute-assigner.
- Specified by:
attributes
in class AbstractArffRealAttributeAssigner
- Parameters:
protein
-
- Returns:
- double[]
- See Also:
AbstractArffRealAttributeAssigner.attributes(de.zimek.proteinfeatures.protein.Protein)
getAttributeDefinition
public java.lang.String getAttributeDefinition()
- Description copied from interface:
ArffAttributeAssigner
- Provides the attribute-definition in arff-format with an ending newline.
- Returns:
- String
- See Also:
ArffAttributeAssigner.getAttributeDefinition()