public class ReadStructure.Substructure extends java.lang.Object implements java.lang.Iterable<ReadDescriptor>
Constructor and Description |
---|
Substructure(java.util.List<java.lang.Integer> descriptorIndices,
java.util.List<Range> allRanges)
Indices into the ReadStructure.descriptors for this specific substructure, indices
must be in the order they appear in the descriptors list (but the indices do NOT have to be continuous)
|
Modifier and Type | Method and Description |
---|---|
ReadDescriptor |
get(int index) |
Range[] |
getCycleIndexRanges() |
int[] |
getCycles() |
int[] |
getDescriptorLengths() |
int[] |
getIndices() |
int |
getTotalCycles() |
boolean |
isEmpty() |
java.util.Iterator<ReadDescriptor> |
iterator() |
int |
length() |
ReadStructure |
toReadStructure()
Create a ReadStructure from this substructure composed of only the descriptors contained in this substructure, Any
ReadDescriptors not in this substructure are treated as if they don't exist (e.g.
|
public Substructure(java.util.List<java.lang.Integer> descriptorIndices, java.util.List<Range> allRanges)
descriptorIndices
- A list of indices into ReadStructure.descriptors of the enclosing ReadStructureallRanges
- A list of ranges for all reads (not just those in this substructure) in the same order as ReadStructure.descriptorspublic ReadDescriptor get(int index)
public boolean isEmpty()
public int length()
public int getTotalCycles()
public int[] getIndices()
public int[] getDescriptorLengths()
public Range[] getCycleIndexRanges()
public java.util.Iterator<ReadDescriptor> iterator()
iterator
in interface java.lang.Iterable<ReadDescriptor>
public int[] getCycles()
public ReadStructure toReadStructure()