public class PositionFacadeAlignmentReader extends Object implements Closeable, Iterator<Alignments.AlignmentEntry>, Iterable<Alignments.AlignmentEntry>
| Constructor and Description |
|---|
PositionFacadeAlignmentReader(String basename,
int startReferenceIndex,
int startPosition,
int endReferenceIndex,
int endPosition)
A constructor that allows reading a slice of an alignment file contained exactly between a start
and an end location.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext()
Determines if the underlying reader has an entry within the position window boundaries.
|
Iterator<Alignments.AlignmentEntry> |
iterator() |
Alignments.AlignmentEntry |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic PositionFacadeAlignmentReader(String basename, int startReferenceIndex, int startPosition, int endReferenceIndex, int endPosition) throws IOException
basename - Basename for the alignemnt.startReferenceIndex - Index of the reference for the start position.startPosition - Position on the reference for the start position.endReferenceIndex - Index of the reference for the end position.endPosition - Position on the reference for the end position.IOException - Thrown if an error occurs opening or reading the alignment file.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean hasNext()
hasNext in interface Iterator<Alignments.AlignmentEntry>public Alignments.AlignmentEntry next()
next in interface Iterator<Alignments.AlignmentEntry>public void remove()
remove in interface Iterator<Alignments.AlignmentEntry>public Iterator<Alignments.AlignmentEntry> iterator()
iterator in interface Iterable<Alignments.AlignmentEntry>Copyright © 2017 Campagne Laboratory. All rights reserved.