Class FrequencyData
java.lang.Object
org.monarchinitiative.lirical.exomiser_db_adapter.model.frequency.FrequencyData
Frequency data for the variant from the Thousand Genomes, the Exome Server
Project and Broad ExAC datasets.
Note that the frequency data are expressed as percentages.
- Author:
- Jules Jacobsen
-
Method Summary
Modifier and TypeMethodDescriptionstatic FrequencyData
empty()
boolean
getFrequencyForSource
(FrequencySource source) Returns a list ofFrequency
objects.float
Returns a the maximum frequency - if there are no known frequencies/ no frequency data it will return 0.getRsId()
float
getScore()
boolean
boolean
boolean
boolean
boolean
hasFrequencyOverPercentageValue
(float maxFreq) This function tests whether or not thisFrequencyData
object contains aFrequency
object which has a frequency greater than the maximum frequency provided.int
hashCode()
boolean
boolean
static FrequencyData
of
(String rsId, Collection<Frequency> frequencies) static FrequencyData
static FrequencyData
static FrequencyData
of
(Collection<Frequency> frequencies) static FrequencyData
static FrequencyData
toString()
-
Method Details
-
of
-
of
-
of
-
of
-
of
-
of
-
empty
-
getRsId
-
getFrequencyForSource
-
isRepresentedInDatabase
public boolean isRepresentedInDatabase()- Returns:
- true if this variant is at all represented in dbSNP or ESP data, regardless of frequency. That is, if the variant has an RS id in dbSNP or any frequency data at all, return true, otherwise false.
-
hasDbSnpData
public boolean hasDbSnpData() -
hasDbSnpRsID
public boolean hasDbSnpRsID() -
hasEspData
public boolean hasEspData() -
hasExacData
public boolean hasExacData() -
hasKnownFrequency
public boolean hasKnownFrequency() -
hasFrequencyOverPercentageValue
public boolean hasFrequencyOverPercentageValue(float maxFreq) This function tests whether or not thisFrequencyData
object contains aFrequency
object which has a frequency greater than the maximum frequency provided. This method does not check any ranges so it is advised that the user checks the frequency type in advance of calling this method. By default exomiser expresses the frequencies as a percentage value.- Parameters:
maxFreq
- the maximum frequency threshold against which theFrequency
objects are tested- Returns:
- true if the object contains a
Frequency
over the provided percentage value, otherwise returns false. - Since:
- 10.1.0
-
getKnownFrequencies
Returns a list ofFrequency
objects. If there is no known frequency data then an empty list will be returned. This method will return a mutable copy of the underlying data.- Returns:
- a mutable copy of the
Frequency
data
-
getMaxFreq
public float getMaxFreq()Returns a the maximum frequency - if there are no known frequencies/ no frequency data it will return 0.- Returns:
-
getScore
public float getScore()- Returns:
- returns a numerical value that is closer to one, the rarer the variant is. If a variant is not entered in any of the data sources, it returns one (highest score). Otherwise, it identifies the maximum MAF in any of the databases, and returns a score that depends on the MAF. Note that the frequency is expressed as a percentage.
-
equals
-
hashCode
public int hashCode() -
toString
-