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 aParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisPositionMasked(String contig, int position) Whetherpositionis excluded oncontig.masked()Returns the value of themaskedrecord component.booleanReturns the value of themaskFilteredrecord component.intReturns the value of theminimalCoveragerecord component.doubleReturns the value of theminimalFrequencyrecord component.booleanReturns the value of theskipAnnotationrecord component.booleanReturns the value of theskipTypingrecord component.final StringtoString()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 aParametersrecord class.- Parameters:
minimalCoverage- the value for theminimalCoveragerecord componentminimalFrequency- the value for theminimalFrequencyrecord componentmaskFiltered- the value for themaskFilteredrecord componentskipAnnotation- the value for theskipAnnotationrecord componentskipTyping- the value for theskipTypingrecord componentmasked- the value for themaskedrecord component
-
-
Method Details
-
isPositionMasked
Whetherpositionis excluded oncontig.- Parameters:
contig- Contig (id) to check for exclusion.position- Position to check for exclusion.- Returns:
- True if
positiononcontigis 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 theminimalCoveragerecord component.- Returns:
- the value of the
minimalCoveragerecord component
-
minimalFrequency
public double minimalFrequency()Returns the value of theminimalFrequencyrecord component.- Returns:
- the value of the
minimalFrequencyrecord component
-
maskFiltered
public boolean maskFiltered()Returns the value of themaskFilteredrecord component.- Returns:
- the value of the
maskFilteredrecord component
-
skipAnnotation
public boolean skipAnnotation()Returns the value of theskipAnnotationrecord component.- Returns:
- the value of the
skipAnnotationrecord component
-
skipTyping
public boolean skipTyping()Returns the value of theskipTypingrecord component.- Returns:
- the value of the
skipTypingrecord component
-
masked
Returns the value of themaskedrecord component.- Returns:
- the value of the
maskedrecord component
-