Skip to content

Commit 760e6c4

Browse files
committed
revise README for mappings for 01182017 update
1 parent 6bcebbe commit 760e6c4

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22
.DS_Store
33
*.lock
44
*.log
5-
linkedSPLs/LinkedSPLs-activeMoiety/activeMoietySub-in-rdf.xml
5+
linkedSPLs/LinkedSPLs-activeMoiety/activeMoietySub-in-rdf.xml
6+
LinkedSPLs-clinicalDrug/clinicalDrugSub-in-rdf.xml
7+
LinkedSPLs-update/data/
8+
LinkedSPLs-update/load-dailymed-spls/problematic-spls/
9+
LinkedSPLs-update/mappings/FDA-pharmacogenetic-info-mapping/cached-table-downloads/
10+
LinkedSPLs-update/mappings/PT-UNII-ChEBI-mapping/ChEBIJavaClient/bin/

linkedSPLs/LinkedSPLs-update/mappings/DrOn-to-RxNorm/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SELECT * WHERE { ?dron obo:DRON_00010000 ?rxcui. }' > dron-rxcui-drug.txt
2626

2727
(1) run python script to clean the data
2828

29-
$ python cleanData.py > cleaned_dron-to-chebi-and-rxnorm-07232014.txt
29+
$ python cleanData.py > cleaned_dron-to-chebi-and-rxnorm-<DATE>.txt
3030

3131
outputs: <dron_id>|<chebi_id>|<rxcui>
3232

@@ -63,7 +63,7 @@ CREATE TABLE `DrOn_ChEBI_RXCUI_INGREDIENT` (
6363

6464
$ mysql -u root -p --local-infile linkedSPLs
6565

66-
LOAD DATA LOCAL INFILE './cleaned_dron-to-chebi-and-rxnorm-07232014.txt' INTO TABLE `DrOn_ChEBI_RXCUI_DRUG` FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' (dron_id, ChEBI, rxcui);
66+
LOAD DATA LOCAL INFILE './cleaned_dron-to-chebi-and-rxnorm-<DATE>.txt' INTO TABLE `DrOn_ChEBI_RXCUI_DRUG` FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' (dron_id, ChEBI, rxcui);
6767

6868

6969
(4) get dron and drugbank mapping by query Mysql schema

linkedSPLs/LinkedSPLs-update/mappings/FDA-pharmacogenetic-info-mapping/README

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
TODO (4/04/2014)
2-
3-
- drop FDAPharmgxTable and then recreate and reload the table per the instructions in ../README
4-
5-
- drop FDAPharmgxTableToOntologyMap and then recreate and reload the table per the instructions in ../README
6-
7-
- revise the D2R mapping file to reflect changes to table's schema: 1) biomarker in FDAPharmgxTable is now a foreign key to HGNCGeneSymbol in FDAPharmgxTableToOntologyMap; 2) FDAString in FDAPharmgxTableToOntologyMap is now FDAReferencedSubgroup, 3) there are new therapeuticApplication instances that need to be mapped to NCIT
8-
9-
-----
10-
11-
Workflow (as of 04/04/2014):
1+
Workflow (as of 01/18/2017):
122

133
1) Data from the FDA's pharmacogenomic biomarker table
144
<http://www.fda.gov/Drugs/ScienceResearch/ResearchAreas/Pharmacogenetics/ucm083378.htm>

linkedSPLs/LinkedSPLs-update/mappings/PT-UNII-ChEBI-mapping/README

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ How to update mappings of ChEBI and FDA preferred term - Table: FDA_UNII_to_ChEB
66
mappings/PT-UNII-ChEBI-mapping/ChEBIJavaClient
77

88
Input: FDA prefered term
9-
Output: Mappings of UNII to ChEBI, save to UNIIToChEBI.txt (7601 by 06/10/2016)
10-
9+
Output: Mappings of UNII to ChEBI, save to UNIIToChEBI.txt
1110

11+
(7953 by 01/18/2017)
12+
(7601 by 06/10/2016)
1213

1314
--------------------------------------------------------------------------------
1415
Deprecated below - Overview
1516
--------------------------------------------------------------------------------
1617

1718
This folder has a mapping between FDA UNIIs and ChEBI PURLs created using the
1819
Python script and the NCBO Bioportal's SPARQL endpoint. The UNII entities
19-
and identifiers came from the FDA on 06/27/2014.
20+
and identifiers came from the FDA on 01/18/2017.
2021

2122
The script 'getChebiMappingsFromJSON.py' was ran to identify all
2223
entities in ChEBI as recorded in Bioportal with an uppercase label
@@ -32,40 +33,40 @@ Tip: backup mysql tables before truncate its
3233

3334
UPDATE FDAPreferredSubstanceToUNII
3435

35-
(1)download UNIIS 27Jun2014 Names.txt from repository swat-4-med-safety
36+
(1)download UNIIS_<DATE>_Names.txt from repository swat-4-med-safety
3637

3738
(2)slice data by linux shell command:
38-
cat ../Data_Source/FDA/UNIIS\ 27Jun2014\ Names.txt | cut -f 1,3 | sort > /PATH/TO/FDAPreferredSubstanceToUNII_10202014.txt
39-
output column 1 as preferred terms and synonymns, and column 3 as UNII to FDAPreferredSubstanceToUNII_10202014.txt
39+
cat ../Data_Source/FDA/UNIIS_<DATE>_Names.txt | cut -f 1,3 | sort > /PATH/TO/FDAPreferredSubstanceToUNII_<DATE>.txt
40+
output column 1 as preferred terms and synonymns, and column 3 as UNII to FDAPreferredSubstanceToUNII_<DATE>.txt
4041

41-
(3)import data in FDAPreferredSubstanceToUNII_10202014.txt to mysql table FDAPreferredSubstanceToUNII
42+
(3)import data in FDAPreferredSubstanceToUNII_<DATE>.txt to mysql table FDAPreferredSubstanceToUNII
4243

4344
command in shell:
4445
mysql -u root -p --local-infile linkedSPLs
45-
LOAD DATA LOCAL INFILE "/PATH/TO/FDAPreferredSubstanceToUNII_10202014.txt" INTO TABLE FDAPreferredSubstanceToUNII(PreferredSubstance, UNII);
46+
LOAD DATA LOCAL INFILE "/PATH/TO/FDAPreferredSubstanceToUNII_<DATE>.txt" INTO TABLE FDAPreferredSubstanceToUNII(PreferredSubstance, UNII);
4647

4748
UPDATE FDA_UNII_to_ChEBI
4849

4950
(1) run script 'getChebiMappingsFromJSON.py' to get mappings of of preferred term and ChEBI by command:
5051

51-
$ python getChebiMappingsFromJSON.py > UNIIToChEBI-10302014.txt
52+
$ python getChebiMappingsFromJSON.py > UNIIToChEBI-<DATE>.txt
5253

53-
(3)import data in UNIIToChEBI-10302014.txt to RDB table FDA_UNII_to_ChEBI
54+
(3)import data in UNIIToChEBI-<DATE>.txt to RDB table FDA_UNII_to_ChEBI
5455

5556
$ mysql -u root -p --local-infile linkedSPLs
5657

57-
LOAD DATA LOCAL INFILE "/PATH/TO/UNIIToChEBI-10302014.txt/FDA_UNII_to_ChEBI_10202014.txt" INTO TABLE FDA_UNII_to_ChEBI(PreferredSubstance, ChEBI);
58+
LOAD DATA LOCAL INFILE "/PATH/TO/UNIIToChEBI-<DATE>.txt/FDA_UNII_to_ChEBI_<DATE>.txt" INTO TABLE FDA_UNII_to_ChEBI(PreferredSubstance, ChEBI);
5859

5960
--------------------------------------------------------------------------------
6061
--How to merge original UNIIs data with UNIIs type including column SY, SN, CD
6162
--------------------------------------------------------------------------------
6263

6364
run the python script to merge:
6465

65-
$ python mergeUNIIsNamesWithRecords.py > mergedUNIIs-07282014.txt
66+
$ python mergeUNIIsNamesWithRecords.py > mergedUNIIs-<DATE>.txt
6667

67-
inputs: ../Data_Source/FDA/UNIIs 27Jun2014 Records.txt
68-
../Data_Source/FDA/UNIIS 25Jan2014 Names.txt
68+
inputs: ../Data_Source/FDA/UNIIs_<DATE>_Records.txt
69+
../Data_Source/FDA/UNIIS_<DATE>_Names.txt
6970

7071
outputs: tsv file have columns:
7172

linkedSPLs/LinkedSPLs-update/mappings/pharmacologic_class_indexing/README

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
This data, totally 9479, is up to date with all current SPLs as of March 20 2014.
1+
2+
For all current SPLs
3+
9479 by March 20 2014,
4+
9607 by June 10 2016,
5+
9887 by Jan 18 2017
26

37
(1) To update, get the most current SPL class mappings from Dailymed, unzip
48
the file into the /pharmacologic_class_indexing_spl_files/ folder.

0 commit comments

Comments
 (0)