Good morning,
I was wondering if someone could advise me on the following:
I have read a maf file via
read.maf(path.maf)
then I did some modifications. Now I would like to simply write this maf file again in the same format as a read it. I was looking for a function
write.maf
but I came only along the funciton write.mafSummary which I feel will modify the file. Any suggestions how I could save it so that afterwards I can simply read it again via read.maf?
Thanks so much!
I have moved this from a comment to an answer.
To reiterate MAF is not a format in the classical sense of a novel and complex information structure.
MAF means a tab delimited text format where certain columns have to be present,
hence, the simplest way to modify it is to just read in a tab-delimited, column-based file, modify the column and save it right back with
write.table