Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
sbalci committed Jan 19, 2025
1 parent bc9775c commit 4268e54
Show file tree
Hide file tree
Showing 18 changed files with 537 additions and 5 deletions.
25 changes: 25 additions & 0 deletions R/tumor_response_examples.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#' Example Tumor Response Datasets
#'
#' Example datasets demonstrating different scenarios for tumor response analysis
#'
#' @format A list containing 4 data frames:
#' \describe{
#' \item{raw_with_time}{Raw tumor measurements with time points (20 obs. of 3 variables)}
#' \item{raw_no_time}{Raw tumor measurements without time (10 obs. of 2 variables)}
#' \item{percent_with_time}{Pre-calculated response percentages with time (20 obs. of 3 variables)}
#' \item{percent_no_time}{Pre-calculated response percentages without time (10 obs. of 2 variables)}
#' }
#' @details
#' Each dataset represents a different scenario:
#' \itemize{
#' \item raw_with_time: Longitudinal raw measurements
#' \item raw_no_time: Single timepoint raw measurements
#' \item percent_with_time: Longitudinal percentage changes
#' \item percent_no_time: Single timepoint percentage changes
#' }
#'
#' @examples
#' data(tumor_response_examples)
#' head(tumor_response_examples$raw_with_time)
#' head(tumor_response_examples$percent_no_time)
"tumor_response_examples"
251 changes: 251 additions & 0 deletions data/oncology_response_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
"PatientID","ResponseValue"
"PT0001",63.5
"PT0002",-100
"PT0003",-20.5
"PT0004",55.1
"PT0005",-60.5
"PT0006",-93.6
"PT0007",123.8
"PT0008",-24.4
"PT0009",-59.9
"PT0010",94.3
"PT0011",-54.8
"PT0012",112.9
"PT0013",-100
"PT0014",-23.8
"PT0015",-74.8
"PT0016",-100
"PT0017",-100
"PT0018",17.2
"PT0019",-62.5
"PT0020",-86.2
"PT0021",133
"PT0022",-19.7
"PT0023",-100
"PT0024",-100
"PT0025",16.2
"PT0026",-37.4
"PT0027",-23.1
"PT0028",122.1
"PT0029",-7.3
"PT0030",37.6
"PT0031",135.1
"PT0032",63.8
"PT0033",-14
"PT0034",-68.8
"PT0035",-6
"PT0036",67.8
"PT0037",-6.7
"PT0038",-27.4
"PT0039",44.4
"PT0040",-31.1
"PT0041",-13.6
"PT0042",-21.4
"PT0043",-5.6
"PT0044",-100
"PT0045",-29
"PT0046",-100
"PT0047",64.1
"PT0048",NA
"PT0049",-100
"PT0050",-38.6
"PT0051",6.5
"PT0052",-14.2
"PT0053",-10.7
"PT0054",63.2
"PT0055",-25.4
"PT0056",118.4
"PT0057",-55.8
"PT0058",-22.7
"PT0059",-28.3
"PT0060",-63.6
"PT0061",NA
"PT0062",-100
"PT0063",27.9
"PT0064",-73.7
"PT0065",134.2
"PT0066",16.4
"PT0067",-10.4
"PT0068",NA
"PT0069",-74.2
"PT0070",-14.6
"PT0071",-24.5
"PT0072",18.9
"PT0073",-5.2
"PT0074",NA
"PT0075",-19.4
"PT0076",141
"PT0077",-15.1
"PT0078",2.6
"PT0079",-36.4
"PT0080",19.4
"PT0081",-67
"PT0082",-10.3
"PT0083",-22.8
"PT0084",-76.8
"PT0085",93.4
"PT0086",-34.2
"PT0087",-12.1
"PT0088",12
"PT0089",6.1
"PT0090",NA
"PT0091",-34.9
"PT0092",-29.8
"PT0093",-21.9
"PT0094",-100
"PT0095",-100
"PT0096",71.9
"PT0097",3.7
"PT0098",-63.8
"PT0099",89.4
"PT0100",-74.4
"PT0101",-42
"PT0102",-15.3
"PT0103",-9.5
"PT0104",-25.4
"PT0105",-100
"PT0106",-100
"PT0107",123.8
"PT0108",66.8
"PT0109",-92.4
"PT0110",NA
"PT0111",-33
"PT0112",68.5
"PT0113",124.8
"PT0114",-35.8
"PT0115",-66.4
"PT0116",NA
"PT0117",-26.2
"PT0118",-21.7
"PT0119",-46.9
"PT0120",81.8
"PT0121",4.2
"PT0122",17.5
"PT0123",-62.7
"PT0124",-64.4
"PT0125",92.8
"PT0126",2.6
"PT0127",56.3
"PT0128",-100
"PT0129",18.9
"PT0130",103.7
"PT0131",95.7
"PT0132",-55
"PT0133",-34.9
"PT0134",-100
"PT0135",70.7
"PT0136",-76.3
"PT0137",31.8
"PT0138",-13.9
"PT0139",118.6
"PT0140",-88.2
"PT0141",5.5
"PT0142",18.2
"PT0143",-81.9
"PT0144",34.1
"PT0145",27.2
"PT0146",127.9
"PT0147",-1
"PT0148",-100
"PT0149",-6.5
"PT0150",-11.7
"PT0151",56.4
"PT0152",0
"PT0153",126.4
"PT0154",-25
"PT0155",-32.4
"PT0156",41.9
"PT0157",-25.6
"PT0158",13
"PT0159",-3.8
"PT0160",-52.3
"PT0161",NA
"PT0162",NA
"PT0163",-48.1
"PT0164",-5.5
"PT0165",-32.3
"PT0166",15.3
"PT0167",-59.2
"PT0168",-26.1
"PT0169",-28.8
"PT0170",-4.3
"PT0171",102
"PT0172",-9
"PT0173",13.9
"PT0174",-88
"PT0175",18.9
"PT0176",-16.7
"PT0177",31
"PT0178",-69.9
"PT0179",36.2
"PT0180",95.6
"PT0181",51.2
"PT0182",113.8
"PT0183",-22.6
"PT0184",-22.3
"PT0185",53.7
"PT0186",NA
"PT0187",75.4
"PT0188",27.8
"PT0189",-24.2
"PT0190",-5.9
"PT0191",18.9
"PT0192",125.5
"PT0193",-2.9
"PT0194",-26.3
"PT0195",-6.7
"PT0196",-13
"PT0197",-50.2
"PT0198",-4.3
"PT0199",86.9
"PT0200",90.9
"PT0201",78.2
"PT0202",-89.5
"PT0203",140.9
"PT0204",-29.1
"PT0205",-9.3
"PT0206",-18.6
"PT0207",-100
"PT0208",-88.5
"PT0209",-5.9
"PT0210",2.5
"PT0211",-35.1
"PT0212",-71.4
"PT0213",12.7
"PT0214",-14.9
"PT0215",-64.7
"PT0216",38.6
"PT0217",NA
"PT0218",3.3
"PT0219",-91
"PT0220",76
"PT0221",-69.2
"PT0222",4.8
"PT0223",-52.1
"PT0224",-100
"PT0225",-9.6
"PT0226",59.9
"PT0227",-17.2
"PT0228",3.6
"PT0229",14.6
"PT0230",12.2
"PT0231",NA
"PT0232",-26
"PT0233",11.4
"PT0234",-26.3
"PT0235",-100
"PT0236",34.9
"PT0237",2
"PT0238",61.7
"PT0239",-82.7
"PT0240",-10.3
"PT0241",13
"PT0242",-72.4
"PT0243",-29.8
"PT0244",15.5
"PT0245",-33.1
"PT0246",-63.1
"PT0247",-6.8
"PT0248",-0.2
"PT0249",-36.1
"PT0250",-100
Binary file added data/oncology_response_data.rds
Binary file not shown.
11 changes: 11 additions & 0 deletions data/percent_no_time.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"PatientID","Response"
"PT1",-80
"PT2",-30
"PT3",15
"PT4",35
"PT5",-100
"PT6",-45
"PT7",-25
"PT8",10
"PT9",25
"PT10",-65
Binary file added data/percent_no_time.rda
Binary file not shown.
21 changes: 21 additions & 0 deletions data/percent_with_time.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"PatientID","Time","Response"
"PT1",0,0
"PT1",2,-40
"PT1",4,-60
"PT1",6,-80
"PT2",0,0
"PT2",2,-25
"PT2",4,-35
"PT2",6,-30
"PT3",0,0
"PT3",2,-10
"PT3",4,5
"PT3",6,15
"PT4",0,0
"PT4",2,10
"PT4",4,25
"PT4",6,35
"PT5",0,0
"PT5",2,-60
"PT5",4,-90
"PT5",6,-100
Binary file added data/percent_with_time.rda
Binary file not shown.
11 changes: 11 additions & 0 deletions data/raw_no_time.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"PatientID","Measurement"
"PT1",50
"PT2",40
"PT3",30
"PT4",45
"PT5",25
"PT6",45
"PT7",35
"PT8",28
"PT9",55
"PT10",20
Binary file added data/raw_no_time.rda
Binary file not shown.
21 changes: 21 additions & 0 deletions data/raw_with_time.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"PatientID","Time","Measurement"
"PT1",0,50
"PT1",2,30
"PT1",4,20
"PT1",6,10
"PT2",0,40
"PT2",2,30
"PT2",4,25
"PT2",6,28
"PT3",0,30
"PT3",2,28
"PT3",4,32
"PT3",6,33
"PT4",0,45
"PT4",2,50
"PT4",4,60
"PT4",6,70
"PT5",0,25
"PT5",2,10
"PT5",4,5
"PT5",6,0
Binary file added data/raw_with_time.rda
Binary file not shown.
51 changes: 51 additions & 0 deletions data/tumor_response_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
"","PatientID","Time","Response"
"1","PT1",0,0
"2","PT1",2,-45
"3","PT1",4,-80
"4","PT1",6,-95
"5","PT1",8,-100
"6","PT2",0,0
"7","PT2",2,-20
"8","PT2",4,-35
"9","PT2",6,-40
"10","PT2",8,-38
"11","PT3",0,0
"12","PT3",2,-10
"13","PT3",4,-15
"14","PT3",6,-18
"15","PT3",8,-15
"16","PT4",0,0
"17","PT4",2,5
"18","PT4",4,8
"19","PT4",6,12
"20","PT4",8,15
"21","PT5",0,0
"22","PT5",2,15
"23","PT5",4,25
"24","PT5",6,35
"25","PT5",8,45
"26","PT6",0,0
"27","PT6",2,5
"28","PT6",4,-25
"29","PT6",6,-40
"30","PT6",8,-42
"31","PT7",0,0
"32","PT7",2,-30
"33","PT7",4,-35
"34","PT7",6,-20
"35","PT7",8,15
"36","PT8",0,0
"37","PT8",2,30
"38","PT8",4,50
"39","PT8",6,70
"40","PT8",8,85
"41","PT9",0,0
"42","PT9",2,-5
"43","PT9",4,0
"44","PT9",6,22
"45","PT9",8,35
"46","PT10",0,0
"47","PT10",2,-20
"48","PT10",4,-15
"49","PT10",6,-10
"50","PT10",8,-5
Binary file added data/tumor_response_examples.rda
Binary file not shown.
Loading

0 comments on commit 4268e54

Please sign in to comment.