Skip to content

Commit

Permalink
Fixing CADD annotation (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Feb 1, 2022
1 parent 4bf8445 commit 640204d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion HISTORY.rst
Expand Up @@ -41,6 +41,7 @@ End-User Summary
- Fixing issue with multiple added variants (#283)
- Implementing several usability improvements for clinvar submission editor (#286)
- Make clinvar UI work with many annotations (#302)
- Fixing CADD annotation (#319)

Full Change List
================
Expand Down Expand Up @@ -82,9 +83,10 @@ Full Change List
- Adding shortcut buttons to phenotype annotation (#289)
- Fixing issue with multiple added variants (#283)
- Make clinvar UI work with many annotations by making it load them lazily for one case at a time (#302)
- Implementing several usability improvements for clinvar submission editor (#286).
- Implementing several usability improvements for clinvar submission editor (#286)
- Adding CI builds for Python 3.10 in Github actions, bumping numpy/pandas dependencies.
Dropping support for Python 3.7.
- Fixing CADD annotation (#319)

-------
v0.23.9
Expand Down
3 changes: 1 addition & 2 deletions variants/models.py
Expand Up @@ -2753,13 +2753,12 @@ def score(self):
uncached = uncached[: settings.VARFISH_CADD_MAX_VARS]

# TODO: properly test
cadd_release = "%s-%s" % (self.genomebuild, settings.VARFISH_CADD_REST_API_CADD_VERSION)
try:
res = requests.post(
settings.VARFISH_CADD_REST_API_URL + "/annotate/",
json={
"genome_build": self.genomebuild,
"cadd_release": cadd_release,
"cadd_release": settings.VARFISH_CADD_REST_API_CADD_VERSION,
"variant": ["-".join(map(str, var)) for var in uncached],
},
)
Expand Down

0 comments on commit 640204d

Please sign in to comment.