Class SequenceDocument.Transformer

    • Constructor Detail

      • Transformer

        public Transformer()
    • 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 using SequenceUtilities.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.