public static final class SequenceAnnotationGenerator.AnnotationGeneratorResult.ResidueAdjustment extends Object
| Constructor and Description |
|---|
SequenceAnnotationGenerator.AnnotationGeneratorResult.ResidueAdjustment(ImmutableSequence newSequence)
Replaces the entire sequence with a new sequence.
|
SequenceAnnotationGenerator.AnnotationGeneratorResult.ResidueAdjustment(int firstResidueToReplaceInclusive,
int lastResidueToReplaceExclusive,
String newResidues)
Construct a new insertion, deletion, or replacement of residues or bases in a sequence.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFirstResidueToReplaceInclusive()
Get the 0-based first residue to replace or delete.
|
int |
getLastResidueToReplaceExclusive()
Get the 0-based index (exclusive) of the last residue to delete or replace.
|
String |
getNewResidues()
Get the new residues to insert to the residues to replace the existing residues with.
|
ImmutableSequence |
getNewSequence()
Gets a new sequence to replace the entire old sequence.
|
String |
toString() |
public SequenceAnnotationGenerator.AnnotationGeneratorResult.ResidueAdjustment(int firstResidueToReplaceInclusive,
int lastResidueToReplaceExclusive,
String newResidues)
firstResidueToReplaceInclusive - 0-based index of the first residue to delete or replace. In the case of an insertion, this is the index of the residue to insert immediately prior to.lastResidueToReplaceExclusive - 0-based index (exclusive) of the last residue to delete or replace. In the case of an insertion, this should be equal to firstResidueToReplaceInclusivenewResidues - the new residues to insert to the residues to replace the existing residues with. In the case of a deletion, this should be an empty string.public SequenceAnnotationGenerator.AnnotationGeneratorResult.ResidueAdjustment(ImmutableSequence newSequence)
ImmutableSequencenewSequence - the new sequence to replace the old onepublic int getFirstResidueToReplaceInclusive()
public int getLastResidueToReplaceExclusive()
getFirstResidueToReplaceInclusive().getFirstResidueToReplaceInclusive().public String getNewResidues()
public ImmutableSequence getNewSequence()
getNewResidues() should be used instead.