[BioC] Gene names

John Zhang jzhang at jimmy.harvard.edu
Wed Nov 2 17:08:31 CET 2005


>I have gene file in this format, everything in one column (no spaces at all): 
>SFTPB|NM_000542.1|4506904|surfactant, pulmonary-associated protein B
>Is there any way to convert it in this format (into four columns) except
>manually? 
>
>SFTPB                        NM_000542.1               4506904               
>surfactant, pulmonary-associated protein B


try:

unlist(strsplit(yourString, "\\|"))

>
>Any suggestions? 
>
>Narendra 
>
>Dr. Narendra Kaushik
>School of Biosciences, 
>University of Cardiff, 
>Museum Avenue, 
>Cardiff CF10 3US 
>Tel: 029 20 875 153
>
>_______________________________________________
>Bioconductor mailing list
>Bioconductor at stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/bioconductor

Jianhua Zhang
Department of Medical Oncology
Dana-Farber Cancer Institute
44 Binney Street
Boston, MA 02115-6084



More information about the Bioconductor mailing list