Comments (1)
I agree with this, I am running up against the same issue now. If you are just looking for the types as currently assigned, you can do this:
sapply(sample_variables(pstat), function(v) { class(sample_data(pstat)[[v]]) })
However, I think we need to be explicit in assigning types to sample variables. A function should be implemented that accepts user input to assign types, or attempts to infer from the data. Inferring may not be 100% accurate. For example, R (read.table
or similar) interprets "Subject ID" as an integer, but it should be a factor, since there is no meaningful ordering to the subjects. Still, inferring from the data would be a good first step.
I propose we have more than two types. I think our types should be according to the standard R data types:
- factors: categorical/nominal variables
- ordered factors: ordinal variables, useful for representing longitudinal variables and discretizing continuous variables
- integer: continuous type
- numeric/double: continuous type
- character: text that does not need to be treated as a variable, mostly for display purposes.
These types will naturally suggest how to display them. For example, factors can be displayed using "select" inputs and qualitative color palettes, while ordered factors may also use "select" inputs but be displayed with sequential color palettes.
In addition, users should be able to indicate which covariates are "of interest". Perhaps there should be several categories, such as secondary/confounders, batch covariates, and random effects.
from pathostat.
Related Issues (16)
- BatchQC dependency HOT 1
- Modularize code HOT 4
- Check that cached taxonomy matches with loaded reports HOT 1
- Load phyloseq object into shiny server (temporary) HOT 2
- Implement core microbiome 2D plot
- Implement core microbiome heatmap
- Remove dependency on "microbiome" HOT 5
- OTU filtering HOT 5
- Improve formatting of taxonomy table
- Taxonomy table data structure HOT 1
- Implement temporal analysis and visualization tab HOT 1
- Shini not working HOT 1
- Accommodate phyloseq-class objects throughout HOT 1
- Coerce input data into phyloseq-class objects
- Create color scheme that can be used across modules
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 pathostat.