aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/phewas.scm
blob: f9643af6359f8e1f939982905d083e9fa0897daf (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
(define-module (gn packages phewas)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system cmake)
  #:use-module (guix build-system perl)
  #:use-module (guix build-system python)
  #:use-module (guix build-system ruby)
  #:use-module (guix build-system r)
  #:use-module (guix build-system trivial)
  #:use-module (gn packages lmm)
  #:use-module (gnu packages)
  #:use-module (gnu packages algebra)
  #:use-module (gnu packages base)
  #:use-module (gnu packages bioinformatics)
  #:use-module (gnu packages boost)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages cpio)
  #:use-module (gnu packages file)
  #:use-module (gnu packages gcc)
  #:use-module (gnu packages java)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages machine-learning)
  #:use-module (gnu packages maths)
  #:use-module (gnu packages ncurses)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages popt)
  #:use-module (gnu packages protobuf)
  #:use-module (gnu packages python)
  #:use-module (gnu packages ruby)
  #:use-module (gnu packages statistics)
  #:use-module (gnu packages tbb)
  #:use-module (gnu packages textutils)
  #:use-module (gnu packages vim)
  #:use-module (gnu packages web)
  #:use-module (gnu packages xml)
  #:use-module (gnu packages zip)
  #:use-module (gnu packages bootstrap)
  #:use-module (srfi srfi-1))

(define-public r-intermediate
  (let ((commit "1e4ec77a92889f7548da766cb28abab18df952dc"))
  (package
    (name "r-intermediate")
    (version "0.2-4")
    (source (origin
              ;; We use the git reference, because there's no CRAN package (yet)
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/simecek/intermediate.git")
                    (commit commit)))
              (file-name (string-append name "-" (string-take commit 7) "-checkout" ))
              (sha256
               (base32
                "0l7acxmizw8az37365z4gr9wc6ny9d4zx3q42dgvp04yyzwafbr8"))))
    (build-system r-build-system)
    ; (propagated-inputs
                                        ; `(("r-emma" ,r-emma)))
    (inputs
     `(("r-ggplot2" ,r-ggplot2)
       ("r-magrittr" ,r-magrittr)
       ("r-plotly" ,r-plotly)
       ("r-htmlwidgets" ,r-htmlwidgets)
       ("r-testthat" ,r-testthat)))
    (synopsis "R/intermediate")
    (description
     "R package for eQTl/pQTL mediation analysis.")
    (home-page "https://github.com/simecek/intermediate")
    (license license:gpl3))))


(define-public r-mlmm
  (let ((commit "9fec9805573e97b44ee121f3651ddb79eafc8f8d"))
  (package
    (name "r-mlmm")
    (version "0.1.0")
    (source (origin
              ;; We use the git reference, because there's no CRAN package (yet)
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/Gregor-Mendel-Institute/mlmm.git")
                    (commit commit)))
              (file-name (string-append name "-" (string-take commit 7) "-checkout" ))
              (sha256
               (base32
                "0dr77bf6i7qpi6kvay84p4lgib20l552ph8mp56v3qk0fbsamh8j"))))
    (build-system r-build-system)
    (propagated-inputs
    `(("r-emma" ,r-emma)))
    (synopsis "R/mlmm")
    (description
     "Implements an efficient multi-locus mixed-model approach for
genome-wide association studies in structured populations.")
    (home-page "https://github.com/Gregor-Mendel-Institute/mlmm")
    (license license:gpl3))))

(define-public r-fastmatch
(package
  (name "r-fastmatch")
  (version "1.1-0")
  (source
    (origin
      (method url-fetch)
      (uri (cran-uri "fastmatch" version))
      (sha256
        (base32
          "0z80jxkygmzn11sq0c2iz357s9bpki548lg926g85gldhfj1md90"))))
  (build-system r-build-system)
  (home-page "http://www.rforge.net/fastmatch")
  (synopsis "Fast match() function")
  (description
    "Package providing a fast match() replacement for cases that require repeated look-ups.  It is slightly faster that R's built-in match() function on first match against a table, but extremely fast on any subsequent lookup as it keeps the hash table in memory.")
  (license license:gpl2)))

(define-public r-fgsea
  (package
    (name "r-fgsea")
    (version "1.0.2")
    (source
     (origin
       (method url-fetch)
       (uri (bioconductor-uri "fgsea" version))
       (sha256
        (base32
         "1yq4s4g4xxzcpkv9dpbg29444iy38vfgwj4wgr47rjjq8njfblfx"))))
    (build-system r-build-system)
    ; (native-inputs
                                        ;  `(("gfortran" ,gfortran)))
    ; ‘Rcpp’, ‘data.table’, ‘BiocParallel’, ‘ggplot2’, ‘gridExtra’, ‘fastmatch
    (propagated-inputs
     `(("r-rcpp" ,r-rcpp)
       ("r-data-table" ,r-data-table)
       ("r-biocparallel" ,r-biocparallel)
       ("r-ggplot2" ,r-ggplot2)
       ("r-gridextra" ,r-gridextra)
       ("r-fastmatch" ,r-fastmatch)))
    (home-page "http://bioconductor.org/packages/fgsea")
    (synopsis "")
    (description
     ".")
    (license license:expat)))

(define-public r-qvalue
  (package
    (name "r-qvalue")
    (version "2.6.0")
    (source
     (origin
       (method url-fetch)
       (uri (bioconductor-uri "qvalue" version))
       (sha256
        (base32
         "1dijh11v1kr29gnikq09pkdvm3qwmp1a406ahx9l4j6mgn8hlsfq"))))
    (build-system r-build-system)
    (propagated-inputs
     `(("r-reshape2" ,r-reshape2)
       ("r-ggplot2" ,r-ggplot2)))
    (home-page "http://bioconductor.org/packages/qvalue")
    (synopsis "")
    (description
     ".")
    (license license:expat)))

(define-public r-phewas ; GN2
  (package
   (name "r-phewas")
   (version "0.0.0-1")
   (source #f)
   (build-system trivial-build-system)
   (propagated-inputs
    `(
      ("r" ,r)
      ("r-data-table" ,r-data-table)
      ; ("r-emma" ,r-emma)
      ("r-fgsea" ,r-fgsea)
      ("r-intermediate" ,r-intermediate)
      ("r-limma" ,r-limma)
      ("r-mlmm" ,r-mlmm)
      ("r-qvalue" ,r-qvalue)
    ))
    (arguments
     `(#:guile ,%bootstrap-guile
       #:modules ((guix build utils))
       #:builder
         (let* ((out  (assoc-ref %outputs "out"))
                (bash (assoc-ref %build-inputs "bash"))
                (foo  (string-append out "/foo")))
           (begin
             (use-modules (guix build utils))
             (mkdir out)
             #t))))

   (home-page
    "None")
   (synopsis
    "None")
   (description
    "None.")
   (license license:gpl2+)))