public class ProteinSubstitution extends ProteinChange
Constructor and Description |
---|
ProteinSubstitution(boolean onlyPredicted,
ProteinPointLocation location,
String targetAA) |
Modifier and Type | Method and Description |
---|---|
static ProteinSubstitution |
build(boolean onlyPredicted,
String sourceAA,
int pos,
String targetAA)
Factory method for direct construction from source AA, position, and targetAA.
|
static ProteinSubstitution |
buildDownstreamOfTerminal(boolean onlyPredicted,
String sourceAA,
int pos,
String targetAA) |
static ProteinSubstitution |
buildWithOffset(boolean onlyPredicted,
String sourceAA,
int pos,
int offset,
String targetAA) |
boolean |
equals(Object obj) |
ProteinPointLocation |
getLocation() |
String |
getTargetAA() |
int |
hashCode() |
String |
toHGVSString(AminoAcidCode code)
Return HGVS representation using the given amino acid code.
|
String |
toString() |
ProteinChange |
withOnlyPredicted(boolean onlyPredicted) |
isOnlyPredicted, toHGVSString
public ProteinSubstitution(boolean onlyPredicted, ProteinPointLocation location, String targetAA)
location
- location of the changed AAtargetAA
- amino acid to change topublic static ProteinSubstitution build(boolean onlyPredicted, String sourceAA, int pos, String targetAA)
public static ProteinSubstitution buildWithOffset(boolean onlyPredicted, String sourceAA, int pos, int offset, String targetAA)
public static ProteinSubstitution buildDownstreamOfTerminal(boolean onlyPredicted, String sourceAA, int pos, String targetAA)
public ProteinPointLocation getLocation()
public String getTargetAA()
public String toHGVSString(AminoAcidCode code)
ConvertibleToHGVSString
code
- AminoAcidCode
to useProteinPointLocation
public int hashCode()
hashCode
in class ProteinChange
public boolean equals(Object obj)
equals
in class ProteinChange
public ProteinChange withOnlyPredicted(boolean onlyPredicted)
withOnlyPredicted
in class ProteinChange
ProteinChange
object with prediction state set to the one given by the parameterCopyright © 2016. All rights reserved.