Package org.snpeff.coverage
Class CountReadsOnMarkers
- java.lang.Object
-
- org.snpeff.coverage.CountReadsOnMarkers
-
public class CountReadsOnMarkers extends java.lang.ObjectCount how many reads map (from many SAM/BAM files) onto markers- Author:
- pcingola
-
-
Field Summary
Fields Modifier and Type Field Description static booleandebugstatic intMAX_EXONS_CHARTstatic intSHOW_EVERY
-
Constructor Summary
Constructors Constructor Description CountReadsOnMarkers(SnpEffectPredictor snpEffectPredictor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFile(java.lang.String samFileName)Add a SAM/BAM file to be processedvoidaddMarkerType(Marker marker, java.lang.String type)voidcount()Count markers from all filesMarkerTypesgetMarkerTypes()intgetReadLengthAvg()Average read lengthjava.lang.Stringhtml()Show charts in htmljava.lang.StringprobabilityTable(CountByType prob)Show probabilitiesvoidsetVerbose(boolean verbose)java.lang.StringtoString()Print table to STDOUT
-
-
-
Field Detail
-
SHOW_EVERY
public static final int SHOW_EVERY
- See Also:
- Constant Field Values
-
MAX_EXONS_CHART
public static final int MAX_EXONS_CHART
- See Also:
- Constant Field Values
-
debug
public static boolean debug
-
-
Constructor Detail
-
CountReadsOnMarkers
public CountReadsOnMarkers(SnpEffectPredictor snpEffectPredictor)
-
-
Method Detail
-
addFile
public void addFile(java.lang.String samFileName)
Add a SAM/BAM file to be processed- Parameters:
samFileName-
-
addMarkerType
public void addMarkerType(Marker marker, java.lang.String type)
-
count
public void count()
Count markers from all files
-
getMarkerTypes
public MarkerTypes getMarkerTypes()
-
getReadLengthAvg
public int getReadLengthAvg()
Average read length- Returns:
-
html
public java.lang.String html()
Show charts in html- Returns:
-
probabilityTable
public java.lang.String probabilityTable(CountByType prob)
Show probabilities- Parameters:
prob- : Probabilities for each- Returns:
- A string showing a tab delimited table
-
setVerbose
public void setVerbose(boolean verbose)
-
toString
public java.lang.String toString()
Print table to STDOUT- Overrides:
toStringin classjava.lang.Object
-
-