public class GenpeptRichSequenceDB extends AbstractRichSequenceDB implements RichSequenceDBLite
Modifier and Type | Field and Description |
---|---|
protected static String |
urlBatchSequences |
BIOENTRYS
SEQUENCES
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, sequenceIterator
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRichSequence, removeRichSequence
addBioEntry, getBioEntry, getBioEntrys, getBioEntrys, removeBioEntry
addSequence, getSequence, removeSequence
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
protected static final String urlBatchSequences
public GenpeptRichSequenceDB()
protected URL getAddress(String id) throws MalformedURLException
MalformedURLException
protected 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 RichSequenceDBLite
id
- 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 idBioException
public 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.BioException
IllegalIDException
public RichSequenceDB getRichSequences(Set list) throws BioException, IllegalIDException
getRichSequences
in interface RichSequenceDBLite
list
- List of NCBI sequence number (GI), accession, accession.version,
fasta or seqid.IllegalIDException
- if the database doesn't know about the idBioException
public RichSequenceDB getRichSequences(Set list, RichSequenceDB database) throws BioException, IllegalIDException
getRichSequences
in interface RichSequenceDBLite
list
- 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 idBioException
public String getName()
BioEntryDBLite
getName
in interface SequenceDBLite
getName
in interface BioEntryDBLite
public Set ids()
BioEntryDB
ids
in interface SequenceDB
ids
in interface BioEntryDB
public 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 © 2014 BioJava. All rights reserved.