public class SequenceDigests extends Object
| Constructor and Description |
|---|
SequenceDigests(it.unimi.dsi.fastutil.booleans.BooleanList mask,
int readLength,
boolean matchesPositiveStrand)
Construct digests over the bases active in mask.
|
SequenceDigests(int readLength,
boolean matchesPositiveStrand)
Construct digests over the entire length of the sequence.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
confirmMatch(byte[] readCompressedSeq,
byte[] byteBuffer,
int referencePosition,
int readLength) |
int |
crc32(byte[] bytes,
int offset,
int length) |
int |
crc32(com.google.protobuf.ByteString sequence,
int offset,
int length) |
int |
crc32WithMask(byte[] bytes,
int offset,
int length) |
int |
crc32WithMask(com.google.protobuf.ByteString sequence,
int offset,
int length) |
int |
digest(byte[] sequence,
int offset) |
int |
digest(byte[] sequence,
int offset,
int length) |
int |
digest(com.google.protobuf.ByteString sequence,
int offset,
int length) |
void |
digestAndStore(byte[] sequence,
int offset,
int sequenceIndex) |
int |
digestDirectStrandOnly(byte[] sequence,
int offset,
int length) |
int[] |
getReadIndices(int digest)
Get the sequence indices associated with a digest.
|
boolean |
isMatchingPositiveStrand() |
int[] |
lookup(byte[] sequence,
int offset,
int length)
Return the possible sequence indices for a segment of sequence.
|
void |
remove(int digest)
Remove a digest from the digest to read index map.
|
void |
remove(int digest,
int readIndex)
Remove the association between a digest and a read index.
|
public SequenceDigests(it.unimi.dsi.fastutil.booleans.BooleanList mask,
int readLength,
boolean matchesPositiveStrand)
mask - readLength - public SequenceDigests(int readLength,
boolean matchesPositiveStrand)
readLength - public final int digest(byte[] sequence,
int offset,
int length)
public final int digestDirectStrandOnly(byte[] sequence,
int offset,
int length)
public final int digest(byte[] sequence,
int offset)
public final int digest(com.google.protobuf.ByteString sequence,
int offset,
int length)
public final void digestAndStore(byte[] sequence,
int offset,
int sequenceIndex)
public final int crc32(byte[] bytes,
int offset,
int length)
public final int crc32(com.google.protobuf.ByteString sequence,
int offset,
int length)
public final int crc32WithMask(byte[] bytes,
int offset,
int length)
public final int crc32WithMask(com.google.protobuf.ByteString sequence,
int offset,
int length)
public final int[] lookup(byte[] sequence,
int offset,
int length)
sequence - Complete sequenceoffset - Offset from start of complete sequence where the segment starts.public final int[] getReadIndices(int digest)
digest - public final void remove(int digest)
digest - public void remove(int digest,
int readIndex)
digest - public final boolean confirmMatch(byte[] readCompressedSeq,
byte[] byteBuffer,
int referencePosition,
int readLength)
public boolean isMatchingPositiveStrand()
Copyright © 2018 Campagne Laboratory. All rights reserved.