Class ProteinFrameshift
- java.lang.Object
-
- de.charite.compbio.jannovar.hgvs.protein.change.ProteinChange
-
- de.charite.compbio.jannovar.hgvs.protein.change.ProteinFrameshift
-
- All Implemented Interfaces:
ConvertibleToHGVSString
public class ProteinFrameshift extends ProteinChange
Protein frame shift change.- Author:
- Manuel Holtgrewe
-
-
Field Summary
Fields Modifier and Type Field Description static int
LEN_NO_TER
no terminal is encounteredstatic int
LEN_SHORT
short change description
-
Constructor Summary
Constructors Constructor Description ProteinFrameshift(boolean onlyPredicted, ProteinPointLocation position, String targetAA, int shiftLength)
ConstructProteinFrameshift
with the given values
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProteinFrameshift
build(boolean onlyPredicted, ProteinPointLocation position, String targetAA, int shiftLength)
Build newProteinFrameshift
with full settingsstatic ProteinFrameshift
build(boolean onlyPredicted, String wtAA, int position, String targetAA, int shiftLength)
Build newProteinFrameshift
with full settingsstatic ProteinFrameshift
buildShort(boolean onlyPredicted, ProteinPointLocation position)
Build newProteinFrameshift
short descriptionstatic ProteinFrameshift
buildShort(boolean onlyPredicted, String wtAA, int position)
Build newProteinFrameshift
short descriptionstatic ProteinFrameshift
buildWithoutTerminal(boolean onlyPredicted, ProteinPointLocation position, String targetAA)
Build newProteinFrameshift
for the case that there is no terminalstatic ProteinFrameshift
buildWithoutTerminal(boolean onlyPredicted, String wtAA, int position, String targetAA)
Build newProteinFrameshift
for the case that there is no terminalboolean
equals(Object obj)
ProteinPointLocation
getPosition()
int
getShiftLength()
String
getTargetAA()
int
hashCode()
boolean
isNoTerminalFrameshfit()
boolean
isShort()
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
-
-
-
-
Field Detail
-
LEN_NO_TER
public static final int LEN_NO_TER
no terminal is encountered- See Also:
- Constant Field Values
-
LEN_SHORT
public static final int LEN_SHORT
short change description- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProteinFrameshift
public ProteinFrameshift(boolean onlyPredicted, ProteinPointLocation position, String targetAA, int shiftLength)
ConstructProteinFrameshift
with the given values
-
-
Method Detail
-
build
public static ProteinFrameshift build(boolean onlyPredicted, String wtAA, int position, String targetAA, int shiftLength)
Build newProteinFrameshift
with full settings
-
build
public static ProteinFrameshift build(boolean onlyPredicted, ProteinPointLocation position, String targetAA, int shiftLength)
Build newProteinFrameshift
with full settings
-
buildShort
public static ProteinFrameshift buildShort(boolean onlyPredicted, String wtAA, int position)
Build newProteinFrameshift
short description
-
buildShort
public static ProteinFrameshift buildShort(boolean onlyPredicted, ProteinPointLocation position)
Build newProteinFrameshift
short description
-
buildWithoutTerminal
public static ProteinFrameshift buildWithoutTerminal(boolean onlyPredicted, String wtAA, int position, String targetAA)
Build newProteinFrameshift
for the case that there is no terminal
-
buildWithoutTerminal
public static ProteinFrameshift buildWithoutTerminal(boolean onlyPredicted, ProteinPointLocation position, String targetAA)
Build newProteinFrameshift
for the case that there is no terminal
-
isShort
public boolean isShort()
- Returns:
true
if this object is a short description of a frame shift.
-
isNoTerminalFrameshfit
public boolean isNoTerminalFrameshfit()
- Returns:
true
if this object describes a frameshift without a terminal at the end
-
getPosition
public ProteinPointLocation getPosition()
- Returns:
- position of first affected amino acid
-
getTargetAA
public String getTargetAA()
- Returns:
- amino acid at position after mutation or
null
if this is a short description
-
getShiftLength
public int getShiftLength()
- Returns:
- shift length, or <= 0 in the case of no terminal symbol (0) or short description (-1)
-
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
-
-