Package org.snpeff.binseq
Class DnaSequencePe
java.lang.Object
org.snpeff.binseq.BinarySequence
org.snpeff.binseq.DnaSequencePe
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<BinarySequence>
Pair end DNA sequence (binary packed)
It consists of 2 DNA sequences separated by a gap.
- Author:
- pcingola
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDnaSequencePe(String seqStr) DnaSequencePe(String seqStr1, String seqStr2, int gap) -
Method Summary
Modifier and TypeMethodDescriptionintintgetCode(int index) Return the code at position 'index'getCoder()Get sequence encoder & decoderintgetGap()getSeq1()getSeq2()Get the sequence as a StringinthashCode()intintLen(int len) Calculate the length of a sequenceintlength()Get sequence lengthread(DataInputStream dataInStream) Read data in binary formatprotected voidreadDataStream(DataInputStream dataInStream) Read data in binary formatReverse Watson-Cricks complementvoidSet sequence from a stringvoidsetGap(int gap) toString()voidwrite(DataOutputStream dataOutStream) Write data in binary formatMethods inherited from class org.snpeff.binseq.BinarySequence
clone, getBase, overlap, setQuality
-
Field Details
-
coder
-
-
Constructor Details
-
DnaSequencePe
-
DnaSequencePe
-
-
Method Details
-
compareTo
-
getCode
public int getCode(int index) Description copied from class:BinarySequenceReturn the code at position 'index'- Specified by:
getCodein classBinarySequence
-
getCoder
Description copied from class:BinarySequenceGet sequence encoder & decoder- Specified by:
getCoderin classBinarySequence
-
getGap
public int getGap() -
getSeq1
-
getSeq2
-
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
Read data in binary format- Specified by:
readin classBinarySequence- Parameters:
dataOutStream-- Throws:
IOException
-
readDataStream
Read data in binary format- Specified by:
readDataStreamin classBinarySequence- Parameters:
dataOutStream-- Throws:
IOException
-
reverseWc
Description copied from class:BinarySequenceReverse Watson-Cricks complement- Specified by:
reverseWcin classBinarySequence
-
set
Description copied from class:BinarySequenceSet sequence from a string- Specified by:
setin classBinarySequence
-
setGap
public void setGap(int gap) -
toString
-
write
Write data in binary format- Specified by:
writein classBinarySequence- Parameters:
dataOutStream-- Throws:
IOException
-