Giter Club home page Giter Club logo

struct's Introduction

STRUCT: STatistics in R Using Class Templates

Git Bioconda Build Status License Coverage

Install

Github

library(devtools)
library(testthat)
install_github('computational-metabolomics/struct')

Conda

conda create -n struct struct -c conda-forge -c bioconda -c computational-metabolomics
source activate struct

References

struct's People

Contributors

grlloyd avatar hpages avatar jwokaty avatar nturaga avatar rjmw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

struct's Issues

consider adding versions to all classes

This would allow updates to the base classes in in struct and enable the use of update functions to make it easier for users to upgrade old stored objects to the newer format.

add an "is_dirty" check for models

At present a model can be trained and the the parameters changed before testing the model, or it contains outputs that do not correspond to the inputs. Providing an is_dirty check could print a warning if the inputs have changed and the outputs are accessed but the model hasn't been re-trained.

'data' is masking base R data function

not currently causing an issue unless data is used to get data for chart examples.
change to...
dataset.data<- data.frame()
dataset.sample_meta
dataset.variable_meta

add a citations slot for all struct objects

When wrapping other packages functionality the source should properly be acknowledged. A citations slot for struct objects would make this easier, and could be printed in the show output of an object.

model.list vs model.sequence

change this to model.sequence so that model.list can be used for applying the same processing to multiple models.

Univariate statistics

Do we need a new class for this, or can be use the existing "model" class?
Doesn't quite fit with the 'train' then 'predict' flow?

  • train to calc the test statistic, predict to get the p-values, rank apply fdr...

tests for classes

A suite of tests is needed to test each class/function
Consider using testthat package (inc with devtools)

stato.see_also

Add "see also" to stato object to link with other stato.ids. Include see also links in help page for object.

predict is masking base R predict

Currently preventing Forward selection using LOESS to find optimum.

Either change to model.predict
OR
specify S3 and S4 generics to allow use of predict.PCA for building model classes. Feels more messy for dev, but might be more user friendly.

as.SummarizedExperiment doesnt work

The following code fails:

D = iris_DatasetExperiment
S = as.SummarizedExperiment(D)

Error in .nextMethod(x = x, name = name) : 
  "assay" is not valid for this object:DatasetExperiment

'predicted' and 'results' functions vs use of a mapping class

Functions 'predicted' and 'results' allow different outputs to be used as the input to the next model when using e.g. model.lists or chaining together iterators.

A better approach might be to create a 'mapping' class where the outputs from one object are explicitly assigned to the inputs of the next. This would allow more flexibility and streamline e.g. using VIP rank as inputs for Forward selection, and allow multiple outputs from one model as inputs to another. mappings can be auto-generated when creating an object if output names match input names, for example, but changed by the user for bespoke applications.

Unsure how this would work in galaxy environment.

description for chart objects

There is currently no pass-through function to get the description of a chart assigned to model object see e.g. name functions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.