-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added to post-merge to export.sh script a command that generates gene…
…ric-physical-entity-map.json (required for PC app-ui web app). Changed premerge, Converter to use datasource's id as the xmlbase instead of pc2 base. Started DrugbankCleaner - todo...
- Loading branch information
1 parent
594726e
commit 506c9a9
Showing
5 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package cpath.cleaner; | ||
|
||
import cpath.service.api.Cleaner; | ||
|
||
import java.io.InputStream; | ||
import java.io.OutputStream; | ||
|
||
public class DrugbankCleaner implements Cleaner { | ||
|
||
/* | ||
* drugbank biopax data uses the following values in xref.db properties, | ||
* which biopax validator reports as "Unknown"; | ||
* so we need to replace with the corresponding standard prefix/name from bioregistry.io (or identifiers.org): | ||
GenBank Gene Database -> "genbank" | ||
GenBank Protein Database -> "genbank" (numeric IDs, not like it's in ncbiprotein) | ||
Therapeutic Targets Database -> | ||
Guide to Pharmacology -> | ||
HUGO Gene Nomenclature Committee (HGNC) -> "hgnc.symbol" (or "HGNC Symbol") | ||
IUPHAR -> | ||
Drugs Product Database (DPD) -> | ||
*/ | ||
|
||
@Override | ||
public void clean(InputStream data, OutputStream cleanedData) { | ||
//TODO: implement | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# After the PC data build is done, | ||
# generates generic-physical-entity-map.json (for PC app-ui webapp). | ||
# | ||
# Prerequisites: | ||
# - gunzip | ||
# - jq (https://stedolan.github.io/jq/; or install with npm: npm install hjson -g) | ||
gunzip -c "file:downloads/physical_entities.json.gz" | jq -cS 'map(select(.generic)) | reduce .[] as $o ({}; . + {($o.uri): {name: $o.name, label:$o.label, synonyms:$o."hgnc.symbol"}})' > downloads/generic-physical-entity-map.json | ||
echo "Generated downloads/generic-physical-entity-map.json" |