aboutsummaryrefslogtreecommitdiff
path: root/gn/runner/gemma.scm
blob: 31a14f71121888c0dc7c360bb448b7cd9a1e4ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(define-module (gn runner gemma)
  #:use-module (json)
  #:use-module (ice-9 match)
  #:use-module (ice-9 format)
  #:use-module (ice-9 iconv)
  #:use-module (ice-9 receive)
  #:use-module (ice-9 string-fun)

  #:export (
            run-gemma
            ))

(define (run-gemma data-id name trait-name traits)
  (if name
      (display (string-append "WE HAVE OUR BXD DATASET " name " and trait " trait-name " for precompute!\n")))
  (display data-id)
  (display traits)
  (newline)
  ;; ---- write phenotype file
  (call-with-output-file "test.tmp"
    (lambda (port)
      (write 12 port)
      (newline port)
      (write "HELLO" port)
      ))

  ;; ---- start GEMMA precompute
  (system "gemma")
  )