aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/phewas.scm
blob: 7dadb041f1410176791915bf088eea482e484813 (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
(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 (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-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-fgsea" ,r-fgsea)
      ("r-limma" ,r-limma)
      ("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+)))