Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dieterich-lab/DCC
Browse files Browse the repository at this point in the history
  • Loading branch information
tjakobi committed Jul 9, 2020
2 parents 85df4b3 + 3b68584 commit 6e4fe3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DCC/findcircRNA.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def printcircline(self, Chim_junc, output):
outfile = open(output, 'w')
for line in junctionfile:
L = line.split('\t')
if L[0] == "chr_donorA":
continue
if int(L[6]) >= 0 and L[0] == L[3] and L[2] == L[5] and (
(L[2] == '-' and int(L[4]) > int(L[1]) and self.minL < (int(L[4]) - int(L[1])) < self.maxL) or (
L[2] == '+' and int(L[1]) > int(L[4]) and self.minL < (
Expand Down Expand Up @@ -159,7 +161,8 @@ def findcirc(self, Chim_junc, output, strand=True):
if len(L) < 14:
print ("WARNING: File " + str(Chim_junc) + ", line " + str(linecnt) + " does not contain all features.")
print ("WARNING: " + str(Chim_junc) + " is probably corrupt.")

if L[0] == "chr_donorA":
continue
if int(L[6]) >= 0 and L[0] == L[3] and L[2] == L[5] and (
(L[2] == '-' and int(L[4]) > int(L[1]) and self.minL < (int(L[4]) - int(L[1])) < self.maxL) or (
L[2] == '+' and int(L[1]) > int(L[4]) and self.minL < (
Expand Down
2 changes: 2 additions & 0 deletions DCC/fix2chimera.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def modify_junctiontype(junctiontype):
line = line.rstrip()
line_split = line.split('\t')

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

0 comments on commit 6e4fe3c

Please sign in to comment.