Comments (7)
I like pickle files, easy with Pandas.
from gneiss.
Pickle is easy but python specific. TSV may be nice as it allows for operability easily in R or Python
from gneiss.
Good point.
Note that there are advantages of saving the raw Python object. There are functions like predict
that cannot be serialized, since it operates directly on the RegressionResults
object. Right now, it is possible to serialize individual attributes such as residuals
, so this functionality is somewhat supported.
from gneiss.
@wasade @antgonza it looks like pickle is not going to work, particularly with large trees. I get the following error with a tree with 14000 tips
RecursionError: maximum recursion depth exceeded while pickling an object
I guess we'll want to invent a file format to store all of this information ...
from gneiss.
store the tree as a newick string?
from gneiss.
Question @wasade when it comes to converting objects to json, there are any limitations?
Right now, part of the problem is that there will need to be Python objects serialized such as OLSResults
. If so, then it may doable to have a json parser on top of a pickle parser.
from gneiss.
This is going to be increasingly necessary as we string up more tree visualizations to the CLI.
Right now, I'm thinking about having two main types of file formats, namely. Model
and Results
formats. The Model
file formats are only responsible for storing the barebones model parameters. For example, the coefficients in a regression model, and the tree used to generate the balances. And these models can be used for making predictions.
The Results
model format will be much larger, storing all of the model statistics and residuals. Maybe using something like pytables + hdf5 will be more suitable for handling these large tables.
from gneiss.
Related Issues (20)
- [Question] How to correctly use ILR with balance tree basis? HOT 5
- Gneiss Maximum Recursion Depth Error
- TODO:
- Getting None/NaN values in columns from `gneiss.composition.ilr_transform` HOT 2
- Sign change in ilr_transform results using new dependencies HOT 3
- pvalues disagree between interactive plot
- numerator cutoff is slightly off in proportion_plot HOT 2
- phyloseq support HOT 1
- Update the pip and bioconda version 0.4.4 to require skbio ≥ 0.5.1 instead of == 0.5.1 HOT 3
- Balance test HOT 1
- Tutorials for proportion plots
- Proportionality test HOT 1
- Faster random_linkage method
- Compatiability with xarray
- Renaming clades HOT 1
- BUG: match appears to be broken with biom tables
- Faster hierarchical clustering
- match and match_tips functions are deprecated
- ImportError: cannot import name 'balanceplot' HOT 2
- Numpy 1.24 incompatibility
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 gneiss.