projects
/
erange.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rewrite of findall.py and MakeRdsFromBam to fix bugs resulting from poor initial...
[erange.git]
/
distalPairs.py
diff --git
a/distalPairs.py
b/distalPairs.py
index be403109110c3fb40f7bba831f6c2ea48e496536..dc836501c6b2b98f53b5a4a84ce8778c9673a1a7 100755
(executable)
--- a/
distalPairs.py
+++ b/
distalPairs.py
@@
-147,13
+147,15
@@
def addSplicesToUniqReads(RDS, uniqDict):
for readID in splicesDict:
theRead = splicesDict[readID]
read0 = theRead[0]
for readID in splicesDict:
theRead = splicesDict[readID]
read0 = theRead[0]
- del read0[1]
+ read0["start"] = read0["startL"]
+ del read0["stopL"]
try:
uniqDict[readID].append(read0)
except:
if len(theRead) == 4:
read2 = theRead[2]
try:
uniqDict[readID].append(read0)
except:
if len(theRead) == 4:
read2 = theRead[2]
- del read2[1]
+ read2["start"] = read2["startL"]
+ del read2["stopL"]
uniqDict[readID] = [read0,read2]
uniqDict[readID] = [read0,read2]