blob: 7841e54a1330bae32d336d6db9c034144c9a3191 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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_sub = datf[datf['DISEASE/TRAIT'].str.contains('addiction')]
print(datf_sub)
#datf2 = pd.read_csv('gwas_catalog_v1.0.2-associations_e100_r2021-05-05.tsv', sep='\t')
#print(datf2.shape)
|