|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.seq.db.GenbankSequenceDB
public class GenbankSequenceDB
This class contains functions accessing DNA sequences in Genbank format.
Field Summary | |
---|---|
protected boolean |
ExceptionFound
|
protected boolean |
IOExceptionFound
|
protected static String |
urlBatchSequences
|
Constructor Summary | |
---|---|
GenbankSequenceDB()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean IOExceptionFound
protected boolean ExceptionFound
protected static final String urlBatchSequences
Constructor Detail |
---|
public GenbankSequenceDB()
Method Detail |
---|
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 String getName()
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 identifier
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |