public class NCBISequenceDB extends WebSequenceDB
Modifier and Type | Field and Description |
---|---|
static String |
DB_NUCLEOTIDE |
static String |
DB_PROTEIN |
SEQUENCES
Constructor and Description |
---|
NCBISequenceDB()
Default constructor, querys the Genbank nucleotide database on "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi"
and retrieves sequences in FastaFormat.
|
NCBISequenceDB(String database,
SequenceFormat format)
Parameterized constructor
|
NCBISequenceDB(String server,
String CGI,
String database,
SequenceFormat format)
Parameterized constructor
|
Modifier and Type | Method and Description |
---|---|
protected URL |
getAddress(String uid) |
protected Alphabet |
getAlphabet() |
String |
getDataBase() |
String |
getName()
Get the name of this sequence database.
|
SequenceFormat |
getSequenceFormat() |
void |
setDatabase(String dataBase) |
void |
setSequenceFormat(SequenceFormat format) |
addSequence, getSequence, removeSequence
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public static final String DB_NUCLEOTIDE
public static final String DB_PROTEIN
public NCBISequenceDB()
public NCBISequenceDB(String database, SequenceFormat format)
database
- must be one of "nucleotide" or "protein" (use the static DB fields)format
- must be one of GenbankFormat
or FastaFormat
BioRuntimeException
- if the database or format is invalidpublic NCBISequenceDB(String server, String CGI, String database, SequenceFormat format) throws BioRuntimeException
server
- eg "http://www.ncbi.nlm.nih.gov/"CGI
- eg "entrez/query.fcgi"database
- must be one of "nucleotide" or "protein" (use the static DB fields)format
- must be one of GenbankFormat
or FastaFormat
BioRuntimeException
- if the database or format is invalidpublic String getDataBase()
public void setDatabase(String dataBase) throws BioException
dataBase
- must be one of "nucleotide" or "protein" (use the static DB fields)BioException
- if an unknown database name is used.public SequenceFormat getSequenceFormat()
getSequenceFormat
in class WebSequenceDB
public void setSequenceFormat(SequenceFormat format) throws BioException
format
- must be one of FastaFormat
or GenbankFormat
BioException
- if an unknown SequenceFormat
is usedprotected Alphabet getAlphabet()
getAlphabet
in class WebSequenceDB
protected URL getAddress(String uid) throws MalformedURLException
getAddress
in class WebSequenceDB
MalformedURLException
public String getName()
SequenceDBLite
Copyright © 2014 BioJava. All rights reserved.