Package org.snpeff.stats
Class ReadsOnMarkersModel
java.lang.Object
org.snpeff.stats.ReadsOnMarkersModel
Calculate the maximum interval length by type, for all markers in a genome
Create a probability model based on binomial ditribution.
- Author:
- pcingola
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCount bases covered for each marker typegetProb()voidLoad data from a filevoidrandomSampling(int iterations, int readLen, int numReads) Sample and calculate the probability of hitting each type of marker (marker.class).booleanrun()RunvoidSave model to filevoidsetMarkerTypes(MarkerTypes markerTypes) voidsetNumIterations(int numIterations) voidsetNumReads(int numReads) voidsetReadLength(int readLength) voidsetSnpEffectPredictor(SnpEffectPredictor snpEffectPredictor) voidsetVerbose(boolean verbose) toString()
-
Constructor Details
-
ReadsOnMarkersModel
-
-
Method Details
-
countBases
public void countBases()Count bases covered for each marker type -
getCountBases
-
getCountMarkers
-
getProb
-
getRawCountBases
-
getRawCountMarkers
-
load
Load data from a file- Parameters:
fileName-
-
randomSampling
public void randomSampling(int iterations, int readLen, int numReads) Sample and calculate the probability of hitting each type of marker (marker.class). Creates 'numReads' reads of size 'readLen' and count how many of them hit each marker type. Iterate 'iterations' times to obtain a distribution. -
run
public boolean run()Run- Returns:
-
save
Save model to file- Parameters:
fileName-
-
setMarkerTypes
-
setNumIterations
public void setNumIterations(int numIterations) -
setNumReads
public void setNumReads(int numReads) -
setReadLength
public void setReadLength(int readLength) -
setSnpEffectPredictor
-
setVerbose
public void setVerbose(boolean verbose) -
toString
-