diff options
author | hakangunturkun | 2020-09-07 22:35:17 -0500 |
---|---|---|
committer | hakangunturkun | 2020-09-07 22:35:17 -0500 |
commit | a637889f13c2151303998e411dc81f3196a974f6 (patch) | |
tree | f593bb635e759889109504405d2abc3e31af9008 /utility/process_gwas.py | |
parent | 35179dec9aa1926102ad2ddbbd5b8ad2882be92e (diff) | |
download | genecup-a637889f13c2151303998e411dc81f3196a974f6.tar.gz |
last version
Diffstat (limited to 'utility/process_gwas.py')
-rw-r--r-- | utility/process_gwas.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utility/process_gwas.py b/utility/process_gwas.py index eba59c0..2a2fbcc 100644 --- a/utility/process_gwas.py +++ b/utility/process_gwas.py @@ -13,7 +13,7 @@ with open("./addiction_gwas.tsv", "r") as f: if re.search('cocaine', trait, flags=re.I): key1="addiction" key2="cocaine" - elif re.search('smoking|congestive|nicotine', trait, flags=re.I): + elif re.search('smoking|congestive|nicotine|obstructive', trait, flags=re.I): key1="addiction" key2="nicotine" elif re.search('opioid|morphin|heroin|methadone', trait, flags=re.I): @@ -22,16 +22,16 @@ with open("./addiction_gwas.tsv", "r") as f: elif re.search('amphetam', trait, flags=re.I): key1="addiction" key2="amphetamine" - elif re.search('canabis', trait, flags=re.I): + elif re.search('cannabis', trait, flags=re.I): key1="addiction" - key2="canabis" + key2="cannabis" elif re.search('food', trait, flags=re.I): key1="addiction" key2="food" elif re.search('alcohol', trait, flags=re.I): key1="addiction" key2="alcohol" - elif re.search('addiction|abuse', trait, flags=re.I): + elif re.search('addiction|abuse|dependence', trait, flags=re.I): key1="addiction" key2="addiction" else: |