Re: [R] string splitting and testing for enrichment

2009-06-20 Thread Gabor Grothendieck
Try this. We read in data and split TFBS on "(" or ") " or ")" giving s and reform s into a matrix prepending the Gene name as column 1. Convert that to a data frame and make the third column numeric. Lines <- "Gene,TFBS NUDC,PPARA(1) HNF4(20) HNF4(96) AHRARNT(104) CACBINDINGPROTEIN(149) T3R(16

[R] string splitting and testing for enrichment

2009-06-20 Thread Iain Gallagher
Hi List I have data in the following form: Gene    TFBS NUDC     PPARA(1) HNF4(20) HNF4(96) AHRARNT(104) CACBINDINGPROTEIN(149) T3R(167) HLF(191) RPA2     STAT4(57) HEB(251) TAF12     PAX3(53) YY1(92) BRCA(99) GLI(101) EIF3I     NERF(10) P300(10) TRAPPC3     HIC1(3) PAX5(17) PAX5(110) NRF1(1