X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FPIRFile.java;h=5f5c23c4c834e4f79788f56bb3a93e454ba65996;hb=dfa35cc477b0d3af4a3cd25472cb6126626c67d3;hp=449a3c20c49e0f14e93a7b77e089560a32610556;hpb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;p=jalview.git diff --git a/src/jalview/io/PIRFile.java b/src/jalview/io/PIRFile.java index 449a3c2..5f5c23c 100755 --- a/src/jalview/io/PIRFile.java +++ b/src/jalview/io/PIRFile.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -46,6 +46,7 @@ public class PIRFile extends AlignFile super(source); } + @Override public void parse() throws IOException { StringBuffer sequence; @@ -100,6 +101,7 @@ public class PIRFile extends AlignFile } } + @Override public String print() { return print(getSeqsAsArray()); @@ -174,7 +176,8 @@ public class PIRFile extends AlignFile } } } - int nochunks = (seq.length() / len) + 1; + int nochunks = (seq.length() / len) + + (seq.length() % len > 0 ? 1 : 0); for (int j = 0; j < nochunks; j++) {