Comments (5)
It's working now, thank you!
from bigstatsr.
Thanks for pointing to this.
I have now
- added the documentation of
big_attach()
to the website - added an example of
big_attach()
in the documentation ofFBM
- mentioned that you should read only once from text files (and use
big_attach()
instead) in the corresponding vignette
Hope this will make things clearer.
from bigstatsr.
What you need to do is to use $save()
the first time, this will create a corresponding .rds
file, on which you can use big_attach()
to get the FBM object in another session.
from bigstatsr.
That's great
Also, it would be useful to know where you have looked for this information, in case I may be able to improve the documentation a bit.
from bigstatsr.
I see that the $save()
method is in the FBM documentation, but me and the previous developer both found it difficult to understand what its purpose was until your clarification. It was a little confusing that it generates an .rds
file that points to the .bk
file until it finally worked. The example in the documentation for big_attach()
was extremely useful:
X <- FBM(10, 10)$save()
rdsfile <- sub_bk(X$backingfile, ".rds")
X2 <- big_attach(rdsfile)
all.equal(X[], X2[])
However, big_attach()
isn't included in the pkgdown website, so I wouldn't have found it without your help. Just including this function and example on the website would help a lot, and a small vignette detailing the write/read process and the relationship between the .rds
and .bk
files would be even better.
from bigstatsr.
Related Issues (20)
- big_univLinReg() slow when subsetting rows/cols HOT 2
- big_prodMat Error: You can't have missing values in 'X'. HOT 2
- Help with interpreting the bigstatsr results HOT 7
- Task 1 failed: "'from' must be a finite number" HOT 2
- Error in docs for big_spLogReg {bigstatsr} HOT 1
- Add convenience function to make own parameter 'fun.scaling' HOT 1
- Downloading bigstatsr not working on mac HOT 1
- Question about predictor to instance ratio when using big_spLinReg or big_spLogReg HOT 3
- How to efficiently normalized imputation probabilities of the genotype matrix to between zero and one? HOT 1
- Bug in big_tcrossprodSelf: backingfile option missing HOT 5
- big_tcrossprodSelf: requested size is too large; suggest to enable ARMA_64BIT_WORD HOT 5
- How does dfmax work? HOT 2
- Low CPU %? HOT 3
- Could I use `big_spLogReg()` for multi-class L1-regularized logistic regression? HOT 11
- segfault with big_prodMat HOT 2
- Read data using ‘bigsnpr’ package and run Linear mixed effect model using other packages HOT 3
- Greater use of generics HOT 6
- Any matrix multiplication function support sparse matrix? HOT 3
- Repeated measures (mixed model) GWAS HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigstatsr.