Skip to content

intronic/ion-torrent-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ion-torrent-api

A Clojure library using the Ion Torrent Server API (http://updates.iontorrent.com/ts-sdk-docs/index.html).

Usage

TorrentServerAPI Protocol

Methods to get Experiment, Result, and PluginResult records, as well as file object URIs and resources such as BAM, VCF, and coverage files.

TorrentServer record maintains connection details, used to query Experiment, Result, PluginResult records and other resources.

(require '[ion-torrent-api.core :as ion])

(def ts (ion/torrent-server "http://my-torent-server.com" ["user" "pass"]))
ts
; #ion_torrent_api.schema.TorrentServer{:server-url "http://my-torent-server.com", :creds nil, :api-path "/rundb/api/v1/"}

(def exp (ion/experiment ts 50))
exp
; #ion_torrent_api.schema.Experiment{...}

(ion/experiment-name ts "R_2014_03_01_..._015")
; #ion_torrent_api.schema.Experiment{...}

(ion/barcode-set exp)
; #{"IonXpressRNA_001" "IonXpressRNA_002" "IonXpressRNA_003" "IonXpressRNA_004" "IonXpressRNA_005"}

(def res (ion/result ts 109))
res
; #ion_torrent_api.schema.Result{...}

(ion/result exp)
; #ion_torrent_api.schema.Result{...}

(def pr (ion/plugin-result ts 209))
pr
; #ion_torrent_api.schema.PluginResult{...}

(ion/plugin-result res)
; [#ion_torrent_api.schema.PluginResult{...}, ...]

(ion/barcode-set pr)
; #{"IonXpressRNA_001" "IonXpressRNA_002" "IonXpressRNA_003" "IonXpressRNA_004" "IonXpressRNA_005"}
                

License

Copyright © 2013 Insilico Informatics Pty Ltd.

Distributed under the Eclipse Public License, the same as Clojure.

About

Ion Torrent Server API

Resources

Stars

Watchers

Forks

Packages

No packages published