GithubHelp home page GithubHelp logo

umr1283 / reffreeewas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cran/reffreeewas

0.0 0.0 1.0 6.38 MB

EWAS using Reference-Free DNA Methylation Mixture Deconvolution

License: GNU General Public License v3.0

R 100.00%

reffreeewas's Introduction

UMR 1283 - Project Template

GitHub tag R-CMD-check

You can install umr1283 with:

remotes::install_github("umr1283/umr1283")

The default project directory architecture from umr1283::create_project (compatible with RStudio Project Wizard) is as follow:

library(umr1283)
create_project(path = "my-project", analyst_name = "UMR1283")
tree -a my-project
#> my-project/
#> ├── data
#> ├── .devcontainer
#> │   ├── devcontainer.json
#> │   └── Dockerfile
#> ├── docs
#> ├── .gitignore
#> ├── logs
#> ├── my-project.Rproj
#> ├── outputs
#> ├── README.md
#> ├── renv
#> ├── reports
#> ├── .Rprofile
#> ├── scripts
#> │   ├── 00-targets.R
#> │   ├── _dependencies.R
#> │   └── tar-utils
#> ├── _targets
#> └── _targets.R
#> 
#> 10 directories, 9 files

Getting help

If you encounter a clear bug, please file a minimal reproducible example on GitHub.
For questions and other discussion, please open a discussion on GitHub.

reffreeewas's People

Contributors

eahouseman avatar mcanouil avatar

Watchers

 avatar

reffreeewas's Issues

Allows `future` framework for bootstrap functions

  • Replace with future.apply::future_replicate (must check default simplify = "array")
    BetaBoot <- replicate(
  • Refactor PairsBootRefFreeEwasModel
    PairsBootRefFreeEwasModel <- function(mod, nboot, pairID) {
    BetaBoot <- array(NA, dim = c(dim(mod$Beta), 2, nboot))
    dimnames(BetaBoot)[1:2] <- dimnames(mod$Beta)
    dimnames(BetaBoot)[[3]] <- c("B", "B*")
    dimnames(BetaBoot)[[4]] <- 1:nboot
    attr(BetaBoot, "nSample") <- dim(mod$X)[1]
    for (r in 1:nboot) {
    isError <- TRUE
    while (isError) {
    catchError <- try({
    Yboot <- PairsBootOneRefFreeEwasModel(mod, pairID)
    bootFit <- RefFreeEwasModel(Yboot, mod$X, dim(mod$Lambda)[2],
    smallOutput = TRUE
    )
    BetaBoot[, , 1, r] <- bootFit$Beta
    BetaBoot[, , 2, r] <- bootFit$Bstar
    })
    isError <- inherits(catchError, "try-error")
    }
    if (r %% 10 == 0) {
    cat(r, "\n")
    }
    }
    class(BetaBoot) <- "BootRefFreeEwasModel"
    BetaBoot
    }

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.