[BioC] DNAcopy

Sean Davis sdavis2 at mail.nih.gov
Thu Jun 9 20:53:36 CEST 2011


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



More information about the Bioconductor mailing list