This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
52 lines (45 loc) · 1.6 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# Mickaël Canouil's Analysis Scripts Templates
<!-- badges: start -->
[![License](https://img.shields.io/github/license/mcanouil/analysis-scripts-templates)](LICENSE)
[![Lifecycle:
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)]()
<!-- [![GitHub
tag](https://img.shields.io/github/tag/mcanouil/analysis-scripts-templates.svg?label=latest%20tag&include_prereleases)](https://github.com/mcanouil/analysis-scripts-templates) -->
<!-- badges: end -->
Script templates to work with omics datasets.
```{r, echo = FALSE, results = "asis"}
dt <- data.table::data.table(
file = setdiff(sort(list.files(path = here::here(), pattern = ".R", recursive = TRUE)), "README.Rmd")
)[
j = root := data.table::tstrsplit(x = file, "/", keep = 1)
][
!grepl("assets", file)
][
j = list(
list_scripts = c(
sprintf("\n## %s\n", root),
if (grepl("Rmarkdown", root)) {
"\nNote: `assets` directory from [github.com/umr1283/xaringan-template](https://github.com/umr1283/xaringan-template) is required!\n\n"
},
if (filedir != root) sprintf("\n### %s\n", filedir),
sprintf(" * [%s](%s)\n", basename(file), file)
)
),
by = list(root, filedir = dirname(file))
][
order(factor(root, levels = c("R", "R/scripts", "R/targets", "R/functions")))
]
cat(dt[["list_scripts"]][!duplicated(dt[["list_scripts"]])], sep = "")
```