Class SequenceDocument.Transformer
- java.lang.Object
-
- com.biomatters.geneious.publicapi.documents.sequence.SequenceDocument.Transformer
-
- Enclosing interface:
- SequenceDocument
public abstract static class SequenceDocument.Transformer extends java.lang.Object
Provides a method for returning a new sequence which represents a transformation made to another sequence. This may be used for example withDefaultSequenceListDocument.createNewDocumentByTransformingSequences
- Since:
- API 4.40 (Geneious 5.4.0)
-
-
Constructor Summary
Constructors Constructor Description Transformer()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract SequenceDocument
transformSequence(SequenceDocument sequence)
Transforms a sequence
-
-
-
Method Detail
-
transformSequence
public abstract SequenceDocument transformSequence(SequenceDocument sequence) throws com.biomatters.geneious.publicapi.plugin.DocumentOperationException
Transforms a sequence- Parameters:
sequence
- the sequence to be transformed. The original sequence must not be modified. Instead, a copy should be created first if necessary, for example usingSequenceUtilities.createSequenceCopyEditable
- Returns:
- a new sequence, or the original sequence unmodified if the transformation does not want to change this particular sequence. Or null to exclude the sequence.
- Throws:
com.biomatters.geneious.publicapi.plugin.DocumentOperationException
- if the transformation fails for any reason.
-
-