This function generates applies the unpaired Mann-Whitney test to compare the distribution of TMB values between immunotherapy responders and nonresponders.

compareTMBdistribution(dataset, TMB)

Arguments

dataset

a data.frame object with the following fields: patient identifier, numeric TMB value and response to immunotherapy, expressed as "responders" or "nonresponders"

TMB

name of the data.frame column containing TMB values

Value

Returns the statistics from Wilcoxon test

Author

Laura Fancello

Examples

## Compare TMB distribution between immunotherapy responders and nonresponders ## using the unpaired Mann-Whitney test # Read TMB values and response to immunotherapy data(Hellman_SimulatedFM1Panel_WES) # Compare TMB distribtions by Wilcoxon test compareTMBdistribution(dataset = Hellman_SimulatedFM1Panel_WES, TMB = "WES.NumMuts")
#> Warning: cannot compute exact p-value with ties
#> #> Wilcoxon rank sum test with continuity correction #> #> data: as.numeric(as.vector(df$TMB)) by as.factor(df$ClinicalResponse) #> W = 370.5, p-value = 0.02615 #> alternative hypothesis: true location shift is not equal to 0 #>