Package org.snpeff.binseq
Class DnaSequencePe
- java.lang.Object
-
- org.snpeff.binseq.BinarySequence
-
- org.snpeff.binseq.DnaSequencePe
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<BinarySequence>
public class DnaSequencePe extends BinarySequence
Pair end DNA sequence (binary packed) It consists of 2 DNA sequences separated by a gap.- Author:
- pcingola
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DnaSequencePe(java.lang.String seqStr)DnaSequencePe(java.lang.String seqStr1, java.lang.String seqStr2, int gap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BinarySequence o)intgetCode(int index)Return the code at position 'index'CodergetCoder()Get sequence encoder & decoderintgetGap()DnaSequencegetSeq1()DnaSequencegetSeq2()java.lang.StringgetSequence()Get the sequence as a StringinthashCode()intintLen(int len)Calculate the length of a sequenceintlength()Get sequence lengthDnaSequencePeread(java.io.DataInputStream dataInStream)Read data in binary formatprotected voidreadDataStream(java.io.DataInputStream dataInStream)Read data in binary formatBinarySequencereverseWc()Reverse Watson-Cricks complementvoidset(java.lang.String seqStr)Set sequence from a stringvoidsetGap(int gap)java.lang.StringtoString()voidwrite(java.io.DataOutputStream dataOutStream)Write data in binary format-
Methods inherited from class org.snpeff.binseq.BinarySequence
clone, getBase, overlap, setQuality
-
-
-
-
Field Detail
-
coder
public static final Coder coder
-
-
Method Detail
-
compareTo
public int compareTo(BinarySequence o)
-
getCode
public int getCode(int index)
Description copied from class:BinarySequenceReturn the code at position 'index'- Specified by:
getCodein classBinarySequence
-
getCoder
public Coder getCoder()
Description copied from class:BinarySequenceGet sequence encoder & decoder- Specified by:
getCoderin classBinarySequence
-
getGap
public int getGap()
-
getSeq1
public DnaSequence getSeq1()
-
getSeq2
public DnaSequence getSeq2()
-
getSequence
public java.lang.String getSequence()
Description copied from class:BinarySequenceGet the sequence as a String- Specified by:
getSequencein classBinarySequence
-
hashCode
public int hashCode()
- Specified by:
hashCodein classBinarySequence
-
intLen
public int intLen(int len)
Calculate the length of a sequence- Parameters:
len-- Returns:
-
length
public int length()
Description copied from class:BinarySequenceGet sequence length- Specified by:
lengthin classBinarySequence
-
read
public DnaSequencePe read(java.io.DataInputStream dataInStream) throws java.io.IOException
Read data in binary format- Specified by:
readin classBinarySequence- Parameters:
dataOutStream-- Throws:
java.io.IOException
-
readDataStream
protected void readDataStream(java.io.DataInputStream dataInStream) throws java.io.IOExceptionRead data in binary format- Specified by:
readDataStreamin classBinarySequence- Parameters:
dataOutStream-- Throws:
java.io.IOException
-
reverseWc
public BinarySequence reverseWc()
Description copied from class:BinarySequenceReverse Watson-Cricks complement- Specified by:
reverseWcin classBinarySequence
-
set
public void set(java.lang.String seqStr)
Description copied from class:BinarySequenceSet sequence from a string- Specified by:
setin classBinarySequence
-
setGap
public void setGap(int gap)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
write
public void write(java.io.DataOutputStream dataOutStream) throws java.io.IOExceptionWrite data in binary format- Specified by:
writein classBinarySequence- Parameters:
dataOutStream-- Throws:
java.io.IOException
-
-