Skip to content

Instantly share code, notes, and snippets.

View ktym's full-sized avatar

Toshiaki Katayama ktym

  • Database Center for Life Science
  • Japan
View GitHub Profile
@ktym
ktym / taxid2name.rq
Created August 18, 2012 07:48
taxonomy id <-> scientific name
# http://beta.sparql.uniprot.org/
prefix up: <http://purl.uniprot.org/core/>
prefix tax: <http://purl.uniprot.org/taxonomy/>
select *
where {
tax:9606 up:scientificName ?name .
}
@ktym
ktym / miriam-xml2csv.rb
Created January 24, 2012 19:39
MIRIAM XML to CSV
#!/usr/bin/env ruby
#
# Convert MIRIAM Registry XML file (http://www.ebi.ac.uk/miriam/main/export/) to CSV
# for browsing at TogoDB (http://semantic.togodb.dbcls.jp/togodb/view/miriam)
#
# Copyright (C) 2012 Toshiaki Katayama <[email protected]>
#
# Pre requirements:
# % curl http://www.ebi.ac.uk/miriam/main/export/xml/ > resources_all.xml
# % gem install nokogiri