[BioC] Read big file!
    Martin Morgan 
    mtmorgan at fhcrc.org
       
    Wed Aug 12 17:54:55 CEST 2009
    
    
  
Mohamed Lajnef wrote:
> Dear R-Users
> 
> i would like to read a big file (1000 lines and 1200000 columns) with R? 
> but this is impossible ! Does someone have a magic solution to my problem?
> 
> Otherwise I try a function to read by few columns this large file ( no 
> by lines!)?
on linux something like
   scan(pipe("cut -f 1000-2000 myfile.txt", open="r"), integer())
can sometimes be an effective way to select some of a very large number 
of columns. Sounds like SNPs, where personally I would parse these into 
a netCDF file for future easy access using the ncdf package.
Martin
> 
> Regards
> M
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: 
> http://news.gmane.org/gmane.science.biology.informatics.conductor
-- 
Martin Morgan
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109
Location: Arnold Building M1 B861
Phone: (206) 667-2793
    
    
More information about the Bioconductor
mailing list