2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3 * Copyright (C) 2014 The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.ws.dbsources;
24 import com.stevesoft.pat.Regex;
26 import jalview.datamodel.AlignmentI;
27 import jalview.datamodel.DBRefSource;
28 import jalview.ws.seqfetcher.DbSourceProxy;
31 * Test class for accessing GeneDB - not yet finished.
36 public class GeneDbSource extends EmblXmlSource implements DbSourceProxy
41 addDbSourceProperty(DBRefSource.DNASEQDB);
42 addDbSourceProperty(DBRefSource.CODINGSEQDB);
48 * @see jalview.ws.DbSourceProxy#getAccessionSeparator()
50 public String getAccessionSeparator()
52 // TODO Auto-generated method stub
59 * @see jalview.ws.DbSourceProxy#getAccessionValidator()
61 public Regex getAccessionValidator()
63 // TODO Auto-generated method stub
70 * @see jalview.ws.DbSourceProxy#getDbSource()
72 public String getDbSource()
74 return DBRefSource.GENEDB;
80 * @see jalview.ws.DbSourceProxy#getDbVersion()
82 public String getDbVersion()
84 // TODO Auto-generated method stub
91 * @see jalview.ws.DbSourceProxy#getSequenceRecords(java.lang.String[])
93 public AlignmentI getSequenceRecords(String queries) throws Exception
96 // http://www.genedb.org/genedb/ArtemisFormHandler?id=&dest=EMBL
98 return getEmblSequenceRecords(DBRefSource.GENEDB, queries);
104 * @see jalview.ws.DbSourceProxy#isValidReference(java.lang.String)
106 public boolean isValidReference(String accession)
108 // TODO Auto-generated method stub
113 * return T.Brucei Mannosyl-Transferase TbPIG-M
115 public String getTestQuery()
117 return "Tb927.6.3300";
120 public String getDbName()
122 return "GeneDB"; // getDbSource();