GithubHelp home page GithubHelp logo

umr1283 / carot Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 2.66 MB

Centralised and Automated RepOrting Tools

License: GNU General Public License v3.0

R 100.00%
omics quality-control r r-package r-stats reporting

carot'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.

carot's People

Contributors

mcanouil avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mboissel

carot's Issues

Condition length when checking input files `estimate_ethnicity`

In estimate_ethnicity, test isnot robust due to condition length exceeding one.

list_input <- check_input(input = input_vcfs)
Warning messages:
1: In if (!fs::is_dir(input) & !fs::is_file(input)) { :
  the condition has length > 1 and only the first element will be used
2: In if (fs::is_dir(input)) { :
  the condition has length > 1 and only the first element will be used

`pca_report` do not use the parameter `id_var`


The function pca_report has the id_var parameter that let us think we can choose the name if the column id, but the default value "Sample_ID" is used to create the column in the dataset pca_dfxy. So the final left_join has an error if we do not use the default setting id_var = "Sample_ID "

library(tidyverse)
CARoT::pca_report(
    data = mtcars, 
    design = tibble(
        My_Sample_ID = row.names(mtcars), 
        First_Letter = substring(My_Sample_ID, 1, 1)
    ), 
    id_var = "My_Sample_ID",
    technical_vars = c("First_Letter"), 
    n_comp = 2, 
    fig_n_comp = 3,
    title_level = 3
)
#> [CARoT] Quality-Control started ...
#> `by` can't contain join column `My_Sample_ID` which is missing from RHS

After inspecting the script, it seems that the error come from this part :

pca_dfxy <- dplyr::mutate(.data = pca_dfxy, Sample_ID = as.character(colnames(data)))
pca_dfxy <- as.data.frame(dplyr::left_join(x = design, y = pca_dfxy, by = id_var))

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.