You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a list of kbmatches, checks the variant_texts table in IPR-API to get any
397
+
pre-prepared text for this variant for inclusion in the analyst comments.
398
+
Matches on template, project and variant_name. Matches on project, disease and template
399
+
if possible. If no match is found and the related include_nonspecific arg is True,
400
+
uses a result with no specified value for that field if a result is found (eg
401
+
a result with no cancer type specified, if it exists).
402
+
403
+
Params:
404
+
ipr_conn: connection to the ipr db
405
+
matches: list of kbmatches which will be included in the report
406
+
disease_name: str, eg 'colorectal cancer'
407
+
project_name: str, eg TEST or pog
408
+
report_type: str, eg genomic or rapid
409
+
include_nonspecific_disease: bool - true if variant texts that don't explicitly
410
+
name a cancer type should be included
411
+
include_nonspecific_project: bool - true if variant texts that don't explicitly
412
+
name a project should be included
413
+
include_nonspecific_template: bool - true if variant texts that don't explicitly
414
+
name a project should be included
415
+
Returns:
416
+
html-formatted string
417
+
"""
418
+
output_header="<h3>The comments below were automatically drawn from curated text stored in IPR for variant matches in this report, and have not been manually reviewed</h3>"
419
+
no_comments_found_output="No comments found in IPR for variants in this report"
420
+
output= []
421
+
# get the list of variants to check for custom text for
0 commit comments