Package org.snpeff.spliceSites
Class AcgtTree
java.lang.Object
org.snpeff.spliceSites.AcgtTree
ACGT tree
- Author:
- pcingola
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final char[]static final intstatic final doublestatic final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic intbase2index(char base) doubleentropy()Calculate the entropyentropyAll(int thresholdCount) findNodeNames(double thresholdEntropy, double thresholdP, int thresholdCount) Find node names that are within the thresholdsget(char base) Get a nodeGet node indexed by this stringgetOrCreate(char base) Get a node (create it if it doesn't exist)intvoidinc(char base) Increment counter for a basepAll(int thresholdCount) protected voiddoublevoidSet a nodetoString()
-
Field Details
-
BASES
public static final char[] BASES -
LOG2
public static final double LOG2 -
FAKE_COUNTS
public static final int FAKE_COUNTS- See Also:
-
MAX_ENTROPY
public static final double MAX_ENTROPY- See Also:
-
-
Constructor Details
-
AcgtTree
public AcgtTree() -
AcgtTree
-
-
Method Details
-
base2index
public static int base2index(char base) -
add
-
entropy
public double entropy()Calculate the entropy -
entropyAll
-
findNodeNames
Find node names that are within the thresholds -
get
Get a node -
get
Get node indexed by this string -
getOrCreate
Get a node (create it if it doesn't exist) -
getTotalCount
public int getTotalCount() -
inc
public void inc(char base) Increment counter for a base -
pAll
-
pAll
-
seqConservation
public double seqConservation() -
set
Set a node -
toString
-
toString
-