maf2variants | R Documentation |
Change the maf object into variants data frame for the subclonal structures analysis.
maf2variants(maf, patient.id = NULL, ccf.cutoff = 0.1, extract.VAF = FALSE)
maf |
Maf or MafList object generated by |
patient.id |
Select the specific patients. Default |
ccf.cutoff |
Removing low-CCF mutations (default: 0.1). |
extract.VAF |
Whether extract the VAF information. Default |
This function extracts the Cluster
information from the CCF data. Therefore, the Cluster
column is required in the ccfFile.
For the output variants
, the first five columns are Mutid, Hugo_Symbol, Variant_Classification, Patient_ID, Cluster. The remaining columns indicate variant cellular prevalence for each sample.
#' data.type <- "split1" maf1 <- readMaf( mafFile = system.file(package = "MPTevol", "extdata", sprintf("meskit.%s.mutation.txt", data.type)), ccfFile = system.file(package = "MPTevol", "extdata", sprintf("meskit.%s.CCF.txt", data.type)), clinicalFile = system.file(package = "MPTevol", "extdata", sprintf("meskit.%s.clinical.txt", data.type)), refBuild = "hg19", ccf.conf.level = 0.95 ) ccfs = maf2variants(maf1, patient.id = "Met1") #extract VAF rather than CCF. vafs = maf2variants(maf1, patient.id = "Met1", extract.VAF = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.