Skip to content

Commit 6e4fe3c

Browse files
committed
Merge branch 'master' of github.com:dieterich-lab/DCC
2 parents 85df4b3 + 3b68584 commit 6e4fe3c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

DCC/findcircRNA.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def printcircline(self, Chim_junc, output):
3131
outfile = open(output, 'w')
3232
for line in junctionfile:
3333
L = line.split('\t')
34+
if L[0] == "chr_donorA":
35+
continue
3436
if int(L[6]) >= 0 and L[0] == L[3] and L[2] == L[5] and (
3537
(L[2] == '-' and int(L[4]) > int(L[1]) and self.minL < (int(L[4]) - int(L[1])) < self.maxL) or (
3638
L[2] == '+' and int(L[1]) > int(L[4]) and self.minL < (
@@ -159,7 +161,8 @@ def findcirc(self, Chim_junc, output, strand=True):
159161
if len(L) < 14:
160162
print ("WARNING: File " + str(Chim_junc) + ", line " + str(linecnt) + " does not contain all features.")
161163
print ("WARNING: " + str(Chim_junc) + " is probably corrupt.")
162-
164+
if L[0] == "chr_donorA":
165+
continue
163166
if int(L[6]) >= 0 and L[0] == L[3] and L[2] == L[5] and (
164167
(L[2] == '-' and int(L[4]) > int(L[1]) and self.minL < (int(L[4]) - int(L[1])) < self.maxL) or (
165168
L[2] == '+' and int(L[1]) > int(L[4]) and self.minL < (

DCC/fix2chimera.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def modify_junctiontype(junctiontype):
5151
line = line.rstrip()
5252
line_split = line.split('\t')
5353

54+
if line_split[0] == "chr_donorA":
55+
continue
5456
# check if the row has all fields
5557
if len(line_split) < 14:
5658
print ("WARNING: File " + str(chimeric_junction_mate2) + ", line " + str(linecnt)

0 commit comments

Comments
 (0)