Skip to content

Commit fdbc4b2

Browse files
authored
Merge branch 'master' into fix/814-genome-features-gene-type-af1
2 parents 80d9a0f + 3ac7bec commit fdbc4b2

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)