privefl / bigstatsr

R package for statistical tools with big matrices stored on disk.
https://privefl.github.io/bigstatsr/
179 stars 30 forks source link

Specify the location of the backing file resulting from `big_cor` #170

Closed fmorgante closed 10 months ago

fmorgante commented 11 months ago

Hi Florian, would it be possible to add an option to specify the location of the backing file resulting from big_cor?

privefl commented 11 months ago

I guess you want something similar to https://github.com/privefl/bigstatsr/issues/73?

fmorgante commented 11 months ago

Yes, something like

backingfile Path to the file storing the Big Matrix on disk. An extension ".bk" will be automatically added. Default stores in the temporary directory.

as you have in FBM.

If I were to use the workaround you suggested in the other issue, would I be able to specify the backing file name? Or only the directory?

privefl commented 11 months ago

That would be only the directory.

I could definitely push something, but as this is quite easy to do, I was waiting for someone that wanted to contribute to the package with a PR.

fmorgante commented 11 months ago

I see. Thanks for your help!

privefl commented 11 months ago

Do you want to try? Otherwise, I can probably push something for big_cor() tomorrow.

fmorgante commented 11 months ago

Unfortunately, I am swamped :(

privefl commented 10 months ago

This is now implemented in the latest GitHub version of the package.

fmorgante commented 10 months ago

Thank you Florian! Always super helpful!