We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be2fb95 + 01c9503 commit 3ac7becCopy full SHA for 3ac7bec
1 file changed
malariagen_data/anoph/genome_features.py
@@ -552,5 +552,5 @@ def _transcript_to_parent_name(self, transcript):
552
return self._gene_name_overrides[parent_id]
553
except KeyError:
554
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)
+ # Try to access gene name attribute, fall back to "ID" if not present.
+ return rec_parent.get(self._gff_gene_name_attribute, parent_id)
0 commit comments