Package org.snpeff.stats
Class GeneCountByTypeTable
- java.lang.Object
-
- org.snpeff.stats.GeneCountByTypeTable
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<java.lang.String>
public class GeneCountByTypeTable extends java.lang.Object implements java.lang.Iterable<java.lang.String>, java.io.SerializableCount for each 'type' and 'gene'. Tries to avoid multiple counting by comparing to latest variants. WARNING: This strategy does not work if changeEffect are out of order.- Author:
- pcingola
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static booleandebugstatic intGENE_CPG_NUM_BINS
-
Constructor Summary
Constructors Constructor Description GeneCountByTypeTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBioType(java.lang.String key)CountByTypegetCounter(java.lang.String type)Get counter for this typeCountByTypegetCounterSize(java.lang.String type)Get size counter for this typejava.util.List<java.lang.String>getKeyList()Get a sorted list of keysintgetSizeByType(java.lang.String key, java.lang.String type)java.util.List<java.lang.String>getTypeList()Get a sorted list of keysjava.util.Iterator<java.lang.String>iterator()voidsample(Gene gene, Transcript tr, java.lang.String type, VariantEffect variantEffect)Sample thistuple to update statistics
-
-
-
Method Detail
-
getBioType
public java.lang.String getBioType(java.lang.String key)
-
getCounter
public CountByType getCounter(java.lang.String type)
Get counter for this type
-
getCounterSize
public CountByType getCounterSize(java.lang.String type)
Get size counter for this type
-
getKeyList
public java.util.List<java.lang.String> getKeyList()
Get a sorted list of keys
-
getSizeByType
public int getSizeByType(java.lang.String key, java.lang.String type)
-
getTypeList
public java.util.List<java.lang.String> getTypeList()
Get a sorted list of keys
-
iterator
public java.util.Iterator<java.lang.String> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.lang.String>
-
sample
public void sample(Gene gene, Transcript tr, java.lang.String type, VariantEffect variantEffect)
Sample thistuple to update statistics
-
-