[Bioc-devel] scanTabix coercion to data.frame
Hahne, Florian
florian.hahne at novartis.com
Thu Apr 12 10:19:11 CEST 2012
Hi all,
I frequently get into the situation that I import data from a Tabix file
using scanTabix and get a list of character vectors which I first need to
split back into columns using strsplit, followed by some type coercion and
lapply/sapply to actually get a list of data.frames which is what I'd
really want out in the first place. I may be missing something here, but
wouldn't it be possible to ask scanTabix for a list of data.frames
directly, and maybe even providing a vector of data types to coerce into,
a la 'colClasses' in read.table? It just seems to me that these operations
could be done much more efficiently on the C level.
Thanks,
Florian
Florian Hahne
Novartis Institute For Biomedical Research
Translational Sciences / Preclinical Safety / PCS Informatics
Expert Data Integration and Modeling Bioinformatics
CHBS, WKL-135.2.26
Novartis Institute For Biomedical Research, Werk Klybeck
Klybeckstrasse 141
CH-4057 Basel
Switzerland
Phone: +41 61 6967127
Email : florian.hahne at novartis.com
More information about the Bioc-devel
mailing list