Giter Site home page Giter Site logo

cdsr_models's Introduction

cdsrmodels

This package contains modeling and biomarker analysis functions created by the Cancer Data Science team.

Install

library(devtools)
devtools::install_github("broadinstitute/cdsr_models")

NOTE: If you have issues installing the WGCNA package which cdsr_models depends you can fix them by updating to R >4.0. If you don't want to update to R >4.0 contact William for a workaround.

The package can then be loaded by calling

library(cdsrmodels)

Modeling functions

discrete_test

Compares binary features, such as lineage and mutation, running a two class comparison on the difference in mean response between cell lines with the feature and without it. Run on response vector y and feature matrix X

cdsrmodels::discrete_test(X, y)

lin_associations

Compares continuous features, such as gene expression, calculating correlations between response and each feature. Run on feature matrix A, response vector y, and an optional matrix of confounders W. Other parameters can also be tuned and are explained in the function documentation.

cdsrmodels::lin_associations(A, y, W=NULL)

random_forest

Fits a random forest to a feature matrix X and a response vector y returning estimates of variable importance for each feature, as well as model level statistics such as R-squared. Other parameters can also be tuned and are explained in the function documentation.

cdsrmodels::random_forest(X, y)

random_forest_gauss

Analogous to random_forest but uses gausscov for feature selection in each fold.

cdsrmodels::random_forest_gauss(X, y)

cdsr_models's People

Contributors

aboghossian avatar colganwi avatar manilkocak avatar pgm avatar yuhjong24 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cdsr_models's Issues

Error in is.finite(X) : default method not implemented for type 'list'

When I am using the cdsr_model package to compute linear association for my dataset, I am getting this error: Error in is.finite(X) : default method not implemented for type 'list'

For my feature set I am using the gene expression data from Depmap portal. I made sure my feature matrix and response matrix have same number of rows.

library(devtools) devtools::install_github("broadinstitute/cdsr_models", force = TRUE) cdsrmodels::lin_associations(A, y, W=NULL)

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.