aboutsummaryrefslogtreecommitdiff
path: root/ncbi/dbsnp/ncbiutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'ncbi/dbsnp/ncbiutils.py')
-rw-r--r--[-rwxr-xr-x]ncbi/dbsnp/ncbiutils.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/ncbi/dbsnp/ncbiutils.py b/ncbi/dbsnp/ncbiutils.py
index 8fb998b..b3c199a 100755..100644
--- a/ncbi/dbsnp/ncbiutils.py
+++ b/ncbi/dbsnp/ncbiutils.py
@@ -10,18 +10,9 @@ def db_query(**kwargs):
for key, value in kwargs.items():
args.append(key+"="+str(value))
qstring = "&".join(args)
- print(qstring)
resp = requests.get(BASE_URL + qstring)
if resp.status_code == 200:
results = resp.json()
return(results)
else:
- print("You've encountered an error and we can't return your results")
-
-def main():
- results = db_query(db="snp", term="snp_pubmed_cited[sb]", retmax=200000, retstart=1000, retmode="json")
- print(results)
- return()
-
-if __name__ == '__main__':
- main() \ No newline at end of file
+ print("You've encountered an error and we can't return your results") \ No newline at end of file