X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fdbsources%2FEmblCdsSouce.java;fp=src%2Fjalview%2Fws%2Fdbsources%2FEmblCdsSouce.java;h=1ac5c761429a2b2f27342714009e7d2c0a63bfb3;hb=506d60f0e188723ddc91c26824b41ac7034df3fe;hp=65b4e21b5d0a1a6e1d7d651b7ce6ec291d9aa4e5;hpb=60f2d6c034560415fd0139c8bc7df0c19cae1186;p=jalview.git diff --git a/src/jalview/ws/dbsources/EmblCdsSouce.java b/src/jalview/ws/dbsources/EmblCdsSouce.java index 65b4e21..1ac5c76 100644 --- a/src/jalview/ws/dbsources/EmblCdsSouce.java +++ b/src/jalview/ws/dbsources/EmblCdsSouce.java @@ -1,3 +1,21 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4) + * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * + * This program 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 2 + * of the License, or (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ package jalview.ws.dbsources; import java.util.Hashtable; @@ -11,14 +29,15 @@ import jalview.ws.seqfetcher.DbSourceProxy; public class EmblCdsSouce extends EmblXmlSource implements DbSourceProxy { - public EmblCdsSouce() { + public EmblCdsSouce() + { super(); - addDbSourceProperty(DBRefSource.CODINGSEQDB); + addDbSourceProperty(DBRefSource.CODINGSEQDB); } - + public String getAccessionSeparator() { - return null; + return null; } public Regex getAccessionValidator() @@ -34,12 +53,13 @@ public class EmblCdsSouce extends EmblXmlSource implements DbSourceProxy public String getDbVersion() { - return "0"; // TODO : this is dynamically set for a returned record - not tied to proxy + return "0"; // TODO : this is dynamically set for a returned record - not + // tied to proxy } public AlignmentI getSequenceRecords(String queries) throws Exception - { - if (queries.indexOf(".")>-1) + { + if (queries.indexOf(".") > -1) { queries = queries.substring(0, queries.indexOf(".")); } @@ -51,6 +71,7 @@ public class EmblCdsSouce extends EmblXmlSource implements DbSourceProxy // TODO Auto-generated method stub return true; } + /** * cDNA for LDHA_CHICK swissprot sequence */ @@ -58,6 +79,7 @@ public class EmblCdsSouce extends EmblXmlSource implements DbSourceProxy { return "CAA37824"; } + public String getDbName() { return "EMBL (CDS)";