calculateNres2 | R Documentation |
Performs the generalized calculation for the number of mutated residual genes per patient, with a cap at 2 in accordance to observed saturation, and adjusting for missing information.
calculateNres2( patientRes, genesRes = c("BCOR", "BCORL1", "CEBPA", "ETNK1", "GATA2", "GNB1", "IDH1", "NF1", "PHF6", "PPM1D", "PRPF8", "PTPN11", "SETBP1", "STAG2", "WT1"), Nref = 0.388 )
patientRes |
a patient |
genesRes |
a |
Nref |
the average reference value. |
A vector
with the calculated number under the mean, best, and worst scenarios. If no missing data, all scenarios are equal.
vec <- rep(0, 15) vec[1] <- 1 # 1 mutated genes and no missing data names(vec) <- c("BCOR", "BCORL1", "CEBPA", "ETNK1", "GATA2", "GNB1", "IDH1", "NF1", "PHF6", "PPM1D", "PRPF8", "PTPN11", "SETBP1", "STAG2", "WT1") calculateNres2(patientRes = vec) vec1 <- vec vec1[2:3] <- NA # 1 mutated genes and 2 missing calculateNres2(patientRes = vec1) # scenarios are now different vec2 <- vec1 vec2[4] <- 1 # 2 mutated genes and 2 missing calculateNres2(patientRes = vec2) # scenarios are equal, because the number is capped at 2 mutated genes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.