public static class AssemblerInput.ReferenceSequence extends Object
AssemblerInput.getNumberOfReferenceSequences() and AssemblerInput.getReferenceSequence(int, jebl.util.ProgressListener)| Constructor and Description |
|---|
AssemblerInput.ReferenceSequence(AnnotatedPluginDocument annotatedPluginDocument,
int indexOfSequenceInDocument)
Constructs a reference sequence.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndexOfSequenceInDocument()
If the document returned from
getSourceAnnotatedPluginDocument() is an alignment or sequence list, this method returns the index of the reference sequence in that document. |
NucleotideSequenceDocument |
getSequenceDocument(ProgressListener progressListener)
Gets the SequenceDocument corresponding to this reference sequence, loading it from disk if necessary.
|
AnnotatedPluginDocument |
getSourceAnnotatedPluginDocument()
Gets the annotated plugin document that contains this reference sequence.
|
public AssemblerInput.ReferenceSequence(AnnotatedPluginDocument annotatedPluginDocument, int indexOfSequenceInDocument)
annotatedPluginDocument - the document containing the reference sequence. This may be either a stand-alone sequence, an alignment or a sequence list.indexOfSequenceInDocument - if annotatedPluginDocument is either a sequence list of an alignment, this indicates the 0-based index of the reference sequence in that document. This should be -1 if the document is a stand-alone sequencepublic NucleotideSequenceDocument getSequenceDocument(ProgressListener progressListener) throws DocumentOperationException
progressListener - a progress listener to report progress to if the sequence needs to be loaded from disk.DocumentOperationException - if the sequence cannot be loaded.public AnnotatedPluginDocument getSourceAnnotatedPluginDocument()
public int getIndexOfSequenceInDocument()
getSourceAnnotatedPluginDocument() is an alignment or sequence list, this method returns the index of the reference sequence in that document.getSourceAnnotatedPluginDocument().