Spaces:
Sleeping
Sleeping
wzkariampuzha
commited on
Commit
•
dcbde5e
1
Parent(s):
f51313e
Update epi_pipeline.py
Browse files- epi_pipeline.py +2 -2
epi_pipeline.py
CHANGED
@@ -73,7 +73,7 @@ def search_getAbs(searchterm_list:Union[List[str],List[int],str], maxResults:int
|
|
73 |
query = term[:-3]
|
74 |
|
75 |
## get pmid results from searching for disease name through PubMed API
|
76 |
-
url = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term='+query
|
77 |
r = requests.get(url)
|
78 |
root = ET.fromstring(r.content)
|
79 |
|
@@ -171,7 +171,7 @@ def streamlit_getAbs(searchterm_list:Union[List[str],List[int],str], maxResults:
|
|
171 |
term += word + '%20'
|
172 |
query = term[:-3]
|
173 |
#dividing by the len( of the search_ter
|
174 |
-
url = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term='+query
|
175 |
r = requests.get(url)
|
176 |
root = ET.fromstring(r.content)
|
177 |
|
|
|
73 |
query = term[:-3]
|
74 |
|
75 |
## get pmid results from searching for disease name through PubMed API
|
76 |
+
url = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term='+query#+"&retmax="+str(int(maxResults/len(searchterm_list)))
|
77 |
r = requests.get(url)
|
78 |
root = ET.fromstring(r.content)
|
79 |
|
|
|
171 |
term += word + '%20'
|
172 |
query = term[:-3]
|
173 |
#dividing by the len( of the search_ter
|
174 |
+
url = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term='+query#+"&retmax="+str(int(maxResults/len(searchterm_list)))
|
175 |
r = requests.get(url)
|
176 |
root = ET.fromstring(r.content)
|
177 |
|