Hello,
this is my list of genes:
Genes_LIST = c ("CXCL8,CCL5,CCR3,CCR4,CCR5,CXCL12,ACKR3,CXCR4,CCR7,CCL19,CCL21,CCL13,CCR2,CXCR6,CXCL16,ACKR4,CCL25,CXCR3,CXCL9,XCL10,CXCL11,CXCL13,CXCR5,CXCR2,CXCL5,CXCL2,CXCL1,CXCL3,PPBP,CXCL6,PF4,CCR8,CCR1,CCL16,ACKR2,CCL7,CCL3,CCL3L1,CCL17,CCL11,CCL2,CCL22,CCL4,CCR9,CCR6,CCL20,CXCR1,CCR10,CCL28,CCL27,CX3CL1,CX3CR1,XCR1,XCL2,XCL1,CCRL2,CCL1"),
I want to have all my words like this "CXCL8", "CCL5", "CCR3" etc etc
So I did Genes_LIST <-gsub("," , " ',' ", Genes_list)
paste(Genes_LIST)
and I have obtained
[1] "CXCL8 ',' CCL5 ',' CCR3 ',' CCR4 ',' CCR5 ',' CXCL12 ',' ACKR3 ',' CXCR4 ',' CCR7 ',' CCL19 ',' CCL21 ',' CCL13 ',' CCR2 ',' CXCR6 ',' CXCL16 ',' ACKR4 ',' CCL25 ',' CXCR3 ',' CXCL9 ',' XCL10 ',' CXCL11 ',' CXCL13 ',' CXCR5 ',' CXCR2 ',' CXCL5 ',' CXCL2 ',' CXCL1 ',' CXCL3 ',' PPBP ',' CXCL6 ',' PF4 ',' CCR8 ',' CCR1 ',' CCL16 ',' ACKR2 ',' CCL7 ',' CCL3 ',' CCL3L1 ',' CCL17 ',' CCL11 ',' CCL2 ',' CCL22 ',' CCL4 ',' CCR9 ',' CCR6 ',' CCL20 ',' CXCR1 ',' CCR10 ',' CCL28 ',' CCL27 ',' CX3CL1 ',' CX3CR1 ',' XCR1 ',' XCL2 ',' XCL1 ',' CCRL2 ',' CCL1"
But I cannot tell R to change ' in ".
Do you know how to do it, please?
Thanks