public interface EditableNucleotideGraphSequenceDocument extends NucleotideGraphSequenceDocument, EditableSequenceDocument
NucleotideGraph.ImmutableGraphProviderSequenceDocument.Alphabet, SequenceDocument.TransformerPluginDocument.ReferencedDocumentsAlwaysLoaded, PluginDocument.ReferencedDocumentsNotLoaded, PluginDocument.SizeRequiredToLoadIntoMemoryProviderXMLSerializable.OldVersionCompatible, XMLSerializable.VersionSupportTypeNICE_NAMEGENOME_SEQUENCE_THRESHOLDFILE_DATA_ATTRIBUTE_NAME, MAXIMUM_HTML_LENGTH, MODIFIED_DATE_FIELDROOT_ELEMENT_NAME| Modifier and Type | Method and Description |
|---|---|
void |
setSequenceAndAnnotationsAndGraph(CharSequence sequence,
List<SequenceAnnotation> annotations,
NucleotideGraph graph)
Replaces
EditableSequenceDocument.setSequenceAndAnnotations(CharSequence,java.util.List)
which you must not call on a NucleotideGraphSequenceDocument. |
getChromatogramLength, getChromatogramPositionForResidue, getChromatogramValue, getSequenceLength, getSequenceQuality, hasChromatogramPositionsForResidues, hasChromatogramValues, hasSequenceQualitiessetCircular, setSequenceAndAnnotationssetAnnotationsgetCharSequence, getSequenceAnnotations, getSequenceLength, getSequenceString, isCirculargetCreationDate, getDescription, getDisplayableFields, getFieldValue, getName, getURN, toHTMLfromXML, toXMLvoid setSequenceAndAnnotationsAndGraph(CharSequence sequence, List<SequenceAnnotation> annotations, NucleotideGraph graph) throws IllegalArgumentException
EditableSequenceDocument.setSequenceAndAnnotations(CharSequence,java.util.List)
which you must not call on a NucleotideGraphSequenceDocument. Does the same as that method
normally would, but also sets a new graph to use (which must be consistent with the sequence,
i.e. graph.getSequenceLength()
must be equal to sequence.length()
It is recommended that an implementation call
DefaultNucleotideGraphSequence.checkChromatogramValidity(NucleotideGraphSequenceDocument)
before returning from this method, to ensure that the graph and sequence are consistent.sequence - New sequence to set on this document; must be consistent with the annotations
and the graph (see above). Must not change length or characters after being passed to this method
(as in EditableSequenceDocument.setSequenceAndAnnotations(CharSequence, java.util.List)).annotations - New annotations to set on this document, with indices relative to the new sequence.graph - New graph to set on this document; must be consistent with the new sequence. The implementation must store a copy of this graph instead
of a reference to the specified graph (using for eaxmple DefaultNucleotideGraph.copyOf(NucleotideGraph))IllegalArgumentException - if the sequence and graph are not consistent.