[BioC] Gene names

James W. MacDonald jmacdon at med.umich.edu
Wed Nov 2 17:09:54 CET 2005


Narendra Kaushik wrote:
> 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
> 
> Any suggestions? 

Does

data.frame(scan("filename", what = "c", sep = "|"))

do what you want?

Best,

Jim


> 
> 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


-- 
James W. MacDonald
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623



More information about the Bioconductor mailing list