public interface Alignment<S extends org.biojava3.core.sequence.template.Sequence<C>,C extends org.biojava3.core.sequence.template.Compound>
Although this interface is based on BioJava 3, it differs from Profile
since alignment gaps
are treated the same way as nucleotides here. (Note that a compound set allowing gaps must be use for
this to work.) In the future there might be an alternative version extending Profile
.
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.String name,
S sequence) |
void |
add(java.lang.String name,
S sequence) |
void |
addAllCharSets(java.util.Collection<CharSet> collection) |
void |
addCharSet(CharSet charSet) |
java.util.Map<java.lang.String,S> |
asMap() |
void |
clear() |
boolean |
containsAllNames(java.util.Collection<?> c) |
boolean |
containsName(java.lang.String name) |
java.util.Map<java.lang.String,CharSet> |
getCharSets() |
S |
getSequence(int index) |
S |
getSequence(java.lang.String name) |
int |
indexByName(java.lang.String name) |
boolean |
isEmpty() |
int |
maxSequenceLength() |
void |
moveAllCharSetPositions(int start,
int offset) |
java.lang.String |
nameByIndex(int index) |
java.util.Iterator<java.lang.String> |
nameIterator() |
S |
remove(int index) |
boolean |
remove(java.lang.String name) |
void |
renameSequence(java.lang.String currentName,
java.lang.String newName) |
void |
renameSequences(UniqueNameMap nameMap) |
void |
replace(int index,
S sequence) |
void |
replace(java.lang.String name,
S sequence) |
boolean |
sequncesEqual(Alignment<?,?> other) |
int |
size() |
java.util.Map<java.lang.String,CharSet> getCharSets()
void addCharSet(CharSet charSet)
void addAllCharSets(java.util.Collection<CharSet> collection)
void clear()
boolean containsName(java.lang.String name)
boolean containsAllNames(java.util.Collection<?> c)
S getSequence(int index)
S getSequence(java.lang.String name)
int indexByName(java.lang.String name)
java.lang.String nameByIndex(int index)
boolean isEmpty()
java.util.Iterator<java.lang.String> nameIterator()
boolean remove(java.lang.String name)
int size()
int maxSequenceLength()
void moveAllCharSetPositions(int start, int offset)
void renameSequence(java.lang.String currentName, java.lang.String newName)
void renameSequences(UniqueNameMap nameMap)
boolean sequncesEqual(Alignment<?,?> other)