public class GenpeptRichSequenceDB extends AbstractRichSequenceDB implements RichSequenceDBLite
| Modifier and Type | Field and Description |
|---|---|
protected static String |
urlBatchSequences |
BIOENTRYSSEQUENCES| Constructor and Description |
|---|
GenpeptRichSequenceDB()
The default constructor delegates to the parent class.
|
| Modifier and Type | Method and Description |
|---|---|
protected URL |
getAddress(String id)
Get the URL object for locating sequence object using eutils.
|
RichSequenceBuilderFactory |
getFactory()
Getter for property factory.
|
String |
getName()
Get the name of this sequence database.
|
Namespace |
getNamespace()
Getter for property namespace.
|
RichSequence |
getRichSequence(String id)
Given the appropriate Genbank ID, return the matching RichSequence object.
|
RichSequence |
getRichSequence(String id,
Namespace nsp)
Given the appropriate Genbank ID, return the matching RichSequence object.
|
RichSequenceDB |
getRichSequences(Set list)
Retrieve rich sequences from a Genbank
|
RichSequenceDB |
getRichSequences(Set list,
RichSequenceDB database)
Retrieve rich sequences from a Genbank
|
Set |
ids()
Get an immutable set of all of the IDs in the database.
|
protected String |
makeBatchRequest(URL url,
Set list)
Create the Http Post Request to fetch (in batch mode) a list of sequence
with Genbank.
|
void |
setFactory(RichSequenceBuilderFactory factory)
Setter for property factory.
|
void |
setNamespace(Namespace namespace)
Setter for property namespace.
|
addBioEntry, addRichSequence, addSequence, filter, getBioEntry, getBioEntryIterator, getBioEntrys, getBioEntrys, getRichSequenceIterator, getSequence, removeBioEntry, removeRichSequence, removeSequence, sequenceIteratoraddChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRichSequence, removeRichSequenceaddBioEntry, getBioEntry, getBioEntrys, getBioEntrys, removeBioEntryaddSequence, getSequence, removeSequenceaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerprotected static final String urlBatchSequences
public GenpeptRichSequenceDB()
protected URL getAddress(String id) throws MalformedURLException
MalformedURLExceptionprotected String makeBatchRequest(URL url, Set list)
url - URL of the requestlist - List of sequence identifierpublic RichSequence getRichSequence(String id) throws BioException, IllegalIDException
getRichSequence in interface RichSequenceDBLiteid - the Genbank ID to retrieve.Exception - if the sequence could not be retrieved for reasons other
than the identifier not being found.IllegalIDException - if the database doesn't know about the idBioExceptionpublic RichSequence getRichSequence(String id, Namespace nsp) throws BioException, IllegalIDException
id - the Genbank ID to retrieve.nsp - the Namespace to define.Exception - if the sequence could not be retrieved for reasons other
than the identifier not being found.BioExceptionIllegalIDExceptionpublic RichSequenceDB getRichSequences(Set list) throws BioException, IllegalIDException
getRichSequences in interface RichSequenceDBLitelist - List of NCBI sequence number (GI), accession, accession.version,
fasta or seqid.IllegalIDException - if the database doesn't know about the idBioExceptionpublic RichSequenceDB getRichSequences(Set list, RichSequenceDB database) throws BioException, IllegalIDException
getRichSequences in interface RichSequenceDBLitelist - List of NCBI sequence number (GI), accession, accession.version,
fasta or seqid.database - Where to store rich sequences. If database is null, use an
HashSequenceDB Object.IllegalIDException - if the database doesn't know about the idBioExceptionpublic String getName()
BioEntryDBLitegetName in interface SequenceDBLitegetName in interface BioEntryDBLitepublic Set ids()
BioEntryDBids in interface SequenceDBids in interface BioEntryDBpublic RichSequenceBuilderFactory getFactory()
public void setFactory(RichSequenceBuilderFactory factory)
factory - New value of property factory.public Namespace getNamespace()
public void setNamespace(Namespace namespace)
namespace - New value of property namespace.Copyright © 2020 BioJava. All rights reserved.