Skip to contents

Get data for calculating actual values

Usage

getData2computeActualFixEffect(groundTruth)

Arguments

groundTruth

The ground truth data frame

Value

A list containing required data for calculating actual values

Examples

input_var_list <- init_variable()
#> Variable name should not contain digits, spaces, or special characters.
#> If any of these are present, they will be removed from the variable name.
mock_data <- mock_rnaseq(input_var_list, 10, 2, 2)
#> Building mu_ij matrix
#> INFO: 5 genes have all(mu_ij) < 1, indicating very low counts. Consider removing them for future analysis using prepareData2fit with row_threshold = 10. To detect them in future experiment, try increasing sequencing depth.
#> k_ij ~ Nbinom(mu_ij, dispersion)
#> Counts simulation: Done
getData2computeActualFixEffect(mock_data$groundTruth$effect)
#> $categorical_vars
#> [1] "label_myVariable"
#> 
#> $data
#>     logQij_mean geneID label_myVariable
#> 1   0.238133331  gene1      myVariable1
#> 2  -0.001773283 gene10      myVariable1
#> 3   0.157385085  gene2      myVariable1
#> 4  -0.054364774  gene3      myVariable1
#> 5  -0.057260030  gene4      myVariable1
#> 6  -0.018911091  gene5      myVariable1
#> 7   0.142898137  gene6      myVariable1
#> 8   0.259318868  gene7      myVariable1
#> 9  -0.168411763  gene8      myVariable1
#> 10 -0.056805291  gene9      myVariable1
#> 11 -0.009507817  gene1      myVariable2
#> 12 -0.589816757 gene10      myVariable2
#> 13  0.233336822  gene2      myVariable2
#> 14 -0.062740857  gene3      myVariable2
#> 15 -0.160688053  gene4      myVariable2
#> 16 -0.014809301  gene5      myVariable2
#> 17  0.024943673  gene6      myVariable2
#> 18 -0.222898585  gene7      myVariable2
#> 19 -0.300858842  gene8      myVariable2
#> 20  0.008573808  gene9      myVariable2
#>