public class ReverseComplementPherogramProvider extends java.lang.Object implements PherogramProvider
LABEL_OVERCALL_PROBABILITY, LABEL_SUBSTITUTION_PROBABILITY, LABEL_UNDERCALL_PROBABILITY, PROBABILITY_LABELS, TRACE_CURVE_NUCLEOTIDES| Constructor and Description |
|---|
ReverseComplementPherogramProvider(PherogramProvider source)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAnnotation(java.lang.String label,
int baseIndex)
Returns the specified annotation (e.g.
|
char |
getBaseCall(int baseIndex)
Returns a base from the DNA sequence associated with the stored trace.
|
int |
getBaseCallPosition(int baseIndex)
Returns the position in the trace where the base at the specified index was observed.
|
double |
getMaxTraceValue(char nucleotide)
Returns the maximum trace value the specified curve contains.
|
int |
getQuality(char nucleotide,
int baseIndex)
Returns the quality score associated with the specified nucleotide.
|
int |
getSequenceLength()
Returns the length of the sequence associated with the stored trace.
|
int |
getTraceLength()
Returns the length of the stored trace.
|
double |
getTraceValue(char nucleotide,
int x)
Returns the y value of the specified trace curve at the specified position.
|
PherogramProvider |
reverseComplement()
Returns the source instance.
|
public ReverseComplementPherogramProvider(PherogramProvider source)
source - the model to be viewed reverse complementedpublic double getTraceValue(char nucleotide, int x)
PherogramProvidergetTraceValue in interface PherogramProvidernucleotide - the type of trace curve (A, T, C or G)x - the x position of the curve (The first position is 0 and the last is
PherogramProvider.getTraceLength()- 1.)public int getTraceLength()
PherogramProvidergetTraceLength in interface PherogramProviderpublic double getMaxTraceValue(char nucleotide)
PherogramProvider#getTraceValue(TraceCurve, int).)getMaxTraceValue in interface PherogramProvidernucleotide - the type of trace curve (A, T, C or G)public char getBaseCall(int baseIndex)
PherogramProvidergetBaseCall in interface PherogramProviderbaseIndex - the index of the base in the pherogram (base call) sequence (This might differ
from the index of the base in the associated sequence in the alignment. Indices start with 0.)public int getBaseCallPosition(int baseIndex)
PherogramProvidergetBaseCallPosition in interface PherogramProviderbaseIndex - the index of the base in the pherogram (base call) sequence (This might differ
from the index of the base in the associated sequence in the alignment. Indices start with 0.)PherogramProvider.getTraceLength()- 1public int getQuality(char nucleotide, int baseIndex)
PherogramProvidergetQuality in interface PherogramProvidernucleotide - the nucleotide identifying the trace curve for the quality scorebaseIndex - the index of the base call position to which the quality score belongs (Indices start with 0.)public int getAnnotation(java.lang.String label, int baseIndex)
PherogramProvidergetAnnotation in interface PherogramProviderlabel - the name of the attachment to be returnedbaseIndex - the index of base call to which the returned attachment score belongs (Indices start with 0.)public int getSequenceLength()
PherogramProvidergetSequenceLength in interface PherogramProviderpublic PherogramProvider reverseComplement()
reverseComplement in interface PherogramProvider