[BioC] Replacing commas with new lines in R

Ovokeraye Achinike-Oduaran ovokeraye at gmail.com
Mon Jun 4 14:03:53 CEST 2012


Hi all,

I have a file that looks like this (the genes column from different
DAVID functional annotation chart categories). I would like to replace
the commas with new lines if possible so that I can have a single gene
per row. How can I possibly do this in R?

Thanks.

Regards,

Avoks

[1] DCD, PPARG, FTO, IGF2BP2, TSPAN8, CDKAL1, LGR5, KCNJ11, TCF7L2,
THADA, NOTCH2, HHEX, ADAMTS9, CDKN2A, CDKN2B, VEGFA, SYN2, CDC123,
JAZF1, ADAM30, CAMK1D
[2] HHEX, CDKN2A, CDKN2B, PPARG, IGF2BP2, CDKAL1, SLC30A8, KCNJ11,
TCF7L2
[3] HHEX, CDKN2B, FTO, PPARG, IGF2BP2, CDKAL1, SLC30A8, KCNJ11, TCF7L2
[4] HHEX, CDKN2A, CDKN2B, PPARG, IGF2BP2, CDKAL1, SLC30A8, KCNJ11,
TCF7L2
[5] STRAP, U2AF2, SNRPD1, XAB2, YBX1, SART1, NONO, HNRNPA3, HNRNPK,
SRRM2, CDC40, DHX15, SRRM1, QKI, LSM2, PRPF31, PTBP1, SF1, RNPS1,
CDC5L, SF3A2, HNRNPU, RBMY1A1, EIF4A3, SFPQ, KHSRP, RBM38, SNRPE
[6] MAEA, AURKAIP1, PML, SMAD3, IGF1, CDC16, GAS1, RCC1, PROX1, TGFB1,
TRIAP1, CDKN2A, CDKN2B, HNF4A, CDC123, PEBP1, RBM38, FOXC1, TPR,
RAD17, SMARCA4, APC, DLG1



More information about the Bioconductor mailing list