Skip to content

How to merge multiple MAF files into one MAF file ? #822

Answered by PoisonAlien
GAUSS66-well asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
Sorry for the late reply. You could just list all the maf files and use the function marge_mafss().

maf_files = list.files(path = "D:\downs\mutation\files", pattern = "*.\\.maf\$", full.names = TRUE)
mymaf = maftools::merge_mafs(mafs = maf_files, verbose = TRUE)
maftools::write.mafSummary(maf = mymaf, basename = "mymaf")

Hope this helps.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@GAUSS66-well
Comment options

@amarinderthind
Comment options

@amarinderthind
Comment options

Answer selected by GAUSS66-well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants