[BioC] venn diagrams

David Lyon david_lyon3 at yahoo.com
Sat Jun 5 21:22:59 CEST 2010


Thank you very much that works.

Cheers!




----- Original Message ----
From: Thomas Girke <thomas.girke at ucr.edu>
To: David Lyon <david_lyon3 at yahoo.com>
Cc: Steffen Möller <steffen_moeller at gmx.de>; bioconductor at stat.math.ethz.ch
Sent: Sat, June 5, 2010 3:15:45 PM
Subject: Re: [BioC] venn diagrams

Your have to turn your sets into vectors objects first. You 
could do this in one step with readLines 

A <- readLines("A.file")

or after read.delim() you would convert the resulting data frames to
vectors like this:

A <- read.delim ("A.file")
A <- as.character(as.matrix(A))

Thomas

On Sat, Jun 05, 2010 at 11:50:34AM -0700, David Lyon wrote:
> Thanks for your efforts Steffen.
> 
> If anyone knows exactly how to get this working I would be appreciative:
> 
> 
> 
> 
> eg:
> library(gplots)
> A <- read.delim ("A.file")
> B <- read.delim ("B.file")
> C <- read.delim ("C.file")
> input<-list(A,B,C)
> venn(input)
> 
> its returns the venn 
> diagram from only the first row from each file , how do I change the 
> code so it uses every data point in each column.
> 
> 
> Thanks
> 
> 
> 
> contents 
> of A.file
> 1
> 2
> 3
> 4
> 
> contents of B.file
> 1
> 2
> 3
> 4
> 
> contents of C.file
> 1
> 2
> 3
> 4
> 
> 
> 
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
> 







More information about the Bioconductor mailing list