Comments (6)
My suggestion to optimize this is to have an internal environment
where the parseGPL
(or maybe the .parseGPLWithLimits
) function could check for a cached version of the GPL object read from the file path passed as argument.
Some possible details necessary for this feature to work are:
- distinguish between objects that were parsed with different number of rows limits
- give the user an option to not use the cached version
- even if not explicitly specified, ignore the cached version if the original file was modified
Do you think this is reliable? It's just an initial idea...
from geoquery.
There are really two issues you have touched on:
- Avoiding parsing the same GPL multiple times
- A caching mechanism that is smart enough to keep GPLs around throughout a session.
I like the idea of number 1, but I would be concerned that keeping GPLs around in memory (number 2) might end up biting some users who don't realize this in-memory caching is going on. I think what might make sense is the ability to pass in a list of GPL objects to getGEO() and getGEO would then check if a required GPL is already in the list. If so, getGEO would use it and not download and reparse. If not, the GPL would be fetched. In a sense, we would leave caching to the user, making it less magical and less likely to catch new and "casual" users off-guard.
So, I would propose adding another argument to getGEO:
getGEO(..., GPLlist = list(GPL, GPL, GPL, ...))
What do you think, @leogama?
from geoquery.
from geoquery.
from geoquery.
Sorry to take so long to get back to you. How would you want to do the caching? In memory? On disk? If on disk, in what format?
from geoquery.
I think @seandavi and me forgot to close this issue after merging #24. Mr. @assaron even developed his own file cache solution.
At the time, I thought the message displayed at the package loading was enough to give users a clue about this functionality. Should it be explicitly documented somewhere? Or maybe just add the word cache to the option's name...
from geoquery.
Related Issues (20)
- getGEO broken on Windows (?) HOT 4
- File '/var/folders/_0/7mxf7f790995tf1k4gb52sj00000gn/T//Rtmp9RHdGd/GSE181063_series_matrix.txt.gz' does not exist or is non-readable. getwd() HOT 1
- GEOquery HOT 1
- GEOquery returning NAs as probe names HOT 1
- getGEO: Error in downloadFile(myurl, destfile, mode) : HOT 1
- BiocCheck ERROR: Maintainer must register at the support site
- BiocCheck ERROR: No 'VignetteEngine' specified in vignette or DESCRIPTION
- BiocCheck: adopt Authors@R
- Move to `fs::path` rather than `file.path`
- getGEO HOT 5
- Error when using `getGEO` HOT 1
- Error while using getGEOSuppFiles on macbook Air HOT 1
- help with getGEO
- Function getGEO HOT 1
- issue in designing a dataset matrix HOT 1
- GSE51373 Analysis
- I ran into a bug when I downloaded the dataset GSE225759
- GEOquery not respecting timeout option HOT 1
- Bug Report: Encoding Parameter Issue and Error Handling in getGEO Function of GEOquery Package
- getGEO: Error in open.connection(x, "rb") : HTTP error 403. HOT 1
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 geoquery.