ClinVarCitation Count
Open
good first issue
- Dominant language
- Python
- Stars
- 30
- Forks
- 3
- Avg merge
- 9h 28m
- Merged PRs (30d)
- 42
Description
While talking to medical scientists, they said they often used how often a citation was used on ClinVar to prioritse what to read.
We have ClinVarCitation already, and could annotate counts in queryset, eg if you are already filtering via clinvar_variation_id
```
from django.db.models import Count
cvc_qs = (
ClinVarCitation.objects
.filter(clinvar_variation_id=1560)
.annotate(citation_count=Count("citation__clinvarcitation"))
)
Out[24]:
```
Or display in template as:
```
clinvar_citation.citation_count
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.