Skip to content

Commit 3ac7bec

Browse files
authored
Merge pull request #887 from 31puneet/fix/883-transcript-parent-name-attribute
fix: use _gff_gene_name_attribute in _transcript_to_parent_name (#883)
2 parents be2fb95 + 01c9503 commit 3ac7bec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

malariagen_data/anoph/genome_features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,5 +552,5 @@ def _transcript_to_parent_name(self, transcript):
552552
return self._gene_name_overrides[parent_id]
553553
except KeyError:
554554
rec_parent = df_genome_features.loc[parent_id]
555-
# Try to access "Name" attribute, fall back to "ID" if not present.
556-
return rec_parent.get("Name", parent_id)
555+
# Try to access gene name attribute, fall back to "ID" if not present.
556+
return rec_parent.get(self._gff_gene_name_attribute, parent_id)

0 commit comments

Comments
 (0)