How to merge multiple MAF files into one MAF file ? #822
Answered
by
PoisonAlien
GAUSS66-well
asked this question in
Q&A
-
Hello, I'm a rookie of R language. I want to merge multiple MAF files into one MAF file and export table or txt file to my computer. All MAFS are in one folder. What should I do? thanks a lot. |
Beta Was this translation helpful? Give feedback.
Answered by
PoisonAlien
Apr 15, 2022
Replies: 1 comment 3 replies
-
Hi, 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. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
GAUSS66-well
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Sorry for the late reply. You could just list all the maf files and use the function
marge_mafss()
.Hope this helps.