public class GenbankSequenceDB extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
ExceptionFound |
protected boolean |
IOExceptionFound |
protected static String |
urlBatchSequences |
Constructor and Description |
---|
GenbankSequenceDB() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkException() |
boolean |
checkIOException() |
protected URL |
getAddress(String id)
Get the URL object for locating sequence object using eutils.
|
protected URL |
getAddress(String id,
String format)
Get the URL object for locating sequence object using eutils.
|
protected Alphabet |
getAlphabet() |
String |
getName() |
Sequence |
getSequence(String id) |
protected SequenceFormat |
getSequenceFormat() |
SequenceDB |
getSequences(Set list)
Retrieve sequences from a Genbank
|
SequenceDB |
getSequences(Set list,
SequenceDB database)
Retrieve sequences from a Genbank
|
protected String |
makeBatchRequest(URL url,
Set list)
Create the Http Post Request to fetch (in batch mode) a list of sequence
with Genbank.
|
protected boolean IOExceptionFound
protected boolean ExceptionFound
protected static final String urlBatchSequences
public GenbankSequenceDB()
protected SequenceFormat getSequenceFormat()
protected Alphabet getAlphabet()
protected URL getAddress(String id) throws MalformedURLException
MalformedURLException
protected URL getAddress(String id, String format) throws MalformedURLException
MalformedURLException
public Sequence getSequence(String id) throws Exception
Exception
public boolean checkIOException()
public boolean checkException()
protected String makeBatchRequest(URL url, Set list)
url
- URL of the requestlist
- List of sequence identifierpublic SequenceDB getSequences(Set list) throws BioException
list
- List of NCBI sequence number (GI), accession, accession.version,
fasta or seqid.BioException
public SequenceDB getSequences(Set list, SequenceDB database) throws BioException
list
- List of NCBI sequence number (GI), accession, accession.version,
fasta or seqid.database
- Where to store sequences. if database is null, use an
HashSequenceDB Objet.BioException
Copyright © 2014 BioJava. All rights reserved.