aboutsummaryrefslogtreecommitdiff
path: root/utility/create_gwas_used.py
diff options
context:
space:
mode:
Diffstat (limited to 'utility/create_gwas_used.py')
-rw-r--r--utility/create_gwas_used.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/utility/create_gwas_used.py b/utility/create_gwas_used.py
new file mode 100644
index 0000000..ea0bf0b
--- /dev/null
+++ b/utility/create_gwas_used.py
@@ -0,0 +1,4 @@
+import pandas as pd
+col_list = ['PUBMEDID', 'DISEASE/TRAIT', 'REPORTED GENE(S)', 'MAPPED_GENE', 'MAPPED_TRAIT', 'P-VALUE', 'SNPS']
+datf = pd.read_csv('./gwas_catalog_v1.0.2-associations_e100_r2021-05-05.tsv', sep='\t', usecols=col_list)
+datf.to_csv('./gwas_used.csv', sep='\t')