public class AnnotationCount extends Object implements AnnotationCountInterface
| Constructor and Description |
|---|
AnnotationCount() |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate() |
float |
averageReadsPerPosition(int start,
int end)
Returns the average read coverage per base for a segment, or the sequencing depth.
|
void |
baseCount() |
double |
countReadsPartiallyOverlappingWithInterval(int start,
int end)
Returns the number of reads that partially overlap with the given annotation interval.
|
double |
countReadsStriclyWithinInterval(int start,
int end)
Returns the number of reads completely contained within an interval of the reference sequence.
|
double |
geneExpressionCount(Annotation annot)
Return the number of reads that map within exons of an annotation, excluding intron counts.
|
ComputeCountInterface |
getBaseCounter() |
int |
getIndex(int searchKey,
it.unimi.dsi.fastutil.ints.IntList keyList)
For hasmap map with keylist key, find the key for index.
|
int |
getValue(int searchKey,
it.unimi.dsi.fastutil.ints.IntList keyList,
it.unimi.dsi.fastutil.ints.Int2IntMap map)
Returns the value at index at the map either starts or ends.
|
void |
populate(int startPosition,
int endPosition) |
void |
populate(int startPosition,
int endPosition,
int queryIndex)
Populate the data structures with start and end positions.
|
void |
sortReads() |
void |
startPopulating() |
public ComputeCountInterface getBaseCounter()
public void startPopulating()
startPopulating in interface AnnotationCountInterfacepublic void populate(int startPosition,
int endPosition,
int queryIndex)
populate in interface AnnotationCountInterfacestartPosition - endPosition - queryIndex - public final void populate(int startPosition,
int endPosition)
public void sortReads()
sortReads in interface AnnotationCountInterfacepublic final int getIndex(int searchKey,
it.unimi.dsi.fastutil.ints.IntList keyList)
searchKey - the key to look forkeyList - the list to searchpublic final int getValue(int searchKey,
it.unimi.dsi.fastutil.ints.IntList keyList,
it.unimi.dsi.fastutil.ints.Int2IntMap map)
searchKey - the position on chromosome to get valuekeyList - e.g. startKeys or endKeysmap - e.g. starts or endspublic final float averageReadsPerPosition(int start,
int end)
averageReadsPerPosition in interface AnnotationCountInterfacestart - of a segmentend - of a segmentpublic double geneExpressionCount(Annotation annot)
geneExpressionCount in interface AnnotationCountInterfaceannot - an annotationpublic void accumulate()
accumulate in interface AnnotationCountInterfacepublic void baseCount()
baseCount in interface AnnotationCountInterfacepublic double countReadsStriclyWithinInterval(int start,
int end)
countReadsStriclyWithinInterval in interface AnnotationCountInterfacestart - positionend - positionpublic double countReadsPartiallyOverlappingWithInterval(int start,
int end)
countReadsPartiallyOverlappingWithInterval in interface AnnotationCountInterfacestart - positionend - positionCopyright © 2018 Campagne Laboratory. All rights reserved.