r - Speeding up matlab file import -
i trying load matlab file r.matlab
package. problem keeps loading indefinitely (e.g. table <- readmat("~/desktop/hg18_with_mir_20080407.mat")
. have genome file broad institute (hg18_with_mir_20080407.mat
).
you can find at:
http://genepattern.broadinstitute.org/ftp/distribution/genepattern/dev_archive/gistic/broad.mit.edu:cancer.software.genepattern.module.analysis/00125/1.1/
i wondering: has tried bundle , have similar issues?
(hopefully helpful, not answer, though there much formatting comment)
i think may need friend matlab access save file more reasonable format or utilize python info processing. "hangs" me (os x 10.9, r 3.1.1). next works in python:
import scipy.io mat = scipy.io.loadmat("hg18_with_mir_20080407.mat")
(you can see , work rg
, cyto' crufty numpy arrays, can't converted json with
json.dumpsand even
jsonpickle.encodecoughs lung-full of errors (i.e. won't able use
rpython` access object original workaround looking for), no serialization file either (and, have believe resultant json have been ugly deal with).
your options to:
get friend convert (as suggested previous) make csv files out of numpy arrays in python use matlab r matlab
No comments:
Post a Comment