import jalview.datamodel.AlignmentI;
import jalview.datamodel.SequenceI;
import jalview.fts.core.DecimalFormatTableCellRenderer;
+import jalview.io.AppletFormatAdapter;
import jalview.io.DataSourceType;
import jalview.io.FileFormat;
import jalview.io.FormatAdapter;
AlignmentI seq2Phyre2ModelFastaMapping = null;
try
{
- seq2Phyre2ModelFastaMapping = new FormatAdapter().readFile(
- getFastaMappingFile(), DataSourceType.FILE, FileFormat.Fasta);
+ String fastaFile = getFastaMappingFile();
+ DataSourceType protocol = AppletFormatAdapter
+ .checkProtocol(fastaFile);
+ seq2Phyre2ModelFastaMapping = new FormatAdapter().readFile(fastaFile,
+ protocol, FileFormat.Fasta);
} catch (IOException e1)
{
e1.printStackTrace();