Package org.biojava.bio.seq.io
Class MSFAlignmentFormat
- java.lang.Object
-
- org.biojava.bio.seq.io.MSFAlignmentFormat
-
- All Implemented Interfaces:
AlignmentFormat
public class MSFAlignmentFormat extends Object implements AlignmentFormat
- Author:
- raemig, Thomas Down, Keith James, Nimesh Singh, Mark Schreiber, Matthew Pocock, Bradford Powell
-
-
Constructor Summary
Constructors Constructor Description MSFAlignmentFormat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)used to quick test the codeAlignmentread(BufferedReader reader)Reads an MSF Alignment Filevoidwrite(OutputStream os, Alignment align, int fileType)voidwriteDna(OutputStream os, Alignment align)voidwriteProtein(OutputStream os, Alignment align)
-
-
-
Constructor Detail
-
MSFAlignmentFormat
public MSFAlignmentFormat()
-
-
Method Detail
-
read
public Alignment read(BufferedReader reader)
Reads an MSF Alignment File- Specified by:
readin interfaceAlignmentFormat- Parameters:
reader- The file reader- Returns:
- Alignment A SimpleAlignment consisting of the sequences in the file.
-
write
public void write(OutputStream os, Alignment align, int fileType) throws BioException, IllegalSymbolException
- Throws:
BioExceptionIllegalSymbolException
-
writeDna
public void writeDna(OutputStream os, Alignment align) throws BioException, IllegalSymbolException
- Throws:
BioExceptionIllegalSymbolException
-
writeProtein
public void writeProtein(OutputStream os, Alignment align) throws BioException, IllegalSymbolException
- Throws:
BioExceptionIllegalSymbolException
-
-