- Type Parameters:
- S- the sequence type
- C- each element of the- AlignedSequenceis a- Compoundof type C
- All Superinterfaces:
- Accessioned,- AlignedSequence<S,,- C> - Iterable<C>,- Sequence<C>
public interface MutableAlignedSequence<S extends Sequence<C>,C extends Compound> 
extends AlignedSequence<S,C> 
Defines a mutable (editable) data structure for an 
AlignedSequence.- Author:
- Mark Chapman, Paolo Pavan
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.biojava.nbio.core.alignment.template.AlignedSequenceAlignedSequence.Step
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetLocationInAlignment(Location location) Sets the position of theAlignedSequenceto the givenLocation(start, gaps, end).voidshiftAtAlignmentLocation(Location location, int shift) Slides a part of theAlignedSequence.voidshiftAtSequenceLocation(Location location, int shift) Slides a part of theAlignedSequence.Methods inherited from interface org.biojava.nbio.core.sequence.template.AccessionedgetAccessionMethods inherited from interface org.biojava.nbio.core.alignment.template.AlignedSequenceclearCache, getAlignmentFromSequence, getAlignmentIndexAt, getCoverage, getEnd, getLocationInAlignment, getNumGapPositions, getNumGaps, getOriginalSequence, getOverlapCount, getSequenceFromAlignment, getSequenceIndexAt, getStart, isCircular, isGapMethods inherited from interface java.lang.IterableforEach, iterator, spliteratorMethods inherited from interface org.biojava.nbio.core.sequence.template.SequencecountCompounds, getAsList, getCompoundAt, getCompoundSet, getIndexOf, getInverse, getLastIndexOf, getLength, getSequenceAsString, getSubSequence
- 
Method Details- 
setLocationInAlignmentSets the position of theAlignedSequenceto the givenLocation(start, gaps, end).- Parameters:
- location- new location for this sequence
- Throws:
- IllegalArgumentException- if location is invalid
 
- 
shiftAtAlignmentLocationSlides a part of theAlignedSequence.- Parameters:
- location- portion of sequence moved in alignment coordinates
- shift- amount the alignment index changes for each contained element
- Throws:
- IllegalArgumentException- if location is invalid or the shift causes a collision with stationary elements
 
- 
shiftAtSequenceLocationSlides a part of theAlignedSequence.- Parameters:
- location- portion of sequence moved in sequence coordinates
- shift- amount the alignment index changes for each contained element
- Throws:
- IllegalArgumentException- if location is invalid or the shift causes a collision with stationary elements
 
 
-