ojwatson / comft Goto Github PK
View Code? Open in Web Editor NEWCycling Optimally vs Multiple First Line Therapies
License: Other
Cycling Optimally vs Multiple First Line Therapies
License: Other
--- output: rmarkdown::github_document --- <!-- README.md is generated from README.Rmd. Please edit that file --> ```{r, echo = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" ) ``` <!-- badges: start --> [![minimal R version](https://img.shields.io/badge/R%3E%3D-`r as.character(getRversion())`-brightgreen.svg)](https://cran.r-project.org/) [![Licence](https://img.shields.io/github/license/mashape/apistatus.svg)](http://choosealicense.com/licenses/mit/) [![R build status](https://github.com/OJWatson/comft/workflows/R-CMD-check/badge.svg)](https://github.com/OJWatson/comft/actions) [![CodeFactor](https://www.codefactor.io/repository/github/OJWatson/comft/badge)](https://www.codefactor.io/repository/github/OJWatson/comft) <!-- badges: end --> ## Research compendium for antimalarial resistance cycling vs mft This is a working R compendium (think R package but for reproducible analysis). A good overview on research compendiums, see the [R for Reproducible Research](https://annakrystalli.me/rrresearch/index.html) course. ### Installation ``` git clone https://github.com/OJWatson/comft.git cd comft open comft.Rproj ``` Next, if `renv` has been used in this repository (look out for `renv.lock`) then use `renv::restore` to set up package dependencies. Otherwise `devtools::install_dev_deps()` will install all required packages, as specified in the Imports in DESCRIPTION. ### Overview The structure within analysis is as follows: ``` R/ # Packaged R functions analysis/ | ├── 01_xxxxx / # analysis scripts used for generating figures | ├── plots/ # location of figures produced by the analysis scripts | ├── tables/ # location of any tables produced by the analysis scripts | ├── data_raw/ # data obtained from elsewhere and treated read-only | ├── data_derived/ # intermediate data generated during the analysis | ├── data_out/ # data outputs produced for external partners ``` Any analysis scripts with "X_" in the name are used to format raw data shared with us for this project that could not be included in the repository and only summaries of the data as needed for the modelling could be included. These scripts are still included to show how the raw data was processed and the summaries saved in `data_raw` for use later on. In this way, we ensure transparency and reproducibility. Analysis scripts are to be run in the numbered order they are included. If there are shared numbers, then any order of those scripts works. ### Compendium DOI: https://zenodo.org/record/XXX The files at the URL above will generate the results as found in the publication. ### The R package This repository is organized as an R package. There are only a few R functions exported in this package - the majority of the R code is in the analysis directory. The R package structure is here to help manage dependencies, to take advantage of continuous integration, and so we can keep file and data management simple. For any R packages that are used frequently in this repository, they are documented in `R/` and are used in the analysis folder using `devtools::load_all()`. To download the package source as you see it on GitHub, for offline browsing, use this line at the shell prompt (assuming you have Git installed on your computer): ```{r eval=FALSE} git clone https://github.com/OJWatson/comft.git ``` Once the download is complete, open the `comft.Rproj` in RStudio to begin working with the package and compendium files. We will endeavour to keep all package dependencies required listed in the DESCRIPTION. <!-- To add this once all the analysis is done --> In addition, once analysis is completed, we will use `renv` to track package dependencies for reproducibility. Please use `renv::restore` to restore the state of the project and see https://rstudio.github.io/renv/articles/renv.html for more information. ### Licenses Code: [MIT](http://opensource.org/licenses/MIT) year: `r format(Sys.Date(), "%Y")`, copyright holder: OJ Watson Data: [CC-0](http://creativecommons.org/publicdomain/zero/1.0/) attribution requested in reuse
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.