public abstract class AlignmentOperation extends Object
DocumentOperation
instead, but that is not recommended.Modifier and Type | Class and Description |
---|---|
static class |
AlignmentOperation.InputProperties
Represents the properties of the input to an AlignmentOperation
|
Constructor and Description |
---|
AlignmentOperation() |
Modifier and Type | Method and Description |
---|---|
abstract List<CharSequence> |
align(SequenceDocument.Alphabet alphabet,
List<CharSequence> sequences,
Options options,
ProgressListener progressListener)
Align the given sequences
|
boolean |
canRunOnGeneiousServer()
Returns true if this operation supports being run on a GeneiousServer.
|
boolean |
canRunOnLocalGeneious() |
String |
getAlignmentOptionsDescription(List<CharSequence> alignedSequences,
Options options)
Deprecated.
this functionality is now supplied by operation history
|
String |
getDescription() |
Options |
getGeneralOptions()
Gets some Options that work for this operation when invoked on any type and number of input sequences
|
String |
getHelp() |
Icons |
getIcons() |
abstract String |
getName() |
Options |
getOptions(AlignmentOperation.InputProperties inputProperties)
A more powerful alternative to
getOptions(com.biomatters.geneious.publicapi.documents.sequence.SequenceDocument.Alphabet, boolean, boolean)
that may provide the properties of the input to the operation. |
Options |
getOptions(SequenceDocument.Alphabet alphabet,
boolean pairwise,
boolean isSingleAlignment)
Get the options appropriate for aligning these sequences
|
Double |
getScore(List<CharSequence> alignedSequences,
Options options)
Used as score parameter when constructing the result alignment, see
DefaultAlignmentDocument.DefaultAlignmentDocument(SequenceDocument[], List, String, Double, String) |
abstract String |
getSupportedCharacters(SequenceDocument.Alphabet alphabet)
Get the characters that are supported by this alignment operation.
|
abstract double |
getTabPosition() |
String |
getUniqueIdPrefix() |
abstract boolean |
isProOnly() |
boolean |
isRefine(Options options) |
boolean |
preserveSequenceOrder(Options options) |
abstract boolean |
supportsAlphabet(SequenceDocument.Alphabet alphabet) |
public abstract String getName()
public String getUniqueIdPrefix()
DocumentOperation.getUniqueId()
public String getDescription()
DocumentOperation.getActionOptions()
public Icons getIcons()
DocumentOperation.getActionOptions()
public abstract double getTabPosition()
GeneiousActionOptions.setMainMenuLocation(com.biomatters.geneious.publicapi.plugin.GeneiousActionOptions.MainMenu, double)
}public String getHelp()
DocumentOperation.getHelp()
public abstract boolean supportsAlphabet(SequenceDocument.Alphabet alphabet)
alphabet
- public Options getOptions(SequenceDocument.Alphabet alphabet, boolean pairwise, boolean isSingleAlignment) throws DocumentOperationException
alphabet
- alphabet of the sequencespairwise
- true iff there are only two (unique) sequencesisSingleAlignment
- iff the only selected document is an alignmentDocumentOperationException
- if obtaining the options for this operation is unsuccessful for any reasonpublic Options getGeneralOptions() throws DocumentOperationException
DocumentOperationException
- if this operation doesn't support general options.public Options getOptions(AlignmentOperation.InputProperties inputProperties) throws DocumentOperationException
getOptions(com.biomatters.geneious.publicapi.documents.sequence.SequenceDocument.Alphabet, boolean, boolean)
that may provide the properties of the input to the operation. These may include properties such as
the location the operation is run and the alphabet of the input sequences.
Operations that have Options that need to change state depending on which GeneiousService
the operation is run on should implement this method and register a listener on
the results of AlignmentOperation.InputProperties.getLocationOptions()
by calling OperationLocationOptions.addLocationChangedListener(com.biomatters.geneious.publicapi.plugin.OperationLocationOptions.LocationChangedListener)
inputProperties
- properties of the input to the AlignmentOperation. See AlignmentOperation.InputProperties
DocumentOperationException
- if obtaining the options for this operation is unsuccessful for any reasonpublic abstract List<CharSequence> align(SequenceDocument.Alphabet alphabet, List<CharSequence> sequences, Options options, ProgressListener progressListener) throws DocumentOperationException
alphabet
- alphabet of the sequencessequences
- sequences to alignoptions
- options for aligning these sequencesprogressListener
- used to report progress on the alignmentDocumentOperationException
- if there is a problem or the user cancels the alignmentpublic String getAlignmentOptionsDescription(List<CharSequence> alignedSequences, Options options) throws DocumentOperationException
DefaultAlignmentDocument.DefaultAlignmentDocument(SequenceDocument[], List, String, Double, String)
alignedSequences
- aligned sequencesoptions
- options used to align the sequencesDocumentOperationException
public abstract String getSupportedCharacters(SequenceDocument.Alphabet alphabet)
alphabet
- alphabet to get the characters forpublic Double getScore(List<CharSequence> alignedSequences, Options options)
DefaultAlignmentDocument.DefaultAlignmentDocument(SequenceDocument[], List, String, Double, String)
alignedSequences
- aligned sequencesoptions
- options used to align the sequencespublic boolean isRefine(Options options)
options
- options used to align the sequencespublic boolean preserveSequenceOrder(Options options)
options
- options used to align the sequencespublic abstract boolean isProOnly()
public boolean canRunOnLocalGeneious()
public boolean canRunOnGeneiousServer()
Options.valuesFromXML(org.jdom.Element)
with the element obtained from Options.valuesToXML(String)
.DocumentOperation.OperationCallback
or as an element in the return list.GeneiousService
s directly.