Skip to content

Commit

Permalink
Merge pull request #1151 from nf-core/fix_gtf_flexibility
Browse files Browse the repository at this point in the history
fix to #1150: reinstate conditional
  • Loading branch information
drpatelh authored Jan 4, 2024
2 parents b4c6c69 + 456b11b commit cd3a4f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Special thanks to the following for their contributions to the release:
- [PR #1144](https://github.com/nf-core/rnaseq/pull/1144) - Interface to kmer size for pseudoaligners
- [PR #1149](https://github.com/nf-core/rnaseq/pull/1149) - Fix and patch version commands for Fastp, FastQC and UMI-tools modules ([#1103](https://github.com/nf-core/rnaseq/issues/1103))
- [PR #1150](https://github.com/nf-core/rnaseq/pull/1150) - Be more flexible on attribute values in GTFs ([#1132](https://github.com/nf-core/rnaseq/issues/1132))
- [PR #1151](https://github.com/nf-core/rnaseq/pull/1151) - fix to #1150: reinstate conditional

### Parameters

Expand Down
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 cd3a4f5

Please sign in to comment.