Entering edit mode
7.5 years ago
adakoury
•
0
I want to export my variant annotation results to a table and save it in my computer hard drive. I tried this "write.table(mydata, "G:/mydata.txt", sep="\t")" but did not work.
Could you show a sample from your data ? Also are you about the given location
G:/mydata.txt
is existing ?Sorry I did not get the second part of the question " Also are you about the given location G:/mydata.txt is existing ?" I changed to my working directory (K drive) but did not help
I was trying to say are you sure about that directory is existing but I made a typo. Anyways, first of all this is not a regular R data frame. It is called Granges object. ( https://www.bioconductor.org/packages/devel/bioc/vignettes/GenomicRanges/inst/doc/GenomicRangesIntroduction.pdf —> check for more detailed info.).
I found a previous post about similar problem. Actually I think this is what you want.
How To Write Data In A Granges Object To A Bed File.
Give it a try to this link, if you can't solve it. I will help you.
Edit: This is not what you want, but it is similar.