import sys
import pysam
from array import array
-from commoncode import getReverseComplement
+from commoncode import getReverseComplement, isSpliceEntry
currentRDSVersion = "3.0"
-
class ReadDatasetError(Exception):
pass
-class BamReadDataset():
+class ReadDataset():
""" Class for storing reads from experiments. Assumes that custom scripts
will translate incoming data into a format that can be inserted into the
class using the insert* methods. Default class subtype ('DNA') includes
newrow["chrom"] = chrom
if withPairID:
- newrow["pairID"] = pairID
+ newrow["pairID"] = pairReadSuffix[1:]
try:
resultsDict[dictKey].append(newrow)
return sense
-def isSpliceEntry(cigarTupleList):
- isSplice = False
- for operation,length in cigarTupleList:
- if operation == 3:
- isSplice = True
- break
-
- return isSplice
-
-
def getSpliceRightStart(start, cigarTupleList):
offset = 0