Class MolecularSequence.Quality
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.type.Element
-
- org.linuxforhealth.fhir.model.type.BackboneElement
-
- org.linuxforhealth.fhir.model.resource.MolecularSequence.Quality
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- MolecularSequence
public static class MolecularSequence.Quality extends BackboneElement
An experimental feature attribute that defines the quality of the feature in a quantitative way, such as a phred quality score ([SO:0001686](http://www.sequenceontology.org/browser/current_svn/term/SO:0001686)).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMolecularSequence.Quality.Builderstatic classMolecularSequence.Quality.RocReceiver Operator Characteristic (ROC) Curve to give sensitivity/specificity tradeoff.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static MolecularSequence.Quality.Builderbuilder()booleanequals(java.lang.Object obj)IntegergetEnd()End position of the sequence.DecimalgetFScore()Harmonic mean of Recall and Precision, computed as: 2 * precision * recall / (precision + recall).DecimalgetGtFP()The number of false positives where the non-REF alleles in the Truth and Query Call Sets match (i.e.CodeableConceptgetMethod()Which method is used to get sequence quality.DecimalgetPrecision()QUERY.TP / (QUERY.TP + QUERY.FP).DecimalgetQueryFP()False positives, i.e.DecimalgetQueryTP()True positives, from the perspective of the query data, i.e.DecimalgetRecall()TRUTH.TP / (TRUTH.TP + TRUTH.FN).MolecularSequence.Quality.RocgetRoc()Receiver Operator Characteristic (ROC) Curve to give sensitivity/specificity tradeoff.QuantitygetScore()The score of an experimentally derived feature such as a p-value ([SO:0001685](http://www.sequenceontology.CodeableConceptgetStandardSequence()Gold standard sequence used for comparing against.IntegergetStart()Start position of the sequence.DecimalgetTruthFN()False negatives, i.e.DecimalgetTruthTP()True positives, from the perspective of the truth data, i.e.QualityTypegetType()INDEL / SNP / Undefined variant.booleanhasChildren()inthashCode()MolecularSequence.Quality.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
getModifierExtension
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element
as, getExtension, getId, hasValue, is
-
-
-
-
Method Detail
-
getType
public QualityType getType()
INDEL / SNP / Undefined variant.- Returns:
- An immutable object of type
QualityTypethat is non-null.
-
getStandardSequence
public CodeableConcept getStandardSequence()
Gold standard sequence used for comparing against.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getStart
public Integer getStart()
Start position of the sequence. If the coordinate system is either 0-based or 1-based, then start position is inclusive.- Returns:
- An immutable object of type
Integerthat may be null.
-
getEnd
public Integer getEnd()
End position of the sequence. If the coordinate system is 0-based then end is exclusive and does not include the last position. If the coordinate system is 1-base, then end is inclusive and includes the last position.- Returns:
- An immutable object of type
Integerthat may be null.
-
getScore
public Quantity getScore()
The score of an experimentally derived feature such as a p-value ([SO:0001685](http://www.sequenceontology. org/browser/current_svn/term/SO:0001685)).- Returns:
- An immutable object of type
Quantitythat may be null.
-
getMethod
public CodeableConcept getMethod()
Which method is used to get sequence quality.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getTruthTP
public Decimal getTruthTP()
True positives, from the perspective of the truth data, i.e. the number of sites in the Truth Call Set for which there are paths through the Query Call Set that are consistent with all of the alleles at this site, and for which there is an accurate genotype call for the event.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getQueryTP
public Decimal getQueryTP()
True positives, from the perspective of the query data, i.e. the number of sites in the Query Call Set for which there are paths through the Truth Call Set that are consistent with all of the alleles at this site, and for which there is an accurate genotype call for the event.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getTruthFN
public Decimal getTruthFN()
False negatives, i.e. the number of sites in the Truth Call Set for which there is no path through the Query Call Set that is consistent with all of the alleles at this site, or sites for which there is an inaccurate genotype call for the event. Sites with correct variant but incorrect genotype are counted here.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getQueryFP
public Decimal getQueryFP()
False positives, i.e. the number of sites in the Query Call Set for which there is no path through the Truth Call Set that is consistent with this site. Sites with correct variant but incorrect genotype are counted here.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getGtFP
public Decimal getGtFP()
The number of false positives where the non-REF alleles in the Truth and Query Call Sets match (i.e. cases where the truth is 1/1 and the query is 0/1 or similar).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getPrecision
public Decimal getPrecision()
QUERY.TP / (QUERY.TP + QUERY.FP).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getRecall
public Decimal getRecall()
TRUTH.TP / (TRUTH.TP + TRUTH.FN).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getFScore
public Decimal getFScore()
Harmonic mean of Recall and Precision, computed as: 2 * precision * recall / (precision + recall).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getRoc
public MolecularSequence.Quality.Roc getRoc()
Receiver Operator Characteristic (ROC) Curve to give sensitivity/specificity tradeoff.- Returns:
- An immutable object of type
MolecularSequence.Quality.Rocthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public MolecularSequence.Quality.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static MolecularSequence.Quality.Builder builder()
-
-