Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexkalderimis/intermine-client.clj
InterMine client written in clojure
https://github.com/alexkalderimis/intermine-client.clj
Last synced: 11 days ago
JSON representation
InterMine client written in clojure
- Host: GitHub
- URL: https://github.com/alexkalderimis/intermine-client.clj
- Owner: alexkalderimis
- Created: 2013-10-16T08:18:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-13T01:04:47.000Z (about 11 years ago)
- Last Synced: 2024-04-09T22:22:36.601Z (10 months ago)
- Language: Clojure
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# intermine-client
An asynchronous, promise based InterMine client libary for the JVM written
in clojure.## Use it!
Declare a dependency in `project.clj`
``` clojure
(defproject your-project "1.0.0-SNAPSHOT"
:description "Your project description"
:dependencies [[org.clojure/clojure "1.4.0"]
[intermine-client "0.0.1"]])
```Require:
``` clojure
(ns sample (:require intermine.client))
```Run a query:
``` clojure
;; All results come as instances of clojure.core/future, so
;; we dereference the call to intermine.client/count
(let [service {:base "http://www.flymine.org/query/service"}
query {:select ["Gene.proteins"] :where [[:lookup "bsk"]]}
n-proteins @(intermine.client/count service query)]
(println "Basket has" n-proteins "proteins"))
```## License
Copyright © 2013 Alex Kalderimis
Distributed under the Eclipse Public License, the same as Clojure.