DNAcopy
1
0
Entering edit mode
Yan Jiao ▴ 140
@yan-jiao-4354
Last seen 10.3 years ago
Dear all I'm using DNAcopy package to do copynumber segmentation, I'm just wondering how to output the result to a file? the class of the object is DNAcopy, I could use print() to see it on the screen , i want to either change the result into a matrix format or write it directly to a .txt file or .csv file Many thanks Yan
DNAcopy copynumber DNAcopy copynumber • 1.7k views
ADD COMMENT
2
Entering edit mode
@sean-davis-490
Last seen 4 months ago
United States
I On Thu, Jun 9, 2011 at 1:54 PM, Yan Jiao <y.jiao at="" ucl.ac.uk=""> wrote: > Dear all > > I'm using DNAcopy package to do copynumber segmentation, I'm just wondering how to output the result to a file? > the class of the object is DNAcopy, I could use print() to see it on the screen , i want to either change the result into a matrix format or write it directly to a .txt file or .csv file Hi, Yan. If you have a DNAcopy object called 'dnac', for example, something like this should do it (untested): write.table(dnac$output,file='dnacopy.txt',sep="\t") You can read the help for write.table for more details. You can use str(dnac) to get details of the object in case you need other information from the dnac object. Hope that helps, Sean
ADD COMMENT

Login before adding your answer.

Traffic: 549 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6