forked from digital-cancer-research/open-trial-finder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
trial_report.Rmd
219 lines (134 loc) · 8.14 KB
/
trial_report.Rmd
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
---
title: "digital ECMT cancer trial matching tool: results"
#output: html_document
output:
flexdashboard::flex_dashboard:
source_code: embed
orientation: rows
#logo: digitalECMTlogo48px.PNG
theme: spacelab
params:
subject_ID: "Not provided"
cancer_type: "cancer type"
include_solid: "T/F"
synonyms: "condition synonyms"
genes: "mutations, fusions, amplifications"
mechanism_filter: "mechanism(s)"
hide_cancer_only: "T/F"
table: "json format"
privacy_statement: ""
contact_email: ""
country: ""
about_us: ""
---
```{r copyright notice}
#
# This file is part of the cancer-trial-match distribution (https://github.com/digital-ECMT/cancer-trial-match).
# Copyright (C) 2021 digital ECMT
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 or later.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
```
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
require(jsonlite) ## MIT
require(formattable) ## MIT
require(kableExtra) ## MIT
##get today's date
today <- format(Sys.Date(), format = "%d %B %Y")
## load configuration data from JSON file
# configuration <- jsonlite::fromJSON(txt = "trialMatchConfiguration.json")
```
```{r load parameters}
## view parameters
## table is passed as a parameter in JSON format
#params$table
## get table from parameters and convert to data frame
paramTable <- as.data.frame(fromJSON(params$table))
paramTable <- as.data.frame(jsonlite::fromJSON(params$table))
#formattable(paramTable)
```
Row {.tabset}
-----------------------------------------------------------------------
### Study details
```{r display table}
if(nrow(paramTable)>0) {
table <- paramTable
table[is.na(table)] <- "-"
if(nrow(table)>0) {
table <- aggregate(table, by=table['nct_id'], function(x) {paste(unique(x), collapse = ";\n")})
table <- table[order(table$combined_score, decreasing = TRUE), ]
datatable(dplyr::select(table,
"Brief title" = "brief_title",
"Matching alteration(s)" = "gene_alteration_type",
"Matching cancer type(s)" = "conditions",
"Eligibility" = "eligibility_rationale",
"Drug rationale" = "intervention_rationale",
"Est. completion date" = "primary_completion_date",
"Last updated" = "last_update_posted_date",
"Matching inclusion criteria" = "matching_criteria",
"Prior Therapy exclusions" = "tx_exclusions",
"Locations" = "locations",
"Contacts" = "contacts",
),
rownames=FALSE, escape = 4,
options = list(ordering=F,
paging = TRUE,
scrollX = TRUE,
scrollY = "70vh",
#scrollCollapse = TRUE,
autoWidth = TRUE,
columnDefs = list(list(width = '500px', targets = list(0)),
list(width = '250px', targets = list(7,8,9)))
)
)
}
} else print("No matching studies based on selected options")
```
### Search details
Date of report: **`r today`**
Cancer type(s): **`r params$cancer_type`**
Synonyms included for selected cancer type(s): **`r params$synonyms`**
Include matches on solid tumour? **`r params$include_solid`**
Genetic alterations included in search: **`r paste(params$genes, collapse=", ")`**
Drug mechanism filters: **`r paste(params$mechanism_filter, collapse=", ")`**
Hide matches on cancer type alone: **`r params$hide_cancer_only`**
### About
#### About us
`r params$about_us`.
We would be grateful for feedback as to utility of this tool – if you have any feedback, or you would like to know more detail about this tool, please contact `r params$contact_email`.
#### What does this tool do?
The digital ECMT cancer trial matching tool is intended to support clinicians in the matching of people with cancer to clinical trials based on their cancer type, genetic alterations and/or trial drug mechanism. This is an early version that could possibly change.
Potential matching trials are ranked according to the following order:
1. Study is enrolling patients with specified genetic alterations, AND specified gene is targeted by a study drug.
2. Study is enrolling patients with specified genetic alterations, AND a study drug targets a gene immediately downstream.
3. Study is enrolling patients with specified genetic alterations.
4. Study drug targets gene of interest.
5. Study drug targets a gene immediately downstream of specified genetic alteration.
6. Match on cancer type alone.
#### Data sources
Trial data are sourced exclusively from clinicaltrials.gov via the Clinical Trials Transformation Initiative (https://www.ctti-clinicaltrials.org/ ).
Data regarding mechanisms of trial interventions are sourced from the NCI Thesaurus: https://ncithesaurus.nci.nih.gov/ncitbrowser/
Data regarding biological pathways are sourced from KEGG (https://www.kegg.jp/kegg/) using the R BioConductor package: https://www.bioconductor.org/
#### Limitations
**Please note that it is not a comprehensive source of information about clinical trials, and its utility not been validated for use in clinical decision making.**
Trials that are not included in clinicaltrials.gov will not be included in the search.
Only studies with at least one site in `r params$country` are included. If you are interested in hosting a site for other countries, please contact `r params$contact_email`.
Data are refreshed daily, but clinicians are advised to contact the relevant investigators to confirm recruitment status.
Study eligibility criteria are tagged with the relevant genetic alterations based on natural language processing – some criteria may be incorrectly tagged, and some relevant criteria may be missed.
### Legal
* The University of Manchester digital ECMT team’s cancer trial matching tool includes content intended for use only by healthcare professionals. This tool does not give professional advice; physicians and other healthcare professionals who use this tool should exercise their own clinical judgment as to the information it provides. Individuals with any type of medical condition are specifically cautioned to seek professional medical advice before beginning any sort of health treatment. For medical concerns, including decisions about medications and other treatments, non-medical users should always consult their physician or other qualified healthcare professional.
* We do not give medical advice, nor do we provide medical or diagnostic services. Medical information changes rapidly. Neither we nor our content providers guarantee that the content of this tool covers all possible uses, directions, precautions, drug interactions, or adverse effects that may be associated with any therapeutic treatments.
* In the absence of any negligence or other breach of duty by us: (1) your reliance upon information and content obtained by you at or through this site is solely at your own risk; and (2) neither we nor our content providers are responsible for any damage or injury (including death) to you, other persons, or property arising from any use of any product, information, idea, or instruction in the content of the tool.
#### Privacy
`r params$privacy_statement`.