|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojavax.bio.db.AbstractBioEntryDB
org.biojavax.bio.db.AbstractRichSequenceDB
org.biojavax.bio.db.ncbi.GenbankRichSequenceDB
public class GenbankRichSequenceDB
This class contains functions accessing DNA sequences in Genbank format. It adds methods to return RichSequences instead of plain Sequences.
Field Summary | |
---|---|
protected static String |
urlBatchSequences
|
Fields inherited from interface org.biojavax.bio.db.BioEntryDBLite |
---|
BIOENTRYS |
Fields inherited from interface org.biojava.bio.seq.db.SequenceDBLite |
---|
SEQUENCES |
Constructor Summary | |
---|---|
GenbankRichSequenceDB()
The default constructor delegates to the parent class. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.biojavax.bio.db.AbstractRichSequenceDB |
---|
addBioEntry, addRichSequence, addSequence, filter, getBioEntry, getBioEntryIterator, getBioEntrys, getBioEntrys, getRichSequenceIterator, getSequence, removeBioEntry, removeRichSequence, removeSequence, sequenceIterator |
Methods inherited from class org.biojava.utils.AbstractChangeable |
---|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.biojavax.bio.db.RichSequenceDBLite |
---|
addRichSequence, removeRichSequence |
Methods inherited from interface org.biojavax.bio.db.BioEntryDBLite |
---|
addBioEntry, getBioEntry, getBioEntrys, getBioEntrys, removeBioEntry |
Methods inherited from interface org.biojava.bio.seq.db.SequenceDBLite |
---|
addSequence, getSequence, removeSequence |
Methods inherited from interface org.biojava.utils.Changeable |
---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
Field Detail |
---|
protected static final String urlBatchSequences
Constructor Detail |
---|
public GenbankRichSequenceDB()
Method Detail |
---|
protected URL getAddress(String id) throws MalformedURLException
MalformedURLException
protected String makeBatchRequest(URL url, Set list)
url
- URL of the requestlist
- List of sequence identifier
public 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 id
BioException
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 id
BioException
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 id
BioException
public String getName()
SequenceDBLite
getName
in interface SequenceDBLite
getName
in interface BioEntryDBLite
public Set ids()
SequenceDB
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |