Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tjakobi committed Aug 3, 2022
1 parent 044ac68 commit 87c0390
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions circtools/detect/Circ_nonCirc_Exon_Match.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def modifyExon_id(self, exon_gtf_file):
# if gff:
# custom_exon_id = ';custom_exon_id'+'='+feature.attr['transcript_id']+':'+str(exon_number[feature.attr['transcript_id']])
# else:
custom_exon_id = '; custom_exon_id' + ' ' + '"' + feature.attr['transcript_id'] + ':' + str(
exon_number[feature.attr['transcript_id']]) + '"'
custom_exon_id = '; custom_exon_id' + ' ' + feature.attr['transcript_id'] + ':' + str(
exon_number[feature.attr['transcript_id']])
except KeyError:
# Try assume gff format
try:
Expand Down Expand Up @@ -219,6 +219,7 @@ def getAdjacent(self, custom_exon_id, start=True, reverse=False):
exon_number = int(custom_exon_id.split(':')[1]) + 1
else:
if start:
print(custom_exon_id)
exon_number = int(custom_exon_id.split(':')[1]) - 1
else:
exon_number = int(custom_exon_id.split(':')[1]) + 1
Expand Down

0 comments on commit 87c0390

Please sign in to comment.