Skip to content

Commit 3024f2c

Browse files
committed
updated sider scripts to use pubchem_compound namespace.
SIDER uses pubchem compound identifiers as determined from their download website description.
1 parent 728aa5e commit 3024f2c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

toxkb/sider/lib/meddra_freq_parsed.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def process
6565
buf =""
6666

6767
l = "<#{sider}label_#{Digest::MD5.hexdigest(row[2])}> "
68-
drug = "<#{host}/pubchem:#{row[1].to_i.abs.to_s}> "
68+
drug = "<#{host}/pubchem_compound:#{row[1].to_i.abs.to_s}> "
6969

7070
buf << l+type+"<#{sider_v}Drug_Information_Label> " + record + eol
7171
buf << l+"<#{sider_v}involves_drug> " + drug + record + eol

toxkb/sider/lib/namespaces.rb

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def load_namespaces
1616
@ctd_vocabulary = RDF::Vocabulary.new("#{host}/ctd_vocabulary:")
1717
@pubmed = RDF::Vocabulary.new("http://www.ncbi.nlm.nih.gov/pubmed/")
1818
@pubchem = RDF::Vocabulary.new("#{host}/pubchem:")
19+
@pubchem_compound = RDF::Vocabulary.new("#{host}/pubchem_compound:")
1920
@geneid = RDF::Vocabulary.new("#{host}/geneid:")
2021
@mesh = RDF::Vocabulary.new("#{host}/mesh:")
2122
@taxon = RDF::Vocabulary.new("#{host}/taxon:")

0 commit comments

Comments
 (0)