Package org.forester.msa
Class BasicMsa
java.lang.Object
org.forester.msa.BasicMsa
- All Implemented Interfaces:
Msa
- Direct Known Subclasses:
DeleteableMsa
,ResampleableMsa
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.forester.msa.Msa
Msa.MSA_FORMAT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Msa
createInstance
(List<MolecularSequence> seqs) getColumnAt
(int col) getIdentifier
(int row) int
int
char
getResidueAt
(int row, int col) getSequence
(int row) getSequence
(String id) getSequenceAsString
(int row) getType()
boolean
isGapAt
(int row, int col) void
setIdentifier
(int row, String id) void
setResidueAt
(int row, int col, char residue) toString()
void
write
(Writer w, Msa.MSA_FORMAT format)
-
Constructor Details
-
BasicMsa
-
-
Method Details
-
asSequenceList
- Specified by:
asSequenceList
in interfaceMsa
-
getColumnAt
- Specified by:
getColumnAt
in interfaceMsa
-
getIdentifier
- Specified by:
getIdentifier
in interfaceMsa
-
getLength
public int getLength() -
getNumberOfSequences
public int getNumberOfSequences()- Specified by:
getNumberOfSequences
in interfaceMsa
-
getResidueAt
public char getResidueAt(int row, int col) - Specified by:
getResidueAt
in interfaceMsa
-
getSequence
- Specified by:
getSequence
in interfaceMsa
-
getSequence
- Specified by:
getSequence
in interfaceMsa
-
getSequenceAsString
- Specified by:
getSequenceAsString
in interfaceMsa
-
getType
-
isGapAt
public boolean isGapAt(int row, int col) -
setIdentifier
- Specified by:
setIdentifier
in interfaceMsa
-
setResidueAt
public void setResidueAt(int row, int col, char residue) - Specified by:
setResidueAt
in interfaceMsa
-
toString
-
write
- Specified by:
write
in interfaceMsa
- Throws:
IOException
-
createInstance
-