Class MolecularSequence.Variant
- 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.Variant
 
 
 
 
- 
- All Implemented Interfaces:
- Visitable
 - Enclosing class:
- MolecularSequence
 
 public static class MolecularSequence.Variant extends BackboneElement The definition of variant here originates from Sequence ontology ([variant_of](http://www.sequenceontology. org/browser/current_svn/term/variant_of)). This element can represent amino acid or nucleic sequence change(including insertion,deletion,SNP,etc.) It can represent some complex mutation or segment variation with the assist of CIGAR string.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMolecularSequence.Variant.Builder
 - 
Field Summary- 
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElementmodifierExtension
 
- 
 - 
Method SummaryAll 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.Variant.Builderbuilder()booleanequals(java.lang.Object obj)StringgetCigar()Extended CIGAR string for aligning the sequence with reference bases.IntegergetEnd()End position of the variant on the reference sequence.StringgetObservedAllele()An allele is one of a set of coexisting sequence variants of a gene ([SO:0001023](http://www.sequenceontology.StringgetReferenceAllele()An allele is one of a set of coexisting sequence variants of a gene ([SO:0001023](http://www.sequenceontology.IntegergetStart()Start position of the variant on the reference sequence.ReferencegetVariantPointer()A pointer to an Observation containing variant information.booleanhasChildren()inthashCode()MolecularSequence.Variant.BuildertoBuilder()Create a new Builder from the contents of this Element- 
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElementgetModifierExtension
 - 
Methods inherited from class org.linuxforhealth.fhir.model.type.Elementas, getExtension, getId, hasValue, is
 
- 
 
- 
- 
- 
Method Detail- 
getStartpublic Integer getStart() Start position of the variant on the reference 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.
 
 - 
getEndpublic Integer getEnd() End position of the variant on the reference 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.
 
 - 
getObservedAllelepublic String getObservedAllele() An allele is one of a set of coexisting sequence variants of a gene ([SO:0001023](http://www.sequenceontology. org/browser/current_svn/term/SO:0001023)). Nucleotide(s)/amino acids from start position of sequence to stop position of sequence on the positive (+) strand of the observed sequence. When the sequence type is DNA, it should be the sequence on the positive (+) strand. This will lay in the range between variant.start and variant.end.- Returns:
- An immutable object of type Stringthat may be null.
 
 - 
getReferenceAllelepublic String getReferenceAllele() An allele is one of a set of coexisting sequence variants of a gene ([SO:0001023](http://www.sequenceontology. org/browser/current_svn/term/SO:0001023)). Nucleotide(s)/amino acids from start position of sequence to stop position of sequence on the positive (+) strand of the reference sequence. When the sequence type is DNA, it should be the sequence on the positive (+) strand. This will lay in the range between variant.start and variant.end.- Returns:
- An immutable object of type Stringthat may be null.
 
 - 
getCigarpublic String getCigar() Extended CIGAR string for aligning the sequence with reference bases. See detailed documentation [here](http://support. illumina. com/help/SequencingAnalysisWorkflow/Content/Vault/Informatics/Sequencing_Analysis/CASAVA/swSEQ_mCA_ExtendedCIGARFormat. htm).- Returns:
- An immutable object of type Stringthat may be null.
 
 - 
getVariantPointerpublic Reference getVariantPointer() A pointer to an Observation containing variant information.- Returns:
- An immutable object of type Referencethat may be null.
 
 - 
hasChildrenpublic boolean hasChildren() - Overrides:
- hasChildrenin class- BackboneElement
 
 - 
acceptpublic 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 interface- Visitable
- Specified by:
- acceptin class- AbstractVisitable
- Parameters:
- elementName- the name of the element in the context of this visit
- elementIndex- the index of the element in a list or -1 if it is not contained within a List
- visitor- the visitor to use
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toBuilderpublic MolecularSequence.Variant.Builder toBuilder() Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
- toBuilderin class- BackboneElement
 
 - 
builderpublic static MolecularSequence.Variant.Builder builder() 
 
- 
 
-