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
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class org.biojava.bio.seq.io.SequenceBuilderBase
annotation, ERROR_FEATURES_PROPERTY, name, seq, uri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSymbols(Alphabet alpha, Symbol[] syms, int pos, int len) does nothing for now.create the sequenceMethods inherited from class org.biojava.bio.seq.io.SequenceBuilderBase
addFeatureProperty, addProperty, addSequenceProperty, endFeature, endSequence, setName, setURI, startFeature, startSequence
-
Field Details
-
ANNOTATE_EXISTING
- See Also:
-
CREATE_DUMMYSEQ
- See Also:
-
CREATE_REALSEQ
- See Also:
-
-
Constructor Details
-
SequenceDBSequenceBuilder
constructor
-
-
Method Details
-
addSymbols
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
create the sequence- Specified by:
makeSequencein interfaceSequenceBuilder- Overrides:
makeSequencein classSequenceBuilderBase- Throws:
BioException
-