Package org.biojava.bio.seq.io
Class MSFAlignmentFormat
java.lang.Object
org.biojava.bio.seq.io.MSFAlignmentFormat
- All Implemented Interfaces:
AlignmentFormat
- Author:
- raemig, Thomas Down, Keith James, Nimesh Singh, Mark Schreiber, Matthew Pocock, Bradford Powell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidused to quick test the coderead(BufferedReader reader) Reads an MSF Alignment Filevoidwrite(OutputStream os, Alignment align, int fileType) voidwriteDna(OutputStream os, Alignment align) voidwriteProtein(OutputStream os, Alignment align)
-
Constructor Details
-
MSFAlignmentFormat
public MSFAlignmentFormat()
-
-
Method Details
-
main
used to quick test the code- Parameters:
args-
-
read
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
- Throws:
BioExceptionIllegalSymbolException
-
writeProtein
public void writeProtein(OutputStream os, Alignment align) throws BioException, IllegalSymbolException - Throws:
BioExceptionIllegalSymbolException
-