This file contains hidden or 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
| (ns oba-client | |
| (:use [clojure-http.resourcefully :as res] | |
| [clojure.contrib.str-utils :only [str-join]]) | |
| (:refer-clojure :exclude [get])) | |
| (def default-timeout 30) | |
| (def default-uri "http://rest.bioontology.org/obs/annotator") | |
| (def all-annotator-parameters #{ | |
This file contains hidden or 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
| (ns oba-client | |
| (:use [clojure-http.resourcefully :as res] | |
| [clojure.contrib.str-utils :only [str-join]]) | |
| (:refer-clojure :exclude [get])) | |
| (def default-timeout 30) | |
| (def default-uri "http://rest.bioontology.org/obs/annotator") | |
| (def all-annotator-parameters #{ | |
This file contains hidden or 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
| (ns oba-client | |
| (:use [clojure-http.resourcefully :as res] | |
| [clojure.contrib.str-utils :only [str-join]]) | |
| (:refer-clojure :exclude [get])) | |
| (def default-timeout 30) | |
| (def default-uri "http://rest.bioontology.org/obs/annotator") | |
| (def all-annotator-parameters #{ | |
| "email" |
This file contains hidden or 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
| require "dm-core" | |
| require "dm-types" | |
| require "noorm" | |
| module NOORM | |
| class Disease | |
| property :concept_id, String, :key => true | |
| property :name, String | |
| end |
This file contains hidden or 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
| #class GEO | |
| # def self.inherited(subclass) | |
| # subclass.class_eval do | |
| # include DataMapper::Resource | |
| # def self.default_repository_name; :expr_geo; end | |
| # end | |
| # end | |
| #end | |
| # |
This file contains hidden or 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
| require "rubygems" | |
| require "dm-core" | |
| class GSE | |
| include DataMapper::Resource | |
| def self.default_repository_name; :expr_geo; end | |
| storage_names[:expr_geo] = "gse_list" | |
| property :gse, Integer, :key => true | |
| has n, :gse_gsms, "GSEGSM", :child_key => [:gse], :parent_key => [:gse] |
This file contains hidden or 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
| require "rubygems" | |
| require "dm-core" | |
| class GSE | |
| include DataMapper::Resource | |
| def self.default_repository_name; :expr_geo; end | |
| storage_names[:expr_geo] = "gse_list" | |
| property :gse, Integer, :key => true | |
| has n, :gse_gsms, "GSEGSM", :child_key => [:gse], :parent_key => [:gse] |
This file contains hidden or 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
| class GSE | |
| include DataMapper::Resource | |
| def self.default_repository_name; :expr_geo; end | |
| storage_names[:expr_geo] = "gse_list" | |
| property :gse, Integer, :key => true | |
| has n, :gse_gsms, "GSEGSM", :child_key => [:gse], :parent_key => [:gse] | |
| has n, :gsm_objects, "GSM", :through => :gse_gsm | |
| end |
This file contains hidden or 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
| class GEO | |
| def self.inherited(subclass) | |
| subclass.class_eval do | |
| include DataMapper::Resource | |
| def self.default_repository_name; :expr_geo; end | |
| end | |
| end | |
| end |
This file contains hidden or 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
| class GSE < GEO | |
| storage_names[:expr_geo] = "gse_list" | |
| property :gse, Integer, :key => true | |
| has n, :gse_gsms, "GSEGSM", :child_key => [:gse], :parent_key => [:gse] | |
| has n, :gsm_objects, "GSM", :through => :gse_gsm | |
| end | |
| class GSEGSM < GEO |