aboutsummaryrefslogtreecommitdiff
path: root/web/view/view.scm
blob: 20f3578cb1b92d7c403daf372a25da7cb6331649 (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
(define-module (web view view)
  #: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)
  #:use-module (sxml simple)
  #:use-module (web sxml)
  #:use-module (web view brand msk)
  #:use-module (web view brand aging)

  #:export (view-brand))

(define (view-aging)
  (aging-html #:info
              '((h2 "Introduction")
                (p "New aging portal! This is initial work for providing a full community webservice for aging.")
              (h2 "Explore GeneNetwork for aging (GN4AGING)")
              (p "Find all genes that have a hit for")
              (ul
               (li (a (@ (href "https://genenetwork.org/gsearch?type=gene&terms=aging")) "aging")))
              (p "Find all phenotypes that have a hit for")
              (ul
               (li (a (@ (href "https://genenetwork.org/gsearch?type=phenotype&terms=aging")) "aging"))
               )
              (p "Note that you can use the powerful search at the top of the results page!
Search terms can be "
                 (a (@ (href "https://issues.genenetwork.org/topics/xapian-search-queries")) "added") ". In the results click on any item to (re)run the relevant GWA or QTL mapping")
              (h2 "Contact")
              (p "We host private and public datasets. If you are interested in exploring data on GeneNetwork, or to add your own
data to benefit from the power of integrated datasets, please contact:")
              (a (@ (href "https://davidashbrook.wordpress.com/")) "David Ashbrook")
              " | "
              (a (@ (href "https://uthsc.edu/genetics/faculty-staff.php")) "Rob W Williams")
              " | "
              (a (@ (href "https://thebird.nl")) "Pjotr Prins")
              (p)
              (img (@ (src "/static/images/CMOR.jpg") (width "1000"))))))

(define* (view-brand path)
  (match path
    ("aging" (view-aging))
    ( _ (msk-html #:info
            '((h2 "Introduction")
              (p "New start page for MSK! This is initial work for providing a full community webservice for musculoskeletal disease.")
              (h2 "Explore GeneNetwork for MSK (GN4MSK)")
              (p "Find all genes that have a hit for")
              (ul
               (li (a (@ (href "https://genenetwork.org/gsearch?type=gene&terms=bone")) "bone"))
               (li (a (@ (href "https://genenetwork.org/gsearch?type=gene&terms=skelet")) "skeleton"))
               (li (a (@ (href "https://genenetwork.org/gsearch?type=gene&terms=muscle")) "muscle")))
              (p "Find all phenotypes that have a hit for")
              (ul
               (li (a (@ (href "https://genenetwork.org/gsearch?type=phenotype&terms=bone")) "bone"))
               (li (a (@ (href "https://genenetwork.org/gsearch?type=phenotype&terms=skelet")) "skeleton"))
               (li (a (@ (href "https://genenetwork.org/gsearch?type=phenotype&terms=muscle")) "muscle"))
               )
              (p "Note that you can use the powerful search at the top of the results page!
Search terms can be "
                 (a (@ (href "https://issues.genenetwork.org/topics/xapian-search-queries")) "added") ". In the results click on any item to (re)run the relevant GWA or QTL mapping")
              (h2 "Contact")
              (p "We host private and public datasets. If you are interested in exploring data on GeneNetwork, or to add your own
data to benefit from the power of integrated datasets, please contact:")
              (a (@ (href "https://med.virginia.edu/cphg/charles-r-farber/")) "Charles Farber")
              " | "
              (a (@ (href "https://medschool.cuanschutz.edu/orthopedics/research/labs/ackert-bicknell-lab")) "Cheryl Ackert-Bicknell")
              " | "
              (a (@ (href "https://uthsc.edu/genetics/faculty-staff.php")) "Rob W Williams")
              " | "
              (a (@ (href "https://thebird.nl")) "Pjotr Prins")
              (p)
              (img (@ (src "/static/images/CMOR.jpg") (width "1000"))))
  ))))