View source: R/extract_cancer_response.R
extract_cancer_response | R Documentation |
Convenience function for extracting cancer (response) categories corresponding to all tumors in a maf file for use in a hidden genome classifier
extract_cancer_response(
maf,
cancer_col = "cancer",
sample_id_col = "sample",
...
)
maf |
mutation annotation file – a data frame-like object with at least two columns – one providing sample ids of tumor and one providing the associated cancer categories |
cancer_col |
name of the column in |
sample_id_col |
name of the column in |
... |
Unused. |
Returns a character vector containing cancer sites as determined from cancer_col in maf, and named according to sample_id_col in maf.
data("impact")
cancer_resp <- extract_cancer_response(
maf = impact,
cancer_col = "CANCER_SITE",
sample_id_col = "patient_id"
)
head(cancer_resp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.