Skip to content

Commit

Permalink
fixed UTR display
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdu committed Jul 18, 2019
1 parent e87f365 commit 61b6387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gff.py
Expand Up @@ -235,6 +235,7 @@ def get_features(self):

if father == mother:
exons.append((r.seqid, r.start, r.end, 'exon', parents[r.attrs.PARENT]))

else:
if exons:
exons = sorted(exons, key=lambda x: x[2])
Expand Down
4 changes: 2 additions & 2 deletions src/widgets.py
Expand Up @@ -1183,9 +1183,9 @@ def showMarker(self, marker):
# return

if feature_maps[marker] == 3:
sql = "SELECT target FROM location WHERE reptype=%s AND (feature=3 OR feature=5)"
sql = "SELECT target FROM location WHERE reptype={} AND (feature=3 OR feature=5)".format(repeat_types[table])
else:
sql = "SELECT target FROM location WHERE reptype=%s AND feature=%s" % (repeat_types[table], feature_maps[marker])
sql = "SELECT target FROM location WHERE reptype={} AND feature={}".format(repeat_types[table], feature_maps[marker])

#data = self.db.get_column(sql)
#if not data:
Expand Down

0 comments on commit 61b6387

Please sign in to comment.