Package org.snpeff.interval
Class Exon
java.lang.Object
org.snpeff.interval.Interval
org.snpeff.interval.Marker
org.snpeff.interval.MarkerSeq
org.snpeff.interval.Exon
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Interval>,MarkerWithFrame,TxtSerializable
Interval for an exon
- Author:
- pcingola
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCharacterize exons based on alternative splicing References: "Alternative splicing and evolution - diversification, exon definition and function" (see Box 1) -
Field Summary
FieldsFields inherited from class org.snpeff.interval.Interval
chromosomeNameOri, end, id, parent, start, strandMinus -
Constructor Summary
ConstructorsConstructorDescriptionExon()Exon(Transcript parent, int start, int end, boolean strandMinus, String id, int rank) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SpliceSite ss) Add a splice site to the collectionApply variant to exon WARNING: There might be conditions which change the exon type (e.g.Perform a shallow clonecreateSpliceSiteRegionEnd(int size) Create splice site regionscreateSpliceSiteRegionStart(int size) Create splice site regionsbooleanframeCorrection(int frameCorrection) Correct exons according to frame information Shift the start position one baseintintintgetFrame()intgetRank()protected booleanisAdjustIfParentDoesNotInclude(Marker parent) Adjust parent if it does not include child?Query all genomic regions that intersect 'marker'voidreset()sanityCheck(Variant variant) Check that the base in the exon corresponds with the one in the SNPvoidserializeParse(MarkerSerializer markerSerializer) Parse a line from a serialized fileserializeSave(MarkerSerializer markerSerializer) Create a string to serialize to a filevoidsetAaIdx(int aaIdxStart, int aaIdxEnd) voidsetFrame(int frame) Frame can be {-1, 0, 1, 2}, where '-1' means unknownvoidsetRank(int rank) toString()booleanvariantEffect(Variant variant, VariantEffects variantEffects) Note: This only adds spliceSites effects, for detailed codon changes effects we use 'CodonChange' classMethods inherited from class org.snpeff.interval.MarkerSeq
applyDel, applyDup, applyIns, applyMnp, applySnp, basesAt, basesAtPos, getSequence, getSequence, hasSequence, setSequence, unionMethods inherited from class org.snpeff.interval.Marker
adjust, applyDel, applyDup, applyIns, applyMixed, clone, codonTable, compareTo, compareToPos, distance, distanceBases, getParent, getType, idChain, idChain, idChain, includes, intersect, isDeferredAnalysis, isShowWarningIfParentDoesNotInclude, minus, query, readTxt, shouldApply, variantEffectNonRefMethods inherited from class org.snpeff.interval.Interval
equals, findParent, getChromosome, getChromosomeName, getChromosomeNameOri, getChromosomeNum, getEnd, getGenome, getGenomeName, getId, getStart, getStrand, hashCode, intersects, intersects, intersects, intersects, intersectSize, isCircular, isSameChromo, isStrandMinus, isStrandPlus, isValid, setChromosomeNameOri, setEnd, setId, setParent, setStart, setStrandMinus, shiftCoordinates, size, toStr, toStringAsciiArt, toStrPos
-
Field Details
-
ToStringVersion
public static int ToStringVersion
-
-
Constructor Details
-
Exon
public Exon() -
Exon
-
-
Method Details
-
add
Add a splice site to the collection -
apply
Apply variant to exon WARNING: There might be conditions which change the exon type (e.g. an intron is deleted). Nevertheless ExonSpliceType is not updated since it reflects the exon type before a sequence change. -
cloneShallow
Description copied from class:MarkerPerform a shallow clone- Overrides:
cloneShallowin classMarkerSeq
-
createSpliceSiteRegionEnd
Create splice site regions -
createSpliceSiteRegionStart
Create splice site regions -
frameCorrection
public boolean frameCorrection(int frameCorrection) Correct exons according to frame information Shift the start position one base -
getAaIdxEnd
public int getAaIdxEnd() -
getAaIdxStart
public int getAaIdxStart() -
getFrame
public int getFrame()- Specified by:
getFramein interfaceMarkerWithFrame
-
getRank
public int getRank() -
getSpliceSites
-
getSpliceType
-
isAdjustIfParentDoesNotInclude
Description copied from class:MarkerAdjust parent if it does not include child?- Overrides:
isAdjustIfParentDoesNotIncludein classMarker
-
query
Query all genomic regions that intersect 'marker' -
reset
public void reset() -
sanityCheck
Check that the base in the exon corresponds with the one in the SNP -
serializeParse
Parse a line from a serialized file- Specified by:
serializeParsein interfaceTxtSerializable- Overrides:
serializeParsein classMarkerSeq
-
serializeSave
Create a string to serialize to a file- Specified by:
serializeSavein interfaceTxtSerializable- Overrides:
serializeSavein classMarkerSeq
-
setAaIdx
public void setAaIdx(int aaIdxStart, int aaIdxEnd) -
setFrame
public void setFrame(int frame) Frame can be {-1, 0, 1, 2}, where '-1' means unknown- Specified by:
setFramein interfaceMarkerWithFrame
-
setRank
public void setRank(int rank) -
toString
-
variantEffect
Note: This only adds spliceSites effects, for detailed codon changes effects we use 'CodonChange' class- Overrides:
variantEffectin classMarker
-