Package org.snpeff.snpEffect
Class VariantEffect
java.lang.Object
org.snpeff.snpEffect.VariantEffect
- All Implemented Interfaces:
Cloneable,Comparable<VariantEffect>
- Direct Known Subclasses:
VariantEffectStructural
Effect of a variant.
- Author:
- pcingola
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumThis class is only getFused for SNPs -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected intprotected intprotected intprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected VariantEffect.EffectImpactprotected List<VariantEffect.EffectImpact>protected EffectTypeprotected List<EffectType>protected Stringprotected Markerstatic final intprotected Stringprotected Variantprotected String -
Constructor Summary
ConstructorsConstructorDescriptionVariantEffect(Variant variant) VariantEffect(Variant variant, Marker marker, EffectType effectType, VariantEffect.EffectImpact effectImpact, String codonsOld, String codonsNew, int codonNum, int codonIndex, int cDnaPos) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEffect(EffectType effectType) voidaddEffectImpact(VariantEffect.EffectImpact effectImpact) voidaddEffectType(EffectType effectType) voidaddErrorMessage(ErrorWarningType errmsg) voidaddErrorWarningInfo(ErrorWarningType errwarn) Add an error or warningvoidaddInfoMessage(ErrorWarningType infomsg) voidaddWarningMessge(ErrorWarningType warnmsg) clone()intcompareTo(VariantEffect varEffOther) effect(boolean shortFormat, boolean showAaChange, boolean showBioType, boolean useSeqOntology, boolean useFirstEffect) Show a string with overall effectgetAaAlt()Amino acid change string (HGVS style)Amino acid change string (old style)intAmino acid length (negative if there is none)Net AA change (InDels)getAaRef()Get biotypeintintCDS length (negative if there is none)Codon change stringCodon change string (if it's not too long)intintintReturn impact of this effectHighest effect typeHighest effect typegetEffectTypeString(boolean useSeqOntology) getEffectTypeString(boolean useSeqOntology, boolean useFirstEffect) getEffectTypeString(boolean useSeqOntology, boolean useFirstEffect, EffFormatVersion formatVersion) Get Effect Type as a stringgetError()getExon()Get exon (if any)Return functional class of this effect (i.e.getGene()getGenes()Get genotype stringgetHgvs()Change in HGVS notationChange in HGVS (Dna) notationChange in HGVS (Protein) notationGet intron (if any)booleanDo we have an associated marker with additional annotations?booleanhasEffectImpact(VariantEffect.EffectImpact effectImpact) booleanhasEffectType(EffectType effectType) booleanhasError()booleanbooleanisCustom()booleanisExon()booleanbooleanisIntron()booleanisMotif()booleanbooleanbooleanbooleanbooleanbooleanbooleanisUtr3()booleanisUtr5()voidset(Marker marker, EffectType effectType, VariantEffect.EffectImpact effectImpact, String message) voidSet codon change.voidsetCodonsAround(String codonsLeft, String codonsRight) Set values for codons around change.voidsetDistance(int distance) voidsetEffect(EffectType effectType) Set effect using default impactvoidsetEffectImpact(VariantEffect.EffectImpact effectImpact) voidsetEffectType(EffectType effectType) voidSet marker.toStr()toString()toString(boolean useSeqOntology, boolean useHgvs) toStringSimple(boolean shortFormat) Get the simplest string describing the effect (this is mostly used for testcases)
-
Field Details
-
MAX_CODON_SEQUENCE_LEN
public static final int MAX_CODON_SEQUENCE_LEN- See Also:
-
variant
-
effectTypes
-
effectType
-
effectImpacts
-
effectImpact
-
marker
-
error
-
warning
-
message
-
codonsRef
-
codonsAlt
-
codonsAroundOld
-
codonsAroundNew
-
distance
protected int distance -
cDnaPos
protected int cDnaPos -
codonNum
protected int codonNum -
codonIndex
protected int codonIndex -
codonDegeneracy
protected int codonDegeneracy -
aaRef
-
aaAlt
-
aasAroundOld
-
aasAroundNew
-
-
Constructor Details
-
VariantEffect
-
VariantEffect
public VariantEffect(Variant variant, Marker marker, EffectType effectType, VariantEffect.EffectImpact effectImpact, String codonsOld, String codonsNew, int codonNum, int codonIndex, int cDnaPos)
-
-
Method Details
-
addEffect
-
addEffectImpact
-
addEffectType
-
addErrorMessage
-
addErrorWarningInfo
Add an error or warning -
addInfoMessage
-
addWarningMessge
-
clone
-
compareTo
- Specified by:
compareToin interfaceComparable<VariantEffect>
-
effect
public String effect(boolean shortFormat, boolean showAaChange, boolean showBioType, boolean useSeqOntology, boolean useFirstEffect) Show a string with overall effect -
getAaAlt
-
getAaChange
Amino acid change string (HGVS style) -
getAaChangeOld
Amino acid change string (old style) -
getAaLength
public int getAaLength()Amino acid length (negative if there is none)- Returns:
- Amino acid length (CDS length / 3 ) or '-1' if there is no CDS length
-
getAaNetChange
Net AA change (InDels) -
getAaRef
-
getBiotype
Get biotype -
getcDnaPos
public int getcDnaPos() -
getCdsLength
public int getCdsLength()CDS length (negative if there is none) -
getCodonChange
Codon change string -
getCodonChangeMax
Codon change string (if it's not too long) -
getCodonIndex
public int getCodonIndex() -
getCodonNum
public int getCodonNum() -
getCodonsAlt
-
getCodonsRef
-
getDistance
public int getDistance() -
setDistance
public void setDistance(int distance) -
getEffectImpact
Return impact of this effect -
setEffectImpact
-
getEffectType
Highest effect type -
setEffectType
-
getEffectTypes
Highest effect type -
getEffectTypeString
-
getEffectTypeString
-
getEffectTypeString
public String getEffectTypeString(boolean useSeqOntology, boolean useFirstEffect, EffFormatVersion formatVersion) Get Effect Type as a string -
getError
-
getExon
Get exon (if any) -
getFunctionalClass
Return functional class of this effect (i.e. NONSENSE, MISSENSE, SILENT or NONE) -
getGene
-
getGeneRegion
-
getGenes
-
getGenotype
Get genotype string -
getHgvs
Change in HGVS notation -
getHgvsDna
Change in HGVS (Dna) notation -
getHgvsProt
Change in HGVS (Protein) notation -
getIntron
Get intron (if any) -
getMarker
-
setMarker
Set marker. Add some warnings if the marker relates to incomplete transcripts -
getTranscript
-
getVariant
-
getWarning
-
hasAdditionalAnnotations
public boolean hasAdditionalAnnotations()Do we have an associated marker with additional annotations? -
hasEffectImpact
-
hasEffectType
-
hasError
public boolean hasError() -
hasWarning
public boolean hasWarning() -
isCustom
public boolean isCustom() -
isExon
public boolean isExon() -
isIntergenic
public boolean isIntergenic() -
isIntron
public boolean isIntron() -
isMotif
public boolean isMotif() -
isMultipleGenes
public boolean isMultipleGenes() -
isNextProt
public boolean isNextProt() -
isRegulation
public boolean isRegulation() -
isSpliceSite
public boolean isSpliceSite() -
isSpliceSiteCore
public boolean isSpliceSiteCore() -
isSpliceSiteRegion
public boolean isSpliceSiteRegion() -
isUtr3
public boolean isUtr3() -
isUtr5
public boolean isUtr5() -
set
public void set(Marker marker, EffectType effectType, VariantEffect.EffectImpact effectImpact, String message) -
setCodons
Set codon change. Calculate effect type based on codon changes (for SNPs & MNPs) -
setCodonsAround
Set values for codons around change. -
setEffect
Set effect using default impact -
toStr
-
toString
-
toString
-
toStringSimple
Get the simplest string describing the effect (this is mostly used for testcases)
-