X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fio%2Fgff%2FInterProScanHelper.java;h=c05593f5a2b6a9951dca3c81e509d4b513a01d65;hb=937444414f2ff7d48f6ea8505144c2695d495e8c;hp=68d5d4f41c50931275b1053c5f415f851a308002;hpb=3cccac4697c371b1964236e17b532fd3d180e1c4;p=jalview.git diff --git a/src/jalview/io/gff/InterProScanHelper.java b/src/jalview/io/gff/InterProScanHelper.java index 68d5d4f..c05593f 100644 --- a/src/jalview/io/gff/InterProScanHelper.java +++ b/src/jalview/io/gff/InterProScanHelper.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.io.gff; import jalview.datamodel.AlignmentI; @@ -53,8 +73,8 @@ public class InterProScanHelper extends Gff3Helper } /** - * - */ + * + */ @Override protected SequenceFeature buildSequenceFeature(String[] gff, Map> attributes) @@ -92,8 +112,8 @@ public class InterProScanHelper extends Gff3Helper SequenceOntologyI so = SequenceOntologyFactory.getInstance(); String type = columns[TYPE_COL]; if (so.isA(type, SequenceOntologyI.PROTEIN_MATCH) - || (".".equals(columns[SOURCE_COL]) && so.isA(type, - SequenceOntologyI.POLYPEPTIDE))) + || (".".equals(columns[SOURCE_COL]) + && so.isA(type, SequenceOntologyI.POLYPEPTIDE))) { return true; } @@ -105,7 +125,8 @@ public class InterProScanHelper extends Gff3Helper * GFF field 'ID' rather than the usual 'Target' :-O */ @Override - protected String findTargetId(String target, Map> set) + protected String findTargetId(String target, + Map> set) { List ids = set.get(ID); if (ids == null || ids.size() != 1)