broadinstitute / seqr

web-based analysis tool for rare disease genomics
GNU Affero General Public License v3.0
176 stars 89 forks source link

Cached gene breakdown does not work with compound hets in hail backend #4441

Closed hanars closed 3 weeks ago

hanars commented 4 weeks ago

Example: https://seqr.broadinstitute.org/variant_search/results/c840476daaaf3d9aa68008532baefa9f?page=2&sort=xpos

Error: https://console.cloud.google.com/errors/detail/CNeI_ricms-MAg;time=P30D;locations=global?project=seqr-project

Logs: https://console.cloud.google.com/logs/query;query=error_groups.id%3D%22CNeI_ricms-MAg%22%0AlogName:%22stdout%22%0Aresource.type%3D%22k8s_container%22%0Aresource.labels.pod_name%3D%22seqr-5d4f995fd8-2xqq6%22%0Aresource.labels.namespace_name%3D%22default%22%0Aresource.labels.cluster_name%3D%22seqr-cluster-prod%22%0Aresource.labels.location%3D%22us-central1-b%22%0Aresource.labels.container_name%3D%22seqr%22%0Aresource.labels.project_id%3D%22seqr-project%22;cursorTimestamp=2024-10-18T19:51:20.770972991Z;startTime=2024-10-18T19:21:50.770Z;endTime=2024-10-18T20:21:50.770Z?project=seqr-project

 File "/seqr/seqr/views/apis/variant_search_api.py", line 255, in get_variant_gene_breakdown
    gene_counts = get_variant_query_gene_counts(results_model, user=request.user)
  File "/seqr/seqr/utils/search/utils.py", line 302, in get_variant_query_gene_counts
    return _get_gene_aggs_for_cached_variants(previous_search_results)
  File "/seqr/seqr/utils/search/utils.py", line 325, in _get_gene_aggs_for_cached_variants
    )(var['transcripts'])
TypeError: list indices must be integers or slices, not str