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
#!/usr/bin/env ruby-1.9 | |
require 'rubygems' | |
require 'bio' | |
require 'json' | |
require 'securerandom' | |
# [TODO] true to combine the result with the EdgeDB | |
if $DEBUG | |
$edgedb = true |
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
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
# SO:chromosome, SO:linear | |
<urn:uuid:63a091c1-1409-4a91-9f46-db9b04bce8f6> | |
<http://genome.db/sw/feature_chromosome> 7 ; | |
<http://genome.db/sw/feature_isolate> "3D7" ; | |
<http://genome.db/sw/length> 1501717 ; | |
<http://genome.db/sw/location> "1..1501717" ; | |
<http://genome.db/sw/molecularType> "genomic DNA" ; | |
<http://genome.db/sw/organism> "Plasmodium falciparum 3D7" ; |
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
#!/usr/bin/env ruby-1.9 | |
require 'rubygems' | |
require 'uri' | |
require 'bio' | |
require 'json' | |
require 'securerandom' | |
# [TODO] integrate this into BioRuby | |
module Bio |
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
#!/usr/bin/env ruby-1.9 | |
ENV["BIO_GITAX_DB"] = "#{ENV['HOME']}/ncbi/taxonomy/gitax" | |
require "rubygems" | |
require "open-uri" | |
require "fileutils" | |
begin | |
require "kyotocabinet" |
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
#!/usr/bin/env ruby | |
# | |
# Convert MIRIAM Registry XML file (http://www.ebi.ac.uk/miriam/main/export/) to RDF | |
# | |
# Copyright (C) 2012 Toshiaki Katayama <k@bioruby.org> | |
# | |
# Pre requirements: | |
# % curl http://www.ebi.ac.uk/miriam/main/export/xml/ > miriam.xml | |
# % gem install nokogiri | |
# % miriam_xml2rdf.rb miriam.xml > miriam.rdf |
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
{ | |
/* | |
* NCBI RefSeq | |
*/ | |
"RefSeq": { | |
"label": "NCBI RefSeq", // custom | |
"class": "RefSeq", | |
"prefix": "http://identifiers.org/refseq/" | |
}, |
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
@prefix owl: <http://www.w3.org/2002/07/owl#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
@prefix obo: <http://purl.obolibrary.org/obo/> . | |
@prefix : <http://insdc.org/owl/#> . | |
<http://insdc.org/owl/> | |
a owl:Ontology . |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'uri' | |
require 'bio' | |
require 'json' | |
require 'securerandom' | |
# [TODO] integrate this into BioRuby | |
module Bio |
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
;;; library | |
(let ((default-directory "~/lib/lisp")) | |
(normal-top-level-add-subdirs-to-load-path)) | |
;; multiple-cursors | |
; % git clone https://github.com/magnars/multiple-cursors.el.git | |
; % mv multiple-cursors.el lib/lisp/multiple-cursors |
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
#!/usr/bin/env ruby | |
# | |
# Usage: | |
# DAS XML for http://togogenome.org/das/645657/features?segment=NC_017196.1:1,100000 can be generated by | |
# % ruby sparql2das.rb 645657 features segment=NC_017196.1:1,100000 | |
# With ruby -d option, you'll see debug massages with pretty formatted XML (will miss <?xml> tag though) | |
# | |
# TODO: | |
# Wrap as an Rack app and add X-DAS-* HTTP headers | |
# |