compareTMBdistribution.Rd
This function generates applies the unpaired Mann-Whitney test to compare the distribution of TMB values between immunotherapy responders and nonresponders.
compareTMBdistribution(dataset, TMB)
dataset | a |
---|---|
TMB | name of the |
Returns the statistics from Wilcoxon test
Laura Fancello
## 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 #>