Package org.biojava.bio.seq.io
Class SequenceDBSequenceBuilder
- java.lang.Object
-
- org.biojava.bio.seq.io.SequenceBuilderBase
-
- org.biojava.bio.seq.io.SequenceDBSequenceBuilder
-
- All Implemented Interfaces:
SeqIOListener,SequenceBuilder
public class SequenceDBSequenceBuilder extends SequenceBuilderBase
This SequenceBuilder has a variety of modes of operation. It can take a sequence from an existing SequenceDB and apply annotations to it.If the SequenceDB has persistence, then it can also create a sequence in the sequenceDB and apply the annotation to that. However, performance under those circumstances can vary depending on how well the persistent SequenceDB handles this.
Following the introduction of biojavax persistence is handled by Hibernate refer to
BioSQLRichObjectBuilder- Author:
- David Huen
-
-
Field Summary
Fields Modifier and Type Field Description static intANNOTATE_EXISTINGstatic intCREATE_DUMMYSEQstatic intCREATE_REALSEQ-
Fields inherited from class org.biojava.bio.seq.io.SequenceBuilderBase
annotation, ERROR_FEATURES_PROPERTY, name, seq, uri
-
-
Constructor Summary
Constructors Constructor Description SequenceDBSequenceBuilder(SequenceDB db, int mode)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSymbols(Alphabet alpha, Symbol[] syms, int pos, int len)does nothing for now.SequencemakeSequence()create the sequence-
Methods inherited from class org.biojava.bio.seq.io.SequenceBuilderBase
addFeatureProperty, addProperty, addSequenceProperty, endFeature, endSequence, setName, setURI, startFeature, startSequence
-
-
-
-
Field Detail
-
ANNOTATE_EXISTING
public static final int ANNOTATE_EXISTING
- See Also:
- Constant Field Values
-
CREATE_DUMMYSEQ
public static final int CREATE_DUMMYSEQ
- See Also:
- Constant Field Values
-
CREATE_REALSEQ
public static final int CREATE_REALSEQ
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SequenceDBSequenceBuilder
public SequenceDBSequenceBuilder(SequenceDB db, int mode)
constructor
-
-
Method Detail
-
addSymbols
public void addSymbols(Alphabet alpha, Symbol[] syms, int pos, int len)
does nothing for now.- Specified by:
addSymbolsin interfaceSeqIOListener- Specified by:
addSymbolsin classSequenceBuilderBase- Parameters:
alpha- The alphabet of the symbol datasyms- An array containing symbolspos- The start offset of valid data within the arraylen- The number of valid symbols in the array
-
makeSequence
public Sequence makeSequence() throws BioException
create the sequence- Specified by:
makeSequencein interfaceSequenceBuilder- Overrides:
makeSequencein classSequenceBuilderBase- Throws:
BioException
-
-