X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FFormatAdapter.java;h=92e5810c71f123183a0f68534f739cdced07ded6;hb=db93a1adcbe0a4eaaf06e0a70ade0d6c5c1961c3;hp=1b39d0a3920a75f1ca35426e7bee61e8931fdee1;hpb=17e77c3f2949a0729322b4a8d907f3f34b6a9914;p=jalview.git diff --git a/src/jalview/io/FormatAdapter.java b/src/jalview/io/FormatAdapter.java index 1b39d0a..92e5810 100755 --- a/src/jalview/io/FormatAdapter.java +++ b/src/jalview/io/FormatAdapter.java @@ -1,5 +1,5 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9) + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2) * Copyright (C) 2015 The Jalview Authors * * This file is part of Jalview. @@ -107,7 +107,6 @@ public class FormatAdapter extends AppletFormatAdapter { startRes = seqs[i].getStart(); endRes = seqs[i].getEnd(); - if (startEnd != null) { startIndex = startEnd[0]; @@ -127,9 +126,7 @@ public class FormatAdapter extends AppletFormatAdapter } startRes = seqs[i].findPosition(startIndex); - startRes = seqs[i].getStart() > 1 ? startRes - seqs[i].getStart() - : startRes; - endRes = seqs[i].findPosition(endIndex) - seqs[i].getStart(); + endRes = seqs[i].findPosition(endIndex); } tmp[i] = new Sequence(seqs[i].getName(), omitHiddenColumns[i], @@ -308,20 +305,6 @@ public class FormatAdapter extends AppletFormatAdapter return this.formatSequences(format, alignment, suffix); } - public AlignmentI readFile(String inFile, String type, String format) - throws java.io.IOException - { - AlignmentI al = super.readFile(inFile, type, format); - return al; - } - - public AlignmentI readFromFile(FileParse source, String format) - throws java.io.IOException - { - AlignmentI al = super.readFromFile(source, format); - return al; - } - /** * validate format is valid for IO in Application. This is basically the * AppletFormatAdapter.isValidFormat call with additional checks for