Class ProteinMiscChange
- java.lang.Object
-
- de.charite.compbio.jannovar.hgvs.protein.change.ProteinChange
-
- de.charite.compbio.jannovar.hgvs.protein.change.ProteinMiscChange
-
- All Implemented Interfaces:
ConvertibleToHGVSString
public class ProteinMiscChange extends ProteinChange
Represents a silent protein-level change, i.e., "p.=".- Author:
- Manuel Holtgrewe
-
-
Constructor Summary
Constructors Constructor Description ProteinMiscChange(boolean onlyPredicted, ProteinMiscChangeType changeType)
Construct with givenchangeType
andonlyPredicted
flag.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProteinMiscChange
build(boolean onlyPredicted, ProteinMiscChangeType changeType)
Static factory function that forwards toProteinMiscChange(boolean, ProteinMiscChangeType)
.boolean
equals(Object obj)
ProteinMiscChangeType
getChangeType()
int
hashCode()
String
toHGVSString(AminoAcidCode code)
Return HGVS representation using the given amino acid code.String
toString()
ProteinChange
withOnlyPredicted(boolean onlyPredicted)
-
Methods inherited from class de.charite.compbio.jannovar.hgvs.protein.change.ProteinChange
isOnlyPredicted, toHGVSString
-
-
-
-
Constructor Detail
-
ProteinMiscChange
public ProteinMiscChange(boolean onlyPredicted, ProteinMiscChangeType changeType)
Construct with givenchangeType
andonlyPredicted
flag.- Parameters:
onlyPredicted
- whether or not the change is only predictedchangeType
- type of the change
-
-
Method Detail
-
build
public static ProteinMiscChange build(boolean onlyPredicted, ProteinMiscChangeType changeType)
Static factory function that forwards toProteinMiscChange(boolean, ProteinMiscChangeType)
.
-
getChangeType
public ProteinMiscChangeType getChangeType()
- Returns:
- type of this
ProteinMiscChangeType
-
toHGVSString
public String toHGVSString(AminoAcidCode code)
Description copied from interface:ConvertibleToHGVSString
Return HGVS representation using the given amino acid code.- Parameters:
code
-AminoAcidCode
to use- Returns:
- HGVS representation, e.g. "133L" for an
ProteinPointLocation
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classProteinChange
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classProteinChange
-
withOnlyPredicted
public ProteinChange withOnlyPredicted(boolean onlyPredicted)
- Specified by:
withOnlyPredicted
in classProteinChange
- Returns:
ProteinChange
object with prediction state set to the one given by the parameter
-
-