Skip to content

Commit

Permalink
fix to #1150
Browse files Browse the repository at this point in the history
  • Loading branch information
pinin4fjords authored Jan 4, 2024
1 parent b4c6c69 commit 05cc397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/tx2gene.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def discover_transcript_attribute(gtf_file: str, transcripts: Set[str]) -> str:
attributes_str = cols[8]
attributes = dict(re.findall(r'(\S+) "(.*?)(?<!\\)";', attributes_str))

votes.update(key for key, value in attributes.items())
votes.update(key for key, value in attributes.items() if value in transcripts)

if not votes:
# Log a warning if no matching attribute is found
Expand Down

0 comments on commit 05cc397

Please sign in to comment.