-
- 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>,ProfilePair<S,C>
public interface MutableProfilePair<S extends Sequence<C>,C extends Compound> extends MutableProfile<S,C>, ProfilePair<S,C>
Defines a mutable (editable) data structure for aProfilePair.- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetPair(Profile<S,C> query, Profile<S,C> target)Sets bothProfiles of the pair.voidsetQuery(Profile<S,C> query)Sets the firstProfileof the pair.voidsetTarget(Profile<S,C> target)Sets the secondProfileof the pair.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.biojava.nbio.core.alignment.template.MutableProfile
setSequences
-
Methods 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, toString
-
Methods inherited from interface org.biojava.nbio.core.alignment.template.ProfilePair
getQuery, getTarget
-
-
-
-
Method Detail
-
setPair
void setPair(Profile<S,C> query, Profile<S,C> target)
Sets bothProfiles of the pair.- Parameters:
query- becomes the firstProfileof the pairtarget- becomes the secondProfileof the pair- Throws:
IllegalArgumentException- if query and target are different lengths
-
setQuery
void setQuery(Profile<S,C> query)
Sets the firstProfileof the pair.- Parameters:
query- becomes the firstProfileof the pair- Throws:
IllegalArgumentException- if (new) query and (old) target are different lengths
-
-