Skip to contents

Function to obtain data from gDRtestData and prepare for unit tests

Usage

get_testdata_codilution()

Value

list with drugs, cell_lines, raw_data and assay_data

Examples

get_testdata_codilution()
#> $drug_names
#> [1] "drug_002" "drug_003" "drug_004"
#> 
#> $cell_line_names
#> [1] "cellline_AA" "cellline_BA"
#> 
#> $dt
#>    Drug Name Cell Line Name
#>       <char>         <char>
#> 1:  drug_002    cellline_AA
#> 2:  drug_003    cellline_AA
#> 3:  drug_004    cellline_AA
#> 4:  drug_002    cellline_BA
#> 5:  drug_003    cellline_BA
#> 6:  drug_004    cellline_BA
#>                                                      rId
#>                                                   <char>
#> 1: G00002_drug_002_moa_A_G00001_drug_001_moa_A_72_0.0005
#> 2: G00003_drug_003_moa_A_G00001_drug_001_moa_A_72_0.0005
#> 3: G00004_drug_004_moa_A_G00001_drug_001_moa_A_72_0.0005
#> 4: G00002_drug_002_moa_A_G00001_drug_001_moa_A_72_0.0005
#> 5: G00003_drug_003_moa_A_G00001_drug_001_moa_A_72_0.0005
#> 6: G00004_drug_004_moa_A_G00001_drug_001_moa_A_72_0.0005
#>                                cId   EC50  x_AOC   h RV GEC50 GR Max   ec50
#>                             <char>  <num>  <num> <lgcl> <num>  <num> <lgcl>
#> 1: CL00010_cellline_AA_tissue_x_22 0.9720 0.0280     NA   Inf 0.9720     NA
#> 2: CL00010_cellline_AA_tissue_x_22 0.9700 0.0300     NA   Inf 0.9700     NA
#> 3: CL00010_cellline_AA_tissue_x_22 0.9720 0.0280     NA   Inf 0.9720     NA
#> 4: CL00011_cellline_BA_tissue_x_26 0.9885 0.0115     NA   Inf 0.9885     NA
#> 5: CL00011_cellline_BA_tissue_x_26 0.9935 0.0065     NA   Inf 0.9935     NA
#> 6: CL00011_cellline_BA_tissue_x_26 0.9985 0.0015     NA   Inf 0.9985     NA
#>    GR Inf   GR 0   h GR  E Inf p_value    rss    E0             fit_type
#>    <lgcl> <lgcl> <lgcl> <lgcl>  <lgcl> <lgcl> <num>               <char>
#> 1:     NA     NA     NA     NA      NA     NA     0 DRCTooFewPointsToFit
#> 2:     NA     NA     NA     NA      NA     NA     0 DRCTooFewPointsToFit
#> 3:     NA     NA     NA     NA      NA     NA     0 DRCTooFewPointsToFit
#> 4:     NA     NA     NA     NA      NA     NA     0 DRCTooFewPointsToFit
#> 5:     NA     NA     NA     NA      NA     NA     0 DRCTooFewPointsToFit
#> 6:     NA     NA     NA     NA      NA     NA     0 DRCTooFewPointsToFit
#>    Concentration N_conc normalization_type fit_source Gnumber Drug MOA
#>            <num>  <int>             <char>     <char>  <char>   <char>
#> 1:      -3.30103      1                 RV        gDR  G00002    moa_A
#> 2:      -3.30103      1                 RV        gDR  G00003    moa_A
#> 3:      -3.30103      1                 RV        gDR  G00004    moa_A
#> 4:      -3.30103      1                 RV        gDR  G00002    moa_A
#> 5:      -3.30103      1                 RV        gDR  G00003    moa_A
#> 6:      -3.30103      1                 RV        gDR  G00004    moa_A
#>    Gnumber_2 Drug Name 2 Drug MOA2 Duration Concentration 2    clid   Tissue
#>       <char>      <char>    <char>    <num>           <num>  <char>   <char>
#> 1:    G00001    drug_001     moa_A       72           5e-04 CL00010 tissue_x
#> 2:    G00001    drug_001     moa_A       72           5e-04 CL00010 tissue_x
#> 3:    G00001    drug_001     moa_A       72           5e-04 CL00010 tissue_x
#> 4:    G00001    drug_001     moa_A       72           5e-04 CL00011 tissue_x
#> 5:    G00001    drug_001     moa_A       72           5e-04 CL00011 tissue_x
#> 6:    G00001    drug_001     moa_A       72           5e-04 CL00011 tissue_x
#>    ReferenceDivisionTime   GR50   IC50  E Max GR value
#>                    <num>  <num>  <num>  <num>    <num>
#> 1:                    22 0.9720 0.9720 0.9720   0.9720
#> 2:                    22 0.9700 0.9700 0.9700   0.9700
#> 3:                    22 0.9720 0.9720 0.9720   0.9720
#> 4:                    26 0.9885 0.9885 0.9885   0.9885
#> 5:                    26 0.9935 0.9935 0.9935   0.9935
#> 6:                    26 0.9985 0.9985 0.9985   0.9985
#> 
#> $raw_data
#>                                                                     rId
#>                                                                  <char>
#>   1:              G00002_drug_002_moa_A_G00001_drug_001_moa_A_72_0.0005
#>   2:              G00002_drug_002_moa_A_G00001_drug_001_moa_A_72_0.0005
#>   3: G00002_drug_002_moa_A_G00001_drug_001_moa_A_72_0.00158113883008419
#>   4: G00002_drug_002_moa_A_G00001_drug_001_moa_A_72_0.00158113883008419
#>   5:               G00002_drug_002_moa_A_G00001_drug_001_moa_A_72_0.005
#>  ---                                                                   
#> 104:                 G00004_drug_004_moa_A_G00001_drug_001_moa_A_72_0.5
#> 105:    G00004_drug_004_moa_A_G00001_drug_001_moa_A_72_1.58113883008419
#> 106:    G00004_drug_004_moa_A_G00001_drug_001_moa_A_72_1.58113883008419
#> 107:                   G00004_drug_004_moa_A_G00001_drug_001_moa_A_72_5
#> 108:                   G00004_drug_004_moa_A_G00001_drug_001_moa_A_72_5
#>                                  cId x_mean  x_AOC x_AOC_range  xc50  x_max
#>                               <char>  <num>  <num>      <lgcl> <num>  <num>
#>   1: CL00010_cellline_AA_tissue_x_22 0.9720 0.0280          NA   Inf 0.9720
#>   2: CL00010_cellline_AA_tissue_x_22 0.9827 0.0173          NA   Inf 0.9827
#>   3: CL00010_cellline_AA_tissue_x_22 0.8084 0.1916          NA   Inf 0.8084
#>   4: CL00010_cellline_AA_tissue_x_22 0.8742 0.1258          NA   Inf 0.8742
#>   5: CL00010_cellline_AA_tissue_x_22 0.5138 0.4862          NA   Inf 0.5138
#>  ---                                                                       
#> 104: CL00011_cellline_BA_tissue_x_26 0.5872 0.4128          NA   Inf 0.5872
#> 105: CL00011_cellline_BA_tissue_x_26 0.5272 0.4728          NA   Inf 0.5272
#> 106: CL00011_cellline_BA_tissue_x_26 0.5872 0.4128          NA   Inf 0.5872
#> 107: CL00011_cellline_BA_tissue_x_26 0.5272 0.4728          NA   Inf 0.5272
#> 108: CL00011_cellline_BA_tissue_x_26 0.5872 0.4128          NA   Inf 0.5872
#>        ec50  x_inf    x_0      h     r2 p_value    rss x_sd_avg
#>      <lgcl> <lgcl> <lgcl> <lgcl> <lgcl>  <lgcl> <lgcl>    <num>
#>   1:     NA     NA     NA     NA     NA      NA     NA        0
#>   2:     NA     NA     NA     NA     NA      NA     NA        0
#>   3:     NA     NA     NA     NA     NA      NA     NA        0
#>   4:     NA     NA     NA     NA     NA      NA     NA        0
#>   5:     NA     NA     NA     NA     NA      NA     NA        0
#>  ---                                                           
#> 104:     NA     NA     NA     NA     NA      NA     NA        0
#> 105:     NA     NA     NA     NA     NA      NA     NA        0
#> 106:     NA     NA     NA     NA     NA      NA     NA        0
#> 107:     NA     NA     NA     NA     NA      NA     NA        0
#> 108:     NA     NA     NA     NA     NA      NA     NA        0
#>                  fit_type maxlog10Concentration N_conc normalization_type
#>                    <char>                 <num>  <int>             <char>
#>   1: DRCTooFewPointsToFit              -3.30103      1                 RV
#>   2: DRCTooFewPointsToFit              -3.30103      1                 GR
#>   3: DRCTooFewPointsToFit              -2.80103      1                 RV
#>   4: DRCTooFewPointsToFit              -2.80103      1                 GR
#>   5: DRCTooFewPointsToFit              -2.30103      1                 RV
#>  ---                                                                     
#> 104: DRCTooFewPointsToFit              -0.30103      1                 GR
#> 105: DRCTooFewPointsToFit               0.19897      1                 RV
#> 106: DRCTooFewPointsToFit               0.19897      1                 GR
#> 107: DRCTooFewPointsToFit               0.69897      1                 RV
#> 108: DRCTooFewPointsToFit               0.69897      1                 GR
#>      fit_source Gnumber DrugName drug_moa Gnumber_2 DrugName_2 drug_moa_2
#>          <char>  <char>   <char>   <char>    <char>     <char>     <char>
#>   1:        gDR  G00002 drug_002    moa_A    G00001   drug_001      moa_A
#>   2:        gDR  G00002 drug_002    moa_A    G00001   drug_001      moa_A
#>   3:        gDR  G00002 drug_002    moa_A    G00001   drug_001      moa_A
#>   4:        gDR  G00002 drug_002    moa_A    G00001   drug_001      moa_A
#>   5:        gDR  G00002 drug_002    moa_A    G00001   drug_001      moa_A
#>  ---                                                                     
#> 104:        gDR  G00004 drug_004    moa_A    G00001   drug_001      moa_A
#> 105:        gDR  G00004 drug_004    moa_A    G00001   drug_001      moa_A
#> 106:        gDR  G00004 drug_004    moa_A    G00001   drug_001      moa_A
#> 107:        gDR  G00004 drug_004    moa_A    G00001   drug_001      moa_A
#> 108:        gDR  G00004 drug_004    moa_A    G00001   drug_001      moa_A
#>      Duration Concentration_2    clid CellLineName   Tissue
#>         <num>           <num>  <char>       <char>   <char>
#>   1:       72     0.000500000 CL00010  cellline_AA tissue_x
#>   2:       72     0.000500000 CL00010  cellline_AA tissue_x
#>   3:       72     0.001581139 CL00010  cellline_AA tissue_x
#>   4:       72     0.001581139 CL00010  cellline_AA tissue_x
#>   5:       72     0.005000000 CL00010  cellline_AA tissue_x
#>  ---                                                       
#> 104:       72     0.500000000 CL00011  cellline_BA tissue_x
#> 105:       72     1.581138830 CL00011  cellline_BA tissue_x
#> 106:       72     1.581138830 CL00011  cellline_BA tissue_x
#> 107:       72     5.000000000 CL00011  cellline_BA tissue_x
#> 108:       72     5.000000000 CL00011  cellline_BA tissue_x
#>      ReferenceDivisionTime
#>                      <num>
#>   1:                    22
#>   2:                    22
#>   3:                    22
#>   4:                    22
#>   5:                    22
#>  ---                      
#> 104:                    26
#> 105:                    26
#> 106:                    26
#> 107:                    26
#> 108:                    26
#>