Skip to content

Commit

Permalink
Potential fix for #196
Browse files Browse the repository at this point in the history
  • Loading branch information
lucventurini committed Jul 19, 2019
1 parent d8bde3a commit 8eb756f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Mikado/preparation/annotation_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def load_from_gtf(shelf_name,
exon_lines[row.transcript]["strand_specific"] = strand_specific
exon_lines[row.transcript]["is_reference"] = is_reference
if "exon_number" in exon_lines[row.transcript]["attributes"]:
del exon_lines[row.id]["attributes"]["exon_number"]
del exon_lines[row.transcript]["attributes"]["exon_number"]
continue

if row.is_exon is False or (row.is_cds is True and strip_cds is True):
Expand All @@ -545,10 +545,10 @@ def load_from_gtf(shelf_name,
exon_lines[row.transcript]["strand"] = row.strand
exon_lines[row.transcript]["exon"] = []
exon_lines[row.transcript]["attributes"] = row.attributes.copy()
exon_lines[row.id]["tid"] = row.transcript
exon_lines[row.id]["parent"] = "{}.gene".format(row.id)
exon_lines[row.id]["strand_specific"] = strand_specific
exon_lines[row.id]["is_reference"] = is_reference
exon_lines[row.transcript]["tid"] = row.transcript
exon_lines[row.transcript]["parent"] = "{}.gene".format(row.id)
exon_lines[row.transcript]["strand_specific"] = strand_specific
exon_lines[row.transcript]["is_reference"] = is_reference
else:
if row.transcript in to_ignore:
continue
Expand Down

0 comments on commit 8eb756f

Please sign in to comment.