diff options
author | Hao Chen | 2019-05-17 19:08:21 -0500 |
---|---|---|
committer | Hao Chen | 2019-05-17 19:08:21 -0500 |
commit | a6376a94e137eea0e0d326d6524fe9c2177b1b34 (patch) | |
tree | d4e9f3ed40f9a24925e943a7c9b961680f30ebd5 | |
parent | 7ca139dfe40b70db4f553d09b7010712c33207fe (diff) | |
download | genecup-a6376a94e137eea0e0d326d6524fe9c2177b1b34.tar.gz |
sep the keywords out
-rw-r--r-- | ratspub.png | bin | 0 -> 257828 bytes | |||
-rwxr-xr-x | ratspub.py | 11 | ||||
-rw-r--r-- | ratspub_keywords.py | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/ratspub.png b/ratspub.png Binary files differnew file mode 100644 index 0000000..345e40a --- /dev/null +++ b/ratspub.png @@ -2,11 +2,10 @@ from nltk.tokenize import sent_tokenize import os import re -import ratspub_keywords +from ratspub_keywords import * global function_d, brain_d, drug_d, addiction_d, brain_query_term, pubmed_path -pubmed_path="/media/hao/2d554499-6c5b-462d-85f3-5c49b25f4ac8/PubMed/Archive" ## turn dictionary (synonyms) to regular expression def undic(dic): @@ -79,3 +78,11 @@ n1=generate_nodes(addiction_d, 'addiction') n2=generate_nodes(drug_d, 'drug') n3=generate_nodes(brain_d, 'brain') default_nodes=n0+n1+n2+n3 + + +host= os.popen('hostname').read().strip() +if host=="x1": + pubmed_path="/run/media/hao/PubMed/Archive/" +elif host=="hchen3": + pubmed_path="/media/hao/2d554499-6c5b-462d-85f3-5c49b25f4ac8/PubMed/Archive" + diff --git a/ratspub_keywords.py b/ratspub_keywords.py index 6d63174..baeb5a0 100644 --- a/ratspub_keywords.py +++ b/ratspub_keywords.py @@ -1,7 +1,7 @@ addiction_d = {"reward":"reward|hedonic|incentive|intracranial self stimulation|ICSS|reinforcement|reinforcing|conditioned place preference|CPP|self administration|self administered|drug reinforced|operant|instrumental response", "aversion":"aversion|aversive|CTA|conditioned taste aversion", "withdrawal":"withdrawal", - "relapse":"relapse|reinstatement|craving|drug seeking|seeking", + "relapse":"relapse|reinstatement|craving|drug seeking|seeking|incubation", "sensitization":"sensitization", "addiction":"addiction|addictive|drug abuse|punishment|compulsive|escalation", "dependence":"dependence", |