@@ -210,6 +210,90 @@ NULL
210
210
NULL
211
211
212
212
213
+
214
+
215
+ # ' Simple demo drug screening for one drug (Methotrexate). The results have
216
+ # ' been generated for demonstration purpose. There is two studies present in
217
+ # ' the dataset. There is also only two types of screening in the dataset. Some
218
+ # ' entries have a value for a second drug. There is not entry for a third
219
+ # ' drug. There is no background drug. At last, there is two types of dosage.
220
+ # '
221
+ # ' @name drugScreeningMethoSet
222
+ # '
223
+ # ' @docType data
224
+ # '
225
+ # ' @aliases drugScreeningMethoSet
226
+ # '
227
+ # ' @format a \code{data.frame} with the following columns:
228
+ # ' \itemize{
229
+ # ' \item \code{organoid_id} { a \code{character} string representing the
230
+ # ' organoid identifier. }
231
+ # ' \item \code{timestamp} { a \code{character} string representing the date
232
+ # ' when the screening was done. }
233
+ # ' \item \code{study} { a \code{character} string representing the study. }
234
+ # ' \item \code{screen_type} { a \code{character} string representing the
235
+ # ' screen type. }
236
+ # ' \item \code{drug_a} { a \code{character} string representing the name of
237
+ # ' the first drug used for the drug screen. There is at least one drug used
238
+ # ' in a drug screening.}
239
+ # ' \item \code{drug_b} { a \code{character} string representing the name of
240
+ # ' the second drug used for the drug screen. When no second drug has been
241
+ # ' used, the value is \code{'N/A'}. }
242
+ # ' \item \code{drug_c} { a \code{character} string representing the name of
243
+ # ' the third drug used for the drug screen. When no third drug has been
244
+ # ' used, the value is \code{'N/A'}. }
245
+ # ' \item \code{drug_background} { a \code{character} string representing the
246
+ # ' name of
247
+ # ' the drug used as background for the drug screen. When no drug has been used
248
+ # ' as background, the value is \code{'N/A'}. }
249
+ # ' \item \code{dosage_type} { a \code{character} string representing the type
250
+ # ' of dosage. }
251
+ # ' \item \code{relative_auc} { a \code{numeric}
252
+ # ' representing the relative AUC (area under the curve) for the specified
253
+ # ' organoids under specific conditions. The AUC is calculated using the
254
+ # ' percentage of viability under different drug concentrations. So, the same
255
+ # ' relative AUC is repeated on multiple lines.}
256
+ # ' }
257
+ # '
258
+ # ' @seealso
259
+ # ' \itemize{
260
+ # ' \item \code{\link{getClassOneDrug}} { for selecting the organoids
261
+ # ' with sensitive and resistant behavior for a
262
+ # ' specific drug screening.}
263
+ # ' }
264
+ # '
265
+ # ' @usage data(drugScreeningMethoSet)
266
+ # '
267
+ # ' @keywords datasets
268
+ # '
269
+ # ' @examples
270
+ # '
271
+ # ' ## Load drug screen dataset and patient information for methotrexate
272
+ # ' data(drugScreeningMethoSet)
273
+ # ' data(patientInfoMethoSet)
274
+ # '
275
+ # ' ## Retain unreplicated samples
276
+ # ' cleanData <- selectNoReplicateOrganoids(drugScreening=drugScreeningMethoSet,
277
+ # ' patientInfo=patientInfoMethoSet)
278
+ # '
279
+ # ' ## Calculate the extreme organoids for the methotrexate drug screening
280
+ # ' ## using a quantile of 1/3
281
+ # ' results <- getClassOneDrug(drugScreening=cleanData,
282
+ # ' drugName="Methotrexate", study="MEGA-TEST", screenType="TEST-01",
283
+ # ' doseType="Averaged", quantile=1/3)
284
+ # '
285
+ # ' ## The information of the extreme organoids is found it the 'extreme' entry
286
+ # ' head(results$extreme)
287
+ # '
288
+ # ' ## Fisher test on ancestry
289
+ # ' fisherT <- fisherCategoricalVariable(drugQuantile=results,
290
+ # ' category="ancestry")
291
+ # '
292
+ # ' fisherT
293
+ # '
294
+ NULL
295
+
296
+
213
297
# ' Simple demo patient information dataset. The information is related to the
214
298
# ' organoids present in the 'drugScreening' dataset.
215
299
# '
@@ -235,9 +319,12 @@ NULL
235
319
# ' \item \code{\link{selectNoReplicateOrganoids}} { for selecting
236
320
# ' the unrelated samples (only one sample per patient) from a drug screening
237
321
# ' dataset.}
322
+ # ' \item \code{\link{fisherCategoricalVariable}} { for running Fisher tests
323
+ # ' in the sensitive and resistant groups using a categorical value
324
+ # ' from a drug screening dataset.}
238
325
# ' }
239
326
# '
240
- # ' @usage data(drugScreening )
327
+ # ' @usage data(patientInfo )
241
328
# '
242
329
# ' @keywords datasets
243
330
# '
@@ -258,3 +345,71 @@ NULL
258
345
# '
259
346
# '
260
347
NULL
348
+
349
+
350
+ # ' Simple demo patient information dataset. The information is related to the
351
+ # ' organoids present in the 'drugScreening' dataset.
352
+ # '
353
+ # ' @name patientInfoMethoSet
354
+ # '
355
+ # ' @docType data
356
+ # '
357
+ # ' @aliases patientInfoMethoSet
358
+ # '
359
+ # ' @format a \code{data.frame} with the following columns:
360
+ # ' \itemize{
361
+ # ' \item \code{organoid_id} { a \code{character} string representing the
362
+ # ' organoid identifier. }
363
+ # ' \item \code{patient_id} { a \code{character} string representing the patient
364
+ # ' identifier. }
365
+ # ' \item \code{ancestry} { a \code{character} string representing the patient
366
+ # ' genetic ancestry. }
367
+ # ' \item \code{BMI} { a \code{character} string representing the patient
368
+ # ' BMI class. }
369
+ # ' }
370
+ # '
371
+ # ' @seealso
372
+ # ' \itemize{
373
+ # ' \item \code{\link{getClassOneDrug}} { for selecting the samples
374
+ # ' with sensitive and resistant behavior for a
375
+ # ' specific drug screening dataset.}
376
+ # ' \item \code{\link{selectNoReplicateOrganoids}} { for selecting
377
+ # ' the unrelated samples (only one sample per patient) from a drug screening
378
+ # ' dataset.}
379
+ # ' \item \code{\link{fisherCategoricalVariable}} { for running Fisher tests
380
+ # ' in the sensitive and resistant groups using a categorical value
381
+ # ' from a drug screening dataset.}
382
+ # ' }
383
+ # '
384
+ # ' @usage data(patientInfoMethoSet)
385
+ # '
386
+ # ' @keywords datasets
387
+ # '
388
+ # ' @examples
389
+ # '
390
+ # ' ## Load drug screen dataset for methotrexate dataset
391
+ # ' data(drugScreening)
392
+ # '
393
+ # ' ## Load patient information dataset for methotrexate dataset
394
+ # ' data(patientInfoMethoSet)
395
+ # '
396
+ # ' ## Retain unreplicated samples
397
+ # ' cleanData <- selectNoReplicateOrganoids(drugScreening=drugScreeningMethoSet,
398
+ # ' patientInfo=patientInfoMethoSet)
399
+ # '
400
+ # ' ## Calculate the extreme organoids for the methotrexate drug screening
401
+ # ' ## using a quantile of 1/3
402
+ # ' results <- getClassOneDrug(drugScreening=cleanData,
403
+ # ' drugName="Methotrexate", study="MEGA-TEST", screenType="TEST-01",
404
+ # ' doseType="Averaged", quantile=1/4)
405
+ # '
406
+ # ' ## The information of the extreme organoids is found it the 'extreme' entry
407
+ # ' head(results$extreme)
408
+ # '
409
+ # ' ## Fisher test on BMI
410
+ # ' fisherT <- fisherCategoricalVariable(drugQuantile=results, category="BMI")
411
+ # '
412
+ # ' fisherT
413
+ # '
414
+ # '
415
+ NULL
0 commit comments