public class FormulaWeightCount extends Object implements ComputeCountInterface
| Constructor and Description |
|---|
FormulaWeightCount(WeightsInfo weights) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate()
Accumulate start and end counts to produce cumulative start and end count.
|
void |
baseCount()
Calculates base counts.
|
void |
baseCount(CountsWriterI writerI)
Calculate base counts and write the result to the specified CountsWriter.
|
ComputeCountInterface |
getBaseCounter() |
it.unimi.dsi.fastutil.ints.IntList |
getCountKeys()
Return a list of positions on the reference sequence that have non-zero counts.
|
Map |
getCountPerBase()
Returns a map from position on the reference sequence to count per base.
|
void |
populate(int startPosition,
int endPosition,
boolean forwardStrand)
This implementation ignores strand, but some sub-classes need this information.
|
void |
populate(int startPosition,
int endPosition,
boolean forwardStrand,
int queryIndex)
Populate this data structure with a read.
|
void |
populate(int startPosition,
int endPosition,
int queryIndex) |
void |
setFormulaChoice(FormulaWeightAnnotationCount.FormulaChoice formulaChoice) |
void |
startPopulating()
This method must be called before calling the populate method.
|
public FormulaWeightCount(WeightsInfo weights)
public ComputeCountInterface getBaseCounter()
public void startPopulating()
ComputeCountInterfacestartPopulating in interface ComputeCountInterfacepublic void populate(int startPosition,
int endPosition,
int queryIndex)
public void setFormulaChoice(FormulaWeightAnnotationCount.FormulaChoice formulaChoice)
public void accumulate()
ComputeCountInterfaceaccumulate in interface ComputeCountInterfacepublic void baseCount(CountsWriterI writerI) throws IOException
ComputeCountInterfacebaseCount in interface ComputeCountInterfacewriterI - A CountsWriter to write the counts to.IOExceptionpublic void baseCount()
ComputeCountInterfacebaseCount in interface ComputeCountInterfacepublic Map getCountPerBase()
ComputeCountInterfacegetCountPerBase in interface ComputeCountInterfacepublic it.unimi.dsi.fastutil.ints.IntList getCountKeys()
ComputeCountInterfacegetCountKeys in interface ComputeCountInterfacepublic void populate(int startPosition,
int endPosition,
boolean forwardStrand,
int queryIndex)
ComputeCountInterfacepopulate in interface ComputeCountInterfacestartPosition - position where the read starts on the reference.endPosition - position where the read ends on the reference.forwardStrand - True when the read matches the forward strand.queryIndex - Index of the read/query.public void populate(int startPosition,
int endPosition,
boolean forwardStrand)
ComputeCountInterfacepopulate in interface ComputeCountInterfacestartPosition - Start position of a read.endPosition - End position of a read.forwardStrand - True when the read matches the forward strand, false otherwise.Copyright © 2018 Campagne Laboratory. All rights reserved.