public static class PairedReadManager.Builder extends Object
| Constructor and Description |
|---|
PairedReadManager.Builder()
Creates a new
PairedReadManager.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
addSequenceWithMate(int mateIndex,
int expectedDistance)
Records the mateIndex and expected distance to the mate for the current sequence in the alignment or list.
|
void |
addSequenceWithoutMate()
Adds a new sequence which doesn't have a mate in this data set.
|
PairedReadManager |
toPairedReadManager()
Creates a new PairedReadManager from this builder.
|
public PairedReadManager.Builder()
throws DocumentOperationException
PairedReadManager.BuilderDocumentOperationException - if we can't write to disk.public void addSequenceWithMate(int mateIndex,
int expectedDistance)
throws DocumentOperationException
addSequenceWithoutMate() for each sequence in the alignment or list.mateIndex - the 0-based index of the mate of this sequenceexpectedDistance - the expected distance from the second sequence to its mate. This must not be 0, but may be less than 0 to indicate the mate should be to the left of this sequenceDocumentOperationException - if we can't write to disk.public void addSequenceWithoutMate()
throws DocumentOperationException
DocumentOperationException - if we can't write to disk.public PairedReadManager toPairedReadManager() throws DocumentOperationException
DocumentOperationException - if we can't write to disk.