View source: R/fct_cor_mutations.R
cor_mutations | R Documentation |
For each of the 19.537 genes present in the
data_mutations
data set, perform a Mann-Whitney test
wilcox.test
to determine whether cell lines containing a mutant version of the gene respond
differently than cell lines with the wild-type version of the gene. The Mann-Whitney
test is chosen, rather than the Student's t-test, because it does not
assume that the response values in the two groups are normally distributed.
cor_mutations(data, response, ids = "depmap_id", fdr = 0.05)
data |
A tibble. |
response |
Column containing response data |
ids |
Column containing DepMap IDs of cell lines |
fdr |
False discovery rate. Number between 0 and 1 representing the likelihood that a gene predicted to be significant is actually a false-positive. |
A tibble with 19,537 rows and 4 columns. Each row contains the correlation values for a single gene.
Hugo gene symbol
The relative increase or decrease in cell line response associated with mutation of the gene. Calculated as log2( mutant response / wildtype response )
Probability that the null hypothesis is true (there is no relationship between gene mutation and cell line response)
Whether the correlation is deemed significant after multiple hypothesis correction with the given false discovery rate
# Setup example data set df <- tibble::tibble( CellLine = c("LS513", "253-J", "NIH:OVCAR-3"), DepMapID = c("ACH-000007", "ACH-000011", "ACH-000001"), logIC50 = c(-2.8, -4.04, -6.23) ) cor_mutations( data = df, response = "logIC50", ids = "DepMapID", fdr = 0.01 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.