public class AaOccurrence extends Object
Constructor and Description |
---|
AaOccurrence(int[] aaOccurrence)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getP(char aa)
Returns the log10 of the share of the given amino acid in the database.
|
double |
getP(char[] aas,
int startIndex,
int endIndex,
double pMax)
Returns the sum of the log10 of the share of the given amino acids in the
database.
|
public AaOccurrence(int[] aaOccurrence)
aaOccurrence
- the occurrence of all amino acids in the database
indexed as in the AminoAcid clss.public double getP(char aa)
aa
- the amino acid as single letter codepublic double getP(char[] aas, int startIndex, int endIndex, double pMax)
aas
- the amino acids as char array of the single letter codestartIndex
- the index where to start in the sequenceendIndex
- the index where to start in the sequencepMax
- the maximal value p can haveCopyright © 2018. All rights reserved.