Package model
Record Class Storage.Parameters
java.lang.Object
java.lang.Record
model.Storage.Parameters
- Record Components:
minimalCoverage
- The minimal coverage of a variant call to be accepted. Must be greater than or equal to 0. This ensures that only variant calls with sufficient read depth are considered.minimalFrequency
- The minimal frequency of a variant call to be accepted. Must be between 0.0 and 1.0, inclusive. This parameter filters out low-frequency variants that may be due to sequencing errors.maskFiltered
- Whether to mask filtered calls as ambiguous bases (N) or ignore them.skipAnnotation
- Whether to skip the SnpEff annotation process. If true, the annotation step is bypassed, which can save time if annotation is not required.skipTyping
- Whether to skip proteoform inference. If true, the inference of proteoforms (protein isoforms) is not performed, which can be useful for non-coding regions.masked
- A map associating contig names with sets of positions to exclude from storage. Cannot be null but can be empty. This allows specific genomic positions to be ignored during analysis.
- Enclosing class:
Storage
public static record Storage.Parameters(int minimalCoverage, double minimalFrequency, boolean maskFiltered, boolean skipAnnotation, boolean skipTyping, Map<String,Set<Integer>> masked)
extends Record
The parameters used for configuring the storage of variant data.
This record encapsulates various parameters that control the behavior of the storage system, including thresholds for coverage and frequency, as well as exclusions for specific positions and variants. These parameters are immutable once set.
-
Constructor Summary
ConstructorsConstructorDescriptionParameters
(int minimalCoverage, double minimalFrequency, boolean maskFiltered, boolean skipAnnotation, boolean skipTyping, Map<String, Set<Integer>> masked) Creates an instance of aParameters
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isPositionMasked
(String contig, int position) Whetherposition
is excluded oncontig
.masked()
Returns the value of themasked
record component.boolean
Returns the value of themaskFiltered
record component.int
Returns the value of theminimalCoverage
record component.double
Returns the value of theminimalFrequency
record component.boolean
Returns the value of theskipAnnotation
record component.boolean
Returns the value of theskipTyping
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Parameters
public Parameters(int minimalCoverage, double minimalFrequency, boolean maskFiltered, boolean skipAnnotation, boolean skipTyping, Map<String, Set<Integer>> masked) Creates an instance of aParameters
record class.- Parameters:
minimalCoverage
- the value for theminimalCoverage
record componentminimalFrequency
- the value for theminimalFrequency
record componentmaskFiltered
- the value for themaskFiltered
record componentskipAnnotation
- the value for theskipAnnotation
record componentskipTyping
- the value for theskipTyping
record componentmasked
- the value for themasked
record component
-
-
Method Details
-
isPositionMasked
Whetherposition
is excluded oncontig
.- Parameters:
contig
- Contig (id) to check for exclusion.position
- Position to check for exclusion.- Returns:
- True if
position
oncontig
is excluded from analysis.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
minimalCoverage
public int minimalCoverage()Returns the value of theminimalCoverage
record component.- Returns:
- the value of the
minimalCoverage
record component
-
minimalFrequency
public double minimalFrequency()Returns the value of theminimalFrequency
record component.- Returns:
- the value of the
minimalFrequency
record component
-
maskFiltered
public boolean maskFiltered()Returns the value of themaskFiltered
record component.- Returns:
- the value of the
maskFiltered
record component
-
skipAnnotation
public boolean skipAnnotation()Returns the value of theskipAnnotation
record component.- Returns:
- the value of the
skipAnnotation
record component
-
skipTyping
public boolean skipTyping()Returns the value of theskipTyping
record component.- Returns:
- the value of the
skipTyping
record component
-
masked
Returns the value of themasked
record component.- Returns:
- the value of the
masked
record component
-