まずは、様々なパスウェイデータベースの一覧を見てみましょう。
500 以上のデータベースが下記の分類でリストアップされています。
#!/usr/bin/env ruby | |
# | |
# Taxonomy ontology generator | |
# | |
# Copyright (C) 2013, 2014 Toshiaki Katayama <ktym@dbcls.jp> | |
# | |
# Version: Jan 29, 2014 | |
# | |
# Usage: | |
# |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<html> | |
<head> | |
<!-- Twitter Bootstrap http://getbootstrap.com/2.3.2/ を取得してインストール --> | |
<link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css"/> | |
<!-- D3.js http://d3js.org/ を取得してインストール --> | |
<script src="lib/d3/d3.v3.min.js"></script> | |
<script> | |
function query() { |
class Player | |
def play_turn(warrior) | |
# cool code goes here | |
@health ||= warrior.health | |
if warrior.feel.captive? | |
warrior.rescue! | |
elsif warrior.feel.enemy? | |
warrior.attack! | |
else | |
if warrior.health < 20 and !(warrior.health < @health) |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<html> | |
<head> | |
<!-- Twitter Bootstrap http://getbootstrap.com/2.3.2/ を取得してインストール --> | |
<link rel="stylesheet" type="text/css" href="bootstrap.css"/> | |
<!-- jQuery http://jquery.com/ を取得してインストール --> | |
<script src="jquery.min.js"></script> | |
<script> | |
// SPARQL 検索を行う query() 関数を定義 |
require 'json' | |
def metadatajson | |
json = JSON.parse(' | |
{ | |
"Name": "", | |
"Description": "", | |
"HrefAppSession": "", | |
"Properties": [ | |
{ |
#!/usr/bin/env ruby | |
# | |
# % gem install linkeddata | |
# % lodconvert.rb -h | |
# % lodconvert.rb [-i input_format] [-o output_format] inputfile > outputfile | |
# | |
require 'rubygems' | |
require 'linkeddata' | |
require 'getoptlong' |
まずは、様々なパスウェイデータベースの一覧を見てみましょう。
500 以上のデータベースが下記の分類でリストアップされています。
#!/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 <k@bioruby.org> | |
# | |
# Pre requirements: | |
# % curl http://www.ebi.ac.uk/miriam/main/export/xml/ > resources_all.xml | |
# % gem install nokogiri |
# 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 . | |
} |
{ | |
"-": { | |
"so_id": "SO:0000110", | |
"so_term": "located_sequence_feature", | |
"ft_desc": "\"-\" is a placeholder for no key; should be used when the need is merely to mark region in order to comment on it or to use it in another feature's location", | |
"so_desc": "A biological feature that can be attributed to a region of biological sequence." | |
}, | |
"-10_signal": { | |
"so_id": "SO:0000175", | |
"so_term": "minus_10_signal", |