#!/usr/bin/env Rscript
# Convert maf file with Ref_Tri column into catalog
library('argparse')
library('tempoSig')
parser <- ArgumentParser(description = 'Construct mutational catalog from MAF file with Ref_Tri column')
parser$add_argument('maf', metavar = 'MAF',
help = 'input MAF file')
parser$add_argument('catalog', metavar = 'CATALOG',
help = 'output catalog file')
args <- parser$parse_args()
catalog <- maf2cat(maf = args$maf)
write.table(catalog, file = args$catalog, quote = F, sep = '\t')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.