diff --git a/code/reasoningtool/kg-construction/QueryNCBIeUtils.py b/code/reasoningtool/kg-construction/QueryNCBIeUtils.py index 2f209d973..9df0732fd 100644 --- a/code/reasoningtool/kg-construction/QueryNCBIeUtils.py +++ b/code/reasoningtool/kg-construction/QueryNCBIeUtils.py @@ -348,7 +348,7 @@ def normalized_google_distance(mesh1_str, mesh2_str, mesh1=True, mesh2=True): mesh2=mesh2_str_decorated)) ni = QueryNCBIeUtils.get_pubmed_hits_count('{mesh1}'.format(mesh1=mesh1_str_decorated)) nj = QueryNCBIeUtils.get_pubmed_hits_count('{mesh2}'.format(mesh2=mesh2_str_decorated)) - N = 2.7e+7 * 20 # from PubMed home page there are 27 million articles; avg 20 MeSH terms per article + N = 3.5e+7 * 20 # From PubMed home page there are 35 million articles (based on the information on https://pubmed.ncbi.nlm.nih.gov/ on 08/09/2023); avg 20 MeSH terms per article if ni is None or nj is None or nij is None: return math.nan if ni == 0 or nj == 0 or nij == 0: