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 Summary
Nested Classes Modifier and Type Class Description static classMolecularSequence.Variant.Builder
-
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.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.BackboneElement
getModifierExtension
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element
as, getExtension, getId, hasValue, is
-
-
-
-
Method Detail
-
getStart
public 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.
-
getEnd
public 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.
-
getObservedAllele
public 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.
-
getReferenceAllele
public 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.
-
getCigar
public 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.
-
getVariantPointer
public Reference getVariantPointer()
A pointer to an Observation containing variant information.- Returns:
- An immutable object of type
Referencethat 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.Variant.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static MolecularSequence.Variant.Builder builder()
-
-