Skip to content

Comments

Fix hardcoded gene type and name attribute in test_plot_genes_with_ge…#875

Open
31puneet wants to merge 3 commits intomalariagen:masterfrom
31puneet:fix/814-genome-features-gene-type-af1
Open

Fix hardcoded gene type and name attribute in test_plot_genes_with_ge…#875
31puneet wants to merge 3 commits intomalariagen:masterfrom
31puneet:fix/814-genome-features-gene-type-af1

Conversation

@31puneet
Copy link

Fixes #814

The test was querying type == 'gene' and accessing ["Name"] directly, both hardcoded for ag3. For af1 and adir1, the gene type is protein_coding_gene and the name attribute is Note, so the query always returned empty — meaning genes were never actually found for af1/adir1 and the whole gene labels block was silently skipped.

Changed:

  • "type == 'gene'"f"type == '{api._gff_gene_type}'"
  • ["Name"][api._gff_gene_name_attribute]

After the fix, genes are correctly found for af1 and adir1, and plot_genes() with gene labels is now actually tested for all datasets:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Genome features doesn't seem to find genes in Af1

1 participant