- Type Parameters:
 S- each element of the alignmentProfileis of type SC- each element of anAlignedSequenceis aCompoundof type C
- All Superinterfaces:
 Iterable<AlignedSequence<S,,C>> MutableProfile<S,,C> Profile<S,,C> SequencePair<S,C> 
public interface MutableSequencePair<S extends Sequence<C>,C extends Compound> 
extends MutableProfile<S,C>, SequencePair<S,C>  
Defines a mutable (editable) data structure for the results of pairwise sequence alignment.
- Author:
 - Mark Chapman, Paolo Pavan
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava.nbio.core.alignment.template.Profile
Profile.StringFormat - 
Method Summary
Modifier and TypeMethodDescriptionvoidsetPair(AlignedSequence<S, C> query, AlignedSequence<S, C> target) Sets bothAlignedSequences of the pair.voidsetQuery(AlignedSequence<S, C> query) Sets the firstAlignedSequenceof the pair.voidsetTarget(AlignedSequence<S, C> target) Sets the secondAlignedSequenceof the pair.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.biojava.nbio.core.alignment.template.MutableProfile
setSequencesMethods inherited from interface org.biojava.nbio.core.alignment.template.Profile
getAlignedSequence, getAlignedSequence, getAlignedSequences, getAlignedSequences, getAlignedSequences, getCompoundAt, getCompoundAt, getCompoundCountsAt, getCompoundCountsAt, getCompoundsAt, getCompoundSet, getCompoundWeightsAt, getCompoundWeightsAt, getIndexOf, getIndicesAt, getLastIndexOf, getLength, getOriginalSequences, getSize, getSubProfile, hasGap, isCircular, toString, toString, toStringMethods inherited from interface org.biojava.nbio.core.alignment.template.SequencePair
getCompoundInQueryAt, getCompoundInTargetAt, getIndexInQueryAt, getIndexInQueryForTargetAt, getIndexInTargetAt, getIndexInTargetForQueryAt, getNumIdenticals, getNumSimilars, getQuery, getTarget 
- 
Method Details
- 
setPair
Sets bothAlignedSequences of the pair.- Parameters:
 query- becomes the firstAlignedSequenceof the pairtarget- becomes the secondAlignedSequenceof the pair- Throws:
 IllegalArgumentException- if query and target are different lengths
 - 
setQuery
Sets the firstAlignedSequenceof the pair.- Parameters:
 query- becomes the firstAlignedSequenceof the pair- Throws:
 IllegalArgumentException- if (new) query and (old) target are different lengths
 - 
setTarget
Sets the secondAlignedSequenceof the pair.- Parameters:
 target- becomes the secondAlignedSequenceof the pair- Throws:
 IllegalArgumentException- if (old) query and (new) target are different lengths
 
 -