Package org.snpeff.interval
Class MarkerSeq
- java.lang.Object
-
- org.snpeff.interval.Interval
-
- org.snpeff.interval.Marker
-
- org.snpeff.interval.MarkerSeq
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<Interval>,TxtSerializable
- Direct Known Subclasses:
Exon
public class MarkerSeq extends Marker
Marker with a DNA sequence- Author:
- pcingola
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.snpeff.interval.Interval
chromosomeNameOri, end, id, parent, start, strandMinus
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkerSeqapply(Variant variant)Apply variantprotected voidapplyDel(Variant variant, MarkerSeq markerSeq)Apply a change type deletion (update sequence)protected voidapplyDup(Variant variant, MarkerSeq markerSeq)Apply a change type duplication (update sequence)protected voidapplyIns(Variant variant, MarkerSeq markerSeq)Apply a change type insertion (update sequence)protected voidapplyMnp(Variant variant, MarkerSeq markerSeq)Apply a change type MNP (update sequence)protected voidapplySnp(Variant variant, MarkerSeq markerSeq)Apply a change type SNP (update sequence)java.lang.StringbasesAt(int index, int len)Base in this marker at position 'index' (relative to marker start)java.lang.StringbasesAtPos(int pos, int len)Base at position 'pos' (genomic coordinates)MarkerSeqcloneShallow()Perform a shallow clonejava.lang.StringgetSequence()Get sequence WARNING: Sequence is always according to coding strand.java.lang.StringgetSequence(Marker marker)Get sequence intersecting 'marker' WARNING: Sequence is always according to coding strand.booleanhasSequence()Do we have a sequence for this exon?voidserializeParse(MarkerSerializer markerSerializer)Parse a line from a serialized filejava.lang.StringserializeSave(MarkerSerializer markerSerializer)Create a string to serialize to a filevoidsetSequence(java.lang.String sequence)Set sequence WARNING: Sequence is always according to coding strand.java.lang.StringtoString()Markerunion(Marker m)Union of two markers-
Methods 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, isAdjustIfParentDoesNotInclude, isDeferredAnalysis, isShowWarningIfParentDoesNotInclude, minus, query, query, readTxt, shouldApply, variantEffect, variantEffectNonRef
-
Methods 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
-
-
-
-
Method Detail
-
applyDel
protected void applyDel(Variant variant, MarkerSeq markerSeq)
Apply a change type deletion (update sequence)
-
applyDup
protected void applyDup(Variant variant, MarkerSeq markerSeq)
Apply a change type duplication (update sequence)
-
applyIns
protected void applyIns(Variant variant, MarkerSeq markerSeq)
Apply a change type insertion (update sequence)
-
applyMnp
protected void applyMnp(Variant variant, MarkerSeq markerSeq)
Apply a change type MNP (update sequence)
-
applySnp
protected void applySnp(Variant variant, MarkerSeq markerSeq)
Apply a change type SNP (update sequence)
-
basesAt
public java.lang.String basesAt(int index, int len)Base in this marker at position 'index' (relative to marker start)
-
basesAtPos
public java.lang.String basesAtPos(int pos, int len)Base at position 'pos' (genomic coordinates)
-
cloneShallow
public MarkerSeq cloneShallow()
Description copied from class:MarkerPerform a shallow clone- Overrides:
cloneShallowin classMarker
-
getSequence
public java.lang.String getSequence()
Get sequence WARNING: Sequence is always according to coding strand. E.g. if the strand is negative, the sequence returned by this method is the reverse-WC that you see in the reference genome
-
getSequence
public java.lang.String getSequence(Marker marker)
Get sequence intersecting 'marker' WARNING: Sequence is always according to coding strand. E.g. if the strand is negative, the sequence returned by this method is the reverse-WC that you see in the reference genome
-
hasSequence
public boolean hasSequence()
Do we have a sequence for this exon?
-
serializeParse
public void serializeParse(MarkerSerializer markerSerializer)
Parse a line from a serialized file- Specified by:
serializeParsein interfaceTxtSerializable- Overrides:
serializeParsein classMarker
-
serializeSave
public java.lang.String serializeSave(MarkerSerializer markerSerializer)
Create a string to serialize to a file- Specified by:
serializeSavein interfaceTxtSerializable- Overrides:
serializeSavein classMarker
-
setSequence
public void setSequence(java.lang.String sequence)
Set sequence WARNING: Sequence is always according to coding strand. So use you should use setSequence( GprSeq.reverseWc( seq ) ) if the marker is in negative strand.
-
-