1
1
CODE TO GENERATE THE SQL AND LINKED-DATA VERSION OF LINKEDSPLS
2
2
Authors: Richard Boyce, Greg Gardner, Yifan Ning
3
- Date: 09/25/2015
3
+
4
+ Last updated Date: 09/25/2015
5
+
6
+ problematic labels:
7
+ spls/e8ae0b66-25de-41b1-8013-7f414bbb7568.xml
8
+
4
9
5
10
################################################################################
6
11
OVERVIEW
@@ -37,34 +42,49 @@ Update all linkedSPLs mappings by command below
37
42
$ ant linkedSPLs-update
38
43
39
44
Update piece by piece (recommended)
45
+ create schema linkedSPLs
46
+ modify db connection information in db-connection.properties (if creating linkedSPLs)
47
+ $ ant unzip-spls (if creating linkedSPLs)
48
+ $ ant createTableSchema (if creating linkedSPLs)
49
+ $ ant load-loincSection (if creating linkedSPLs)
50
+ $ ant loadDailymedSPLsToRDB (ensure tables are truncated)
40
51
41
52
$ ant load-FDAPreferredSubstanceToUNII
42
53
$ ant load-FDA_UNII_to_ChEBI
54
+ $ ant load-FDAPreferredSubstanceToRxNORM
55
+ $ ant load-FDA_SUBSTANCE_TO_DRUGBANK_BIO2RDF
56
+ $ ant load-SPLSetIDToRxNORM
57
+ $ ant load-RXNORM_NDFRT_INGRED_Table
58
+ $ ant load-FDA_EPC_Table
43
59
$ ant load-ChEBI_DRUGBANK_BIO2RDF
44
- $ ant loadDailymedSPLsToRDB
45
- $ ant load-DrOn_RXCUI_DRUG
46
- $ ant load-DrOn_RXCUI_INGREDIENT
47
- $ ant load-FDA_EPC_Table
60
+
48
61
$ ant load-FDAPharmgxTable
49
- $ ant load-FDAPharmgxTableToOntologyMap
50
- $ ant load-FDAPreferredSubstanceToRxNORM
51
- $ ant load-FDAPreferredSubstanceToRxNORM-restAPI
52
- $ ant load-FDA_SUBSTANCE_TO_DRUGBANK_BIO2RDF
53
- $ ant load-loincSection
62
+ $ ant load-FDAPharmgxTableToOntologyMap
63
+
64
+ $ ant load-DrOn_RXCUI_DRUG
65
+ $ ant load-DrOn_RXCUI_INGREDIENT
66
+
67
+ -- deprecated --
68
+ $ ant load-FDAPreferredSubstanceToRxNORM-restAPI
54
69
$ ant load-OMOPId-RXCUIs-from-OHDSI
55
- $ ant load-RXNORM_NDFRT_INGRED_Table
56
- $ ant load-SPLSetIDToRxNORM
57
70
58
71
59
72
60
73
################################################################################
61
74
PRE-REQUISITES (Download all source data before run any ant command)
62
75
################################################################################
63
76
77
+ Install python libs if deploy linkedSPLs on new environment
78
+
79
+ apt-get install libxml2-dev libxslt1-dev python-dev
80
+ apt-get install python-lxml
81
+ apt-get install python-feedparser
82
+
83
+
64
84
Download and organize all source data files in data folder
65
85
66
86
--------------------------------------------------------
67
- product label sections and mappings from Dailymed:
87
+ Dailymed ( product label sections, indexing and mappings)
68
88
--------------------------------------------------------
69
89
70
90
(1) dailymed-labels:
@@ -91,7 +111,7 @@ unzip XMLs to folder "pharmacologic_class_indexing_spl_files"
91
111
$ cd pharmacologic_class_indexing_spl_files; unzip \*.zip; rm \*.zip
92
112
93
113
--------------------------------------------------------
94
- FDA Preferred terms, UNIIs from FDA :
114
+ FDA ( Preferred terms, UNIIs) :
95
115
--------------------------------------------------------
96
116
97
117
Download from http://fdasis.nlm.nih.gov/srs/jsp/srs/uniiListDownload.jsp
@@ -109,47 +129,51 @@ Keep in directory LinkedSPLs-update/data/FDA
109
129
Edit LinkedSPLs-update/data-source.properties to reset FDA_UNII_NAMES and FDA_UNII_RECORDS
110
130
111
131
--------------------------------------------------------
112
- Drug bank Id from Drugbank :
132
+ Drugbank ( Drug bank Id) :
113
133
--------------------------------------------------------
114
134
115
135
Download from http://www.drugbank.ca/downloads
116
136
117
137
download drugbank.xml as drugbankX.X and keep in directory LinkedSPLs-update/data/DrugBank
118
138
119
139
--------------------------------------------------------
120
- UMLS:
140
+ UMLS (rxcui) :
121
141
--------------------------------------------------------
122
142
123
143
Download RXNORM mappings (full rxnorm) from UMLS at "http://www.nlm.nih.gov/research/umls/rxnorm/docs/rxnormfiles.html"
124
144
125
145
keep in directory: "LinkedSPLs-update/data/UMLS"
126
146
127
- --------------------------------------------------------
128
- umlsdbmi:
129
- --------------------------------------------------------
130
- Repository: https://bitbucket.org/uamsdbmi/dron
147
+ ------------------------------------------------------------------------
148
+ PharmagxTable && FDAPharmgxTableToOntologyMap
149
+ -----------------------------------------------------------------------
131
150
132
- DrOn to RxNorm and ChEBI
151
+ Get CSVs from solomon
152
+ biomarker-to-ontology-mapping.csv
153
+ genetic-biomarker-table-raw-import.csv
133
154
134
- Dron mapping file (dron-rxnorm.owl for drug and dron-ingredient.owl for ingredients) download from:
135
- https://bitbucket.org/uamsdbmi/dron/src
155
+ put at "LinkedSPLs-update/mappings/FDA-pharmacogenetic-info-mapping/"
136
156
137
- Install readland:
138
- $ sudo apt-get install redland-utils
157
+ Edit data-source.properties
158
+ ex.
159
+ BIOMARKER = mappings/FDA-pharmacogenetic-info-mapping/biomarker-to-ontology-mapping-07242015.xlsx
160
+ GENETIC= genetic-biomarker-table-update-07242015.csv
139
161
140
- Load dron mapping for ingredient into a triple store by:
141
- rdfproc -n dron parse dron-ingredient.owl
162
+ --------------------------------------------------------
163
+ umlsdbmi (DronId for drug and ingredient):
164
+ --------------------------------------------------------
165
+ Repository: https://bitbucket.org/uamsdbmi/dron
166
+ Code: https://bitbucket.org/uamsdbmi/dron/src
142
167
143
- rdfproc -c dron-ingredient query sparql - '
144
- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dron: <http://purl.obolibrary.org/obo/dron#> SELECT * WHERE { ?dron dron:DRON_00010000 ?rxcui. }' > dron-chebi-rxcui-ingredient.txt
168
+ Download repository from "https://bitbucket.org/uamsdbmi/dron/downloads"
145
169
170
+ unzip repository and then:
171
+ copy dron-rxnorm.owl at data/umasdbmi/dron-rxnorm.owl
172
+ copy dron-ingredient.owl at data/umasdbmi/dron-ingredient.owl
146
173
147
- Load dron mapping for drug product into triple store by:
148
- rdfproc -n dron-drug parse dron-rxnorm .owl
174
+ dron-rxnorm.owl for drug product
175
+ dron-ingredient .owl for active ingredients
149
176
150
- Mappings pulled using:
151
- rdfproc -c dron-drug query sparql - '
152
- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dron: <http://purl.obolibrary.org/obo/dron#> SELECT * WHERE { ?dron dron:DRON_00010000 ?rxcui. }' > dron-rxcui-drug.txt
153
177
154
178
------------------------------------------------------------------------
155
179
OMOP concept Id from OHDSI or query OMOP CDM V5 (GeriOMOP) by SQL query
0 commit comments