Class ProteinExtension
- java.lang.Object
-
- de.charite.compbio.jannovar.hgvs.protein.change.ProteinChange
-
- de.charite.compbio.jannovar.hgvs.protein.change.ProteinExtension
-
- All Implemented Interfaces:
ConvertibleToHGVSString
public class ProteinExtension extends ProteinChange
-
-
Field Summary
Fields Modifier and Type Field Description static int
LEN_NO_TER
no terminal is encountered
-
Constructor Summary
Constructors Constructor Description ProteinExtension(boolean onlyPredicted, ProteinPointLocation position, String targetAA, int shift)
ConstructProteinExtension
with the given values
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProteinExtension
build(boolean onlyPredicted, ProteinPointLocation position, String targetAA, int shift)
Construct normalProteinExtension
static ProteinExtension
build(boolean onlyPredicted, String wtAA, int pos, String targetAA, int shift)
Construct normalProteinExtension
static ProteinExtension
buildWithoutTerminal(boolean onlyPredicted, ProteinPointLocation position, String targetAA)
ConstructProteinExtension
without a terminal in the extensionstatic ProteinExtension
buildWithoutTerminal(boolean onlyPredicted, String wtAA, int pos, String targetAA)
ConstructProteinExtension
without a terminal in the extensionboolean
equals(Object obj)
ProteinPointLocation
getPosition()
int
getShift()
The shift value number of extended amino acids if positive, shift into the 5' UTR in case of negative values, orLEN_NO_TER
in the case that no stop codon is encountered on the transcript.String
getTargetAA()
int
hashCode()
boolean
isNoTerminalExtension()
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
-
-
Constructor Detail
-
ProteinExtension
public ProteinExtension(boolean onlyPredicted, ProteinPointLocation position, String targetAA, int shift)
ConstructProteinExtension
with the given values
-
-
Method Detail
-
build
public static ProteinExtension build(boolean onlyPredicted, String wtAA, int pos, String targetAA, int shift)
Construct normalProteinExtension
-
build
public static ProteinExtension build(boolean onlyPredicted, ProteinPointLocation position, String targetAA, int shift)
Construct normalProteinExtension
-
buildWithoutTerminal
public static ProteinExtension buildWithoutTerminal(boolean onlyPredicted, String wtAA, int pos, String targetAA)
ConstructProteinExtension
without a terminal in the extension
-
buildWithoutTerminal
public static ProteinExtension buildWithoutTerminal(boolean onlyPredicted, ProteinPointLocation position, String targetAA)
ConstructProteinExtension
without a terminal in the extension
-
getPosition
public ProteinPointLocation getPosition()
- Returns:
- changed amino acid and its position
-
getTargetAA
public String getTargetAA()
- Returns:
- amino acid that the changed one is changed to
-
getShift
public int getShift()
The shift value number of extended amino acids if positive, shift into the 5' UTR in case of negative values, orLEN_NO_TER
in the case that no stop codon is encountered on the transcript.- Returns:
- shift value of the extension
-
isNoTerminalExtension
public boolean isNoTerminalExtension()
- Returns:
true
if this object describes an extension without a terminal at the end
-
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
-
-