Class NucleotideInsertion
- java.lang.Object
-
- de.charite.compbio.jannovar.hgvs.nts.change.NucleotideChange
-
- de.charite.compbio.jannovar.hgvs.nts.change.NucleotideInsertion
-
- All Implemented Interfaces:
ConvertibleToHGVSString
public class NucleotideInsertion extends NucleotideChange
Insertion into a Nucleotide sequence.- Author:
- Manuel Holtgrewe
-
-
Constructor Summary
Constructors Constructor Description NucleotideInsertion(boolean onlyPredicted, NucleotideRange position, NucleotideSeqDescription seq)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NucleotideInsertion
buildWithLength(boolean onlyPredicted, int firstPos, int lastPos)
Build without offset and no sequence descriptionstatic NucleotideInsertion
buildWithLength(boolean onlyPredicted, int firstPos, int lastPos, int insertedLength)
Build without offset and with length informationstatic NucleotideInsertion
buildWithOffsetWithLength(boolean onlyPredicted, int firstPos, int firstOffset, int lastPos, int lastOffset, int insertedLength)
Build with length informationstatic NucleotideInsertion
buildWithOffsetWithoutSeqDescription(boolean onlyPredicted, int firstPos, int firstOffset, int lastPos, int lastOffset)
Build without any sequence descriptionstatic NucleotideInsertion
buildWithOffsetWithSequence(boolean onlyPredicted, int firstPos, int firstOffset, int lastPos, int lastOffset, String seq)
Build with sequencestatic NucleotideInsertion
buildWithSequence(boolean onlyPredicted, int firstPos, int lastPos, String seq)
Build without offset and with sequenceboolean
equals(Object obj)
NucleotideRange
getRange()
NucleotideSeqDescription
getSeq()
int
hashCode()
String
toHGVSString()
Return HGVS representation in three-letter amino acid code.String
toString()
NucleotideInsertion
withOnlyPredicted(boolean flag)
-
Methods inherited from class de.charite.compbio.jannovar.hgvs.nts.change.NucleotideChange
isOnlyPredicted, toHGVSString
-
-
-
-
Constructor Detail
-
NucleotideInsertion
public NucleotideInsertion(boolean onlyPredicted, NucleotideRange position, NucleotideSeqDescription seq)
- Parameters:
onlyPredicted
- whether the change was only predictedposition
- range of length one giving the insertion positionseq
- description of the inserted sequence
-
-
Method Detail
-
buildWithOffsetWithoutSeqDescription
public static NucleotideInsertion buildWithOffsetWithoutSeqDescription(boolean onlyPredicted, int firstPos, int firstOffset, int lastPos, int lastOffset)
Build without any sequence description- Parameters:
onlyPredicted
- whether or not to add marker for "only predicted"firstPos
- begin position of insertionfirstOffset
- offset for begin position of insertionlastPos
- end position of insertionlastOffset
- offset for end position of insertion- Returns:
- Resulting
NucleotideInsertion
-
buildWithOffsetWithLength
public static NucleotideInsertion buildWithOffsetWithLength(boolean onlyPredicted, int firstPos, int firstOffset, int lastPos, int lastOffset, int insertedLength)
Build with length information- Parameters:
onlyPredicted
- whether or not to add marker for "only predicted"firstPos
- begin position of insertionfirstOffset
- offset for begin position of insertionlastPos
- end position of insertionlastOffset
- offset for end position of insertioninsertedLength
- the number of inserted bases- Returns:
- Resulting
NucleotideInsertion
-
buildWithOffsetWithSequence
public static NucleotideInsertion buildWithOffsetWithSequence(boolean onlyPredicted, int firstPos, int firstOffset, int lastPos, int lastOffset, String seq)
Build with sequence- Parameters:
onlyPredicted
- whether or not to add marker for "only predicted"firstPos
- begin position of insertionfirstOffset
- offset for begin position of insertionlastPos
- end position of insertionlastOffset
- offset for end position of insertionseq
- the inserted sequence- Returns:
- Resulting
NucleotideInsertion
-
buildWithLength
public static NucleotideInsertion buildWithLength(boolean onlyPredicted, int firstPos, int lastPos)
Build without offset and no sequence description- Parameters:
onlyPredicted
- whether or not to add marker for "only predicted"firstPos
- begin position of insertionlastPos
- end position of insertion- Returns:
- Resulting
NucleotideInsertion
-
buildWithLength
public static NucleotideInsertion buildWithLength(boolean onlyPredicted, int firstPos, int lastPos, int insertedLength)
Build without offset and with length information- Parameters:
onlyPredicted
- whether or not to add marker for "only predicted"firstPos
- begin position of insertionlastPos
- end position of insertioninsertedLength
- the number of inserted bases- Returns:
- Resulting
NucleotideInsertion
-
buildWithSequence
public static NucleotideInsertion buildWithSequence(boolean onlyPredicted, int firstPos, int lastPos, String seq)
Build without offset and with sequence- Parameters:
onlyPredicted
- whether or not to add marker for "only predicted"firstPos
- begin position of insertionlastPos
- end position of insertionseq
- the inserted sequence- Returns:
- Resulting
NucleotideInsertion
-
getRange
public NucleotideRange getRange()
- Returns:
- range of length 1 with the two bases between which the sequence is inserted
-
getSeq
public NucleotideSeqDescription getSeq()
- Returns:
- inserted sequenced
-
withOnlyPredicted
public NucleotideInsertion withOnlyPredicted(boolean flag)
- Specified by:
withOnlyPredicted
in classNucleotideChange
- Returns:
NucleotideChange
with givenonlyPredicted
value.
-
toHGVSString
public String toHGVSString()
Description copied from interface:ConvertibleToHGVSString
Return HGVS representation in three-letter amino acid code.- Returns:
- HGVS representation, e.g. "133L" for an
ProteinPointLocation
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classNucleotideChange
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classNucleotideChange
-
-