|
51 | 51 | </fileset>
|
52 | 52 | </delete>
|
53 | 53 |
|
54 |
| - <exec executable="bash"> |
55 |
| - <arg value="-c" /> |
56 |
| - <arg value ='unzip ${DAILYMED_LABELS}/archives/otc/\*.zip -d ${SPLS_LOAD}/spls/' /> |
57 |
| - </exec> |
| 54 | + <!-- <exec executable="bash"> --> |
| 55 | + <!-- <arg value="-c" /> --> |
| 56 | + <!-- <arg value ='unzip ${DAILYMED_LABELS}/archives/otc/\*.zip -d ${SPLS_LOAD}/spls/' /> --> |
| 57 | + <!-- </exec> --> |
58 | 58 |
|
59 | 59 | <exec executable="bash">
|
60 | 60 | <arg value="-c" />
|
|
226 | 226 | <!-- <antcall target="load-SPLSetIDToRxNORM" /> -->
|
227 | 227 | <!-- <antcall target="load-RXNORM_NDFRT_INGRED_Table" /> -->
|
228 | 228 | <!-- <antcall target="load-FDA_EPC_Table" /> -->
|
229 |
| - <!-- <antcall target="load-DrOn_ChEBI_RXCUI" /> --> |
230 |
| - <!-- <antcall target="load-OMOPId-RXCUIs-from-OHDSI" /> --> |
231 | 229 | <!-- <antcall target="load-ChEBI_DRUGBANK_BIO2RDF" /> -->
|
| 230 | + |
232 | 231 | <!-- <antcall target="load-FDAPharmgxTable" /> -->
|
233 |
| - <!-- <antcall target="load-FDAPharmgxTableToOntologyMap" /> --> |
| 232 | + <!-- <antcall target="load-FDAPharmgxTableToOntologyMap" /> --> |
| 233 | + |
| 234 | + <!-- <antcall target="load-DrOn_RXCUI_DRUG" /> --> |
| 235 | + <!-- <antcall target="load-DrOn_RXCUI_INGREDIENT" /> --> |
| 236 | + |
| 237 | + <!-- <antcall target="load-OMOPId-RXCUIs-from-OHDSI" /> --> |
234 | 238 |
|
235 | 239 | <antcall target="set.timestamp">
|
236 | 240 | <param name="message" value="updated all mappings in ${mysql-schema}" />
|
|
391 | 395 | <param name="message" value="mappings of perferred term, UNII and drugbank URI is created at ${ChEBI-DrugBank-bio2rdf-mapping}/UNII-data/INCHI-OR-Syns-OR-Name-${TODAY_US}.txt" />
|
392 | 396 | </antcall>
|
393 | 397 |
|
394 |
| - <delete file="${ChEBI-DrugBank-bio2rdf-mapping}/fda-substance-preferred-name-to-drugbank-${TODAY_US}.txt"/> |
| 398 | + <delete file="${ChEBI-DrugBank-bio2rdf-mapping}/fda-substance-preferred-name-to-drugbank.txt"/> |
395 | 399 |
|
396 |
| - <exec executable="python" dir="${ChEBI-DrugBank-bio2rdf-mapping}/scripts" output="${ChEBI-DrugBank-bio2rdf-mapping}/fda-substance-preferred-name-to-drugbank-${TODAY_US}.txt"> |
| 400 | + <exec executable="python" dir="${ChEBI-DrugBank-bio2rdf-mapping}/scripts" output="${ChEBI-DrugBank-bio2rdf-mapping}/fda-substance-preferred-name-to-drugbank.txt"> |
397 | 401 | <arg line="addBio2rdf_UNII_to_DrugBank.py ../UNII-data/INCHI-OR-Syns-OR-Name-${TODAY_US}.txt"/>
|
398 | 402 | </exec>
|
399 | 403 |
|
400 | 404 | <antcall target="set.timestamp">
|
401 |
| - <param name="message" value="post-processed mappings of perferred term and drugbank URI is created at ${ChEBI-DrugBank-bio2rdf-mapping}/fda-substance-preferred-name-to-drugbank-${TODAY_US}.txt" /> |
| 405 | + <param name="message" value="post-processed mappings of perferred term and drugbank URI is created at ${ChEBI-DrugBank-bio2rdf-mapping}/fda-substance-preferred-name-to-drugbank.txt" /> |
402 | 406 | </antcall>
|
403 | 407 |
|
404 | 408 | <sql
|
|
412 | 416 |
|
413 | 417 | <transaction>
|
414 | 418 | truncate FDA_SUBSTANCE_TO_DRUGBANK_BIO2RDF;
|
415 |
| - LOAD DATA LOCAL INFILE "${ChEBI-DrugBank-bio2rdf-mapping}/fda-substance-preferred-name-to-drugbank-${TODAY_US}.txt" INTO TABLE FDA_SUBSTANCE_TO_DRUGBANK_BIO2RDF(PreferredSubstance, DRUGBANK_CA, DRUGBANK_BIO2RDF); |
| 419 | + LOAD DATA LOCAL INFILE "${ChEBI-DrugBank-bio2rdf-mapping}/fda-substance-preferred-name-to-drugbank.txt" INTO TABLE FDA_SUBSTANCE_TO_DRUGBANK_BIO2RDF(PreferredSubstance, DRUGBANK_CA, DRUGBANK_BIO2RDF); |
416 | 420 | </transaction>
|
417 | 421 | </sql>
|
418 | 422 |
|
|
432 | 436 | <exec executable="python" failonerror="true">
|
433 | 437 | <arg line="${ChEBI-DrugBank-bio2rdf-mapping}/scripts/parseDBIdAndChEBI.py ${DRUGBANK_XML}"/>
|
434 | 438 | <redirector append="true">
|
435 |
| - <outputmapper type="merge" to="${ChEBI-DrugBank-bio2rdf-mapping}/drugbank-to-chebi-${TODAY_US}.txt"/> |
| 439 | + <outputmapper type="merge" to="${ChEBI-DrugBank-bio2rdf-mapping}/drugbank-to-chebi.txt"/> |
436 | 440 | <errormapper type="merge" to="${ERROR_LOG}"/>
|
437 | 441 | </redirector>
|
438 | 442 | </exec>
|
439 | 443 |
|
440 | 444 | <antcall target="set.timestamp">
|
441 |
| - <param name="message" value="mappings of drugbank Id and chebi id is created at ${ChEBI-DrugBank-bio2rdf-mapping}/drugbank-to-chebi-${TODAY_US}.txt" /> |
| 445 | + <param name="message" value="mappings of drugbank Id and chebi id is created at ${ChEBI-DrugBank-bio2rdf-mapping}/drugbank-to-chebi.txt" /> |
442 | 446 | </antcall>
|
443 | 447 |
|
444 | 448 | <sql
|
|
451 | 455 | </classpath>
|
452 | 456 | <transaction>
|
453 | 457 | truncate ChEBI_DRUGBANK_BIO2RDF;
|
454 |
| - load data local infile '${ChEBI-DrugBank-bio2rdf-mapping}/drugbank-to-chebi-${TODAY_US}.txt' into table ChEBI_DRUGBANK_BIO2RDF fields terminated by '\t' |
| 458 | + load data local infile '${ChEBI-DrugBank-bio2rdf-mapping}/drugbank-to-chebi.txt' into table ChEBI_DRUGBANK_BIO2RDF fields terminated by '\t' |
455 | 459 | lines terminated by '\n' (CHEBI_OBO, CHEBI_BIO2RDF, DRUGBANK_CA, DRUGBANK_BIO2RDF);
|
456 | 460 | </transaction>
|
457 | 461 | </sql>
|
|
474 | 478 | <delete file=" ${RxNORM-mapping}/PreferredTerm-UNII-Rxcui-mapping.txt"/>
|
475 | 479 |
|
476 | 480 | <exec executable="python" failonerror="true">
|
477 |
| - <arg line="${RxNORM-mapping}/mergePT-UNII-RXCUI.py data/FDA/FDAPreferredSubstanceToUNII.txt ${UNIIS_RXCUIS_FROM_UMLS} ${RxNORM-mapping}/PreferredTerm-UNII-Rxcui-mapping.txt ${RxNORM-mapping}/PreferredTermRxcui-mapping.txt" /> |
| 481 | + <arg line="${RxNORM-mapping}/mergePT-UNII-RXCUI.py data/FDA/FDAPreferredSubstanceToUNII.txt ${UNIIS_RXCUIS_FROM_UMLS} ${RxNORM-mapping}/PreferredTerm-UNII-Rxcui-mapping.txt ${RxNORM-mapping}/PreferredTermRxcui-mapping.txt" /> |
478 | 482 | <redirector append="true">
|
479 | 483 | <errormapper type="merge" to="${ERROR_LOG}"/>
|
480 | 484 | </redirector>
|
|
613 | 617 | <exec executable="python" failonerror="true">
|
614 | 618 | <arg line="${pharmacologic_class_indexing}/parseEPCfromXMLs.py ${PG_CLASS_INDEXING_SPLS}" />
|
615 | 619 | <redirector append="true">
|
616 |
| - <outputmapper type="merge" to="${pharmacologic_class_indexing}/EPC_extraction_most_recent_${TODAY_US}.txt"/> |
| 620 | + <outputmapper type="merge" to="${pharmacologic_class_indexing}/EPC_extraction_most_recent.txt"/> |
617 | 621 | <errormapper type="merge" to="${ERROR_LOG}"/>
|
618 | 622 | </redirector>
|
619 | 623 | </exec>
|
620 | 624 |
|
621 | 625 | <antcall target="set.timestamp">
|
622 |
| - <param name="message" value="mappings of setId, UNII, NUI and PreferredNameAndRole is created at ${pharmacologic_class_indexing}/EPC_extraction_most_recent_${TODAY_US}.txt" /> |
| 626 | + <param name="message" value="mappings of setId, UNII, NUI and PreferredNameAndRole is created at ${pharmacologic_class_indexing}/EPC_extraction_most_recent.txt" /> |
623 | 627 | </antcall>
|
624 | 628 |
|
625 | 629 | <sql
|
|
632 | 636 | </classpath>
|
633 | 637 | <transaction>
|
634 | 638 | truncate FDA_EPC_Table;
|
635 |
| - LOAD DATA LOCAL INFILE "${pharmacologic_class_indexing}/EPC_extraction_most_recent_${TODAY_US}.txt" INTO TABLE FDA_EPC_Table(setId, UNII, NUI, PreferredNameAndRole); |
| 639 | + LOAD DATA LOCAL INFILE "${pharmacologic_class_indexing}/EPC_extraction_most_recent.txt" INTO TABLE FDA_EPC_Table(setId, UNII, NUI, PreferredNameAndRole); |
636 | 640 | </transaction>
|
637 | 641 | </sql>
|
638 | 642 |
|
|
668 | 672 | <param name="message" value="parse to get DrOn-rxnorm mappings for clinical drug from ${DRON_RXCUI_DRUG}" />
|
669 | 673 | </antcall>
|
670 | 674 |
|
671 |
| - <delete file="${DrOn-to-RxNorm}/cleaned-dron-to-rxcui-drug-${TODAY_US}.txt"/> |
| 675 | + <delete file="${DrOn-to-RxNorm}/cleaned-dron-to-rxcui-drug.txt"/> |
672 | 676 |
|
673 | 677 | <exec executable="python" failonerror="true">
|
674 | 678 | <arg line="${DrOn-to-RxNorm}/cleanData.py ${DrOn-to-RxNorm}/dron-rxcui-drug.txt" />
|
675 | 679 | <redirector append="true">
|
676 |
| - <outputmapper type="merge" to="${DrOn-to-RxNorm}/cleaned-dron-to-rxcui-drug-${TODAY_US}.txt"/> |
| 680 | + <outputmapper type="merge" to="${DrOn-to-RxNorm}/cleaned-dron-to-rxcui-drug.txt"/> |
677 | 681 | <errormapper type="merge" to="${ERROR_LOG}"/>
|
678 | 682 | </redirector>
|
679 | 683 | </exec>
|
|
692 | 696 | </classpath>
|
693 | 697 | <transaction>
|
694 | 698 | truncate DrOn_ChEBI_RXCUI_DRUG;
|
695 |
| - LOAD DATA LOCAL INFILE '${DrOn-to-RxNorm}/cleaned-dron-to-rxcui-drug-${TODAY_US}.txt' INTO TABLE `DrOn_ChEBI_RXCUI_DRUG` FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' (dron_id, ChEBI, rxcui); |
| 699 | + LOAD DATA LOCAL INFILE '${DrOn-to-RxNorm}/cleaned-dron-to-rxcui-drug.txt' INTO TABLE `DrOn_ChEBI_RXCUI_DRUG` FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' (dron_id, ChEBI, rxcui); |
696 | 700 | </transaction>
|
697 | 701 | </sql>
|
698 | 702 |
|
|
729 | 733 | <param name="message" value="parse to get DrOn-rxnorm mappings for ingredient from ${DRON_RXCUI_INGREDIENT}" />
|
730 | 734 | </antcall>
|
731 | 735 |
|
732 |
| - <delete file="${DrOn-to-RxNorm}/cleaned-dron-chebi-rxcui-ingredient-${TODAY_US}.txt"/> |
| 736 | + <delete file="${DrOn-to-RxNorm}/cleaned-dron-chebi-rxcui-ingredient.txt"/> |
733 | 737 |
|
734 | 738 | <exec executable="python" failonerror="true">
|
735 | 739 | <arg line="${DrOn-to-RxNorm}/cleanData.py ${DrOn-to-RxNorm}/dron-chebi-rxcui-ingredient.txt" />
|
736 | 740 | <redirector append="true">
|
737 |
| - <outputmapper type="merge" to="${DrOn-to-RxNorm}/cleaned-dron-chebi-rxcui-ingredient-${TODAY_US}.txt"/> |
| 741 | + <outputmapper type="merge" to="${DrOn-to-RxNorm}/cleaned-dron-chebi-rxcui-ingredient.txt"/> |
738 | 742 | <errormapper type="merge" to="${ERROR_LOG}"/>
|
739 | 743 | </redirector>
|
740 | 744 | </exec>
|
|
753 | 757 | </classpath>
|
754 | 758 | <transaction>
|
755 | 759 | truncate DrOn_ChEBI_RXCUI_DRUG;
|
756 |
| - LOAD DATA LOCAL INFILE '${DrOn-to-RxNorm}/cleaned-dron-chebi-rxcui-ingredient-${TODAY_US}.txt' INTO TABLE `DrOn_ChEBI_RXCUI_INGREDIENT` FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' (dron_id, ChEBI, rxcui); |
| 760 | + LOAD DATA LOCAL INFILE '${DrOn-to-RxNorm}/cleaned-dron-chebi-rxcui-ingredient.txt' INTO TABLE `DrOn_ChEBI_RXCUI_INGREDIENT` FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' (dron_id, ChEBI, rxcui); |
757 | 761 | </transaction>
|
758 | 762 | </sql>
|
759 | 763 |
|
|
814 | 818 |
|
815 | 819 | <!-- update FDAPharmgxTable
|
816 | 820 | query the latest version of core and active moiety graphs to get latest version of pharmgxTable (mappings of setid and rxcui)
|
817 |
| - TOTO; revise python sparql query script to excute query agaist RDB (Mysql) |
| 821 | + TOTO; revise createFDAPharmgxDBTable.py to excute query on RDB (Mysql) |
| 822 | + Otherwise, have to redump core graph to include pgx data |
818 | 823 | -->
|
819 | 824 |
|
820 | 825 | <target name="load-FDAPharmgxTable" >
|
821 | 826 |
|
822 | 827 | <exec executable="python" failonerror="true">
|
823 |
| - <arg line="${FDA-pharmacogenetic-info-mapping}/createFDAPharmgxDBTable.py ${FDA-pharmacogenetic-info-mapping}/genetic-biomarker-table-raw-import.csv ${RxNORM-mapping}/PreferredTermRxcui-mapping.txt ${FDA-pharmacogenetic-info-mapping}/FDAPharmgxTable.csv" /> |
| 828 | + <arg line="${FDA-pharmacogenetic-info-mapping}/createFDAPharmgxDBTable.py ${GENETIC} ${RxNORM-mapping}/PreferredTermRxcui-mapping.txt ${FDA-pharmacogenetic-info-mapping}/FDAPharmgxTable.csv" /> |
824 | 829 | <redirector append="true">
|
825 | 830 | <errormapper type="merge" to="${ERROR_LOG}"/>
|
826 | 831 | </redirector>
|
|
862 | 867 | </classpath>
|
863 | 868 | <transaction>
|
864 | 869 | truncate FDAPharmgxTableToOntologyMap;
|
865 |
| - LOAD DATA LOCAL INFILE "${FDA-pharmacogenetic-info-mapping}/biomarker-to-ontology-mapping.csv" INTO TABLE FDAPharmgxTableToOntologyMap(FDAReferencedSubgroup,HGNCGeneSymbol,Synonymns,AlleleVariant,Pharmgkb,URI,Ontology,CuratorComments); |
| 870 | + LOAD DATA LOCAL INFILE "${BIOMARKER}" INTO TABLE FDAPharmgxTableToOntologyMap FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' IGNORE 1 LINES(FDAReferencedSubgroup,HGNCGeneSymbol,Synonymns,AlleleVariant,Pharmgkb,URI,Ontology,CuratorComments); |
866 | 871 | </transaction>
|
867 | 872 | </sql>
|
868 | 873 |
|
|
0 commit comments