Skip to content

Commit 05cc397

Browse files
authored
fix to #1150
1 parent b4c6c69 commit 05cc397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/tx2gene.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def discover_transcript_attribute(gtf_file: str, transcripts: Set[str]) -> str:
6262
attributes_str = cols[8]
6363
attributes = dict(re.findall(r'(\S+) "(.*?)(?<!\\)";', attributes_str))
6464

65-
votes.update(key for key, value in attributes.items())
65+
votes.update(key for key, value in attributes.items() if value in transcripts)
6666

6767
if not votes:
6868
# Log a warning if no matching attribute is found

0 commit comments

Comments
 (0)