public interface RandomAccessSequenceInterface
| Modifier and Type | Method and Description |
|---|---|
char |
get(int referenceIndex,
int position)
Return the base in the specified reference at the given position.
|
int |
getLength(int targetIndex)
Returns the length of the target sequence at index targetIndex.
|
void |
getRange(int referenceIndex,
int position,
int length,
it.unimi.dsi.lang.MutableString bases)
Return bases from a range of positions in the cache.
|
int |
getReferenceIndex(String referenceId)
Return the index of the reference, or -1 if the name is not found in the genome.
|
String |
getReferenceName(int index)
Return the reference name corresponding to this index.
|
int |
size()
Return the number of sequences in the cache.
|
char get(int referenceIndex,
int position)
referenceIndex - index of the reference sequence.position - zero-based position in the reference for which the base is sought.int getLength(int targetIndex)
targetIndex - Index of the target sequence.void getRange(int referenceIndex,
int position,
int length,
it.unimi.dsi.lang.MutableString bases)
referenceIndex - Name of the reference sequenceposition - position where the range startslength - length of the range for which bases should be returned.bases - where the bases will be written.int getReferenceIndex(String referenceId)
referenceId - name of the reference.String getReferenceName(int index)
index - for the specified referenceint size()
Copyright © 2017 Campagne Laboratory. All rights reserved.