Skip to content

Commit

Permalink
Fix naming, and better example Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
lpantano committed Oct 31, 2024
1 parent d244712 commit f6a9f5a
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 5 deletions.
33 changes: 33 additions & 0 deletions inst/templates/base/reports/example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,39 @@ This code is in this ![](https://img.shields.io/badge/status-stable-green) revis
source(params$project_file)
```

```{r}
knitr::opts_chunk$set(echo = TRUE)
# Load libraries
library(knitr)
library(rmarkdown)
library(DT)
library(ggprism)
library(grafify)
ggplot2::theme_set(theme_prism(base_size = 12))
# https://grafify-vignettes.netlify.app/colour_palettes.html
# NOTE change colors here if you wish
scale_colour_discrete <- function(...)
scale_colour_manual(..., values = as.vector(grafify:::graf_palettes[["kelly"]]))
#options(ggplot2.discrete.colour= )
# Set seed for reproducibility
set.seed(1454944673L)
opts_chunk[["set"]](
audodep = TRUE,
cache = FALSE,
cache.lazy = FALSE,
error = TRUE,
echo = TRUE,
fig.height = 5L,
fig.retina = 2L,
fig.width = 9.6,
message = FALSE,
tidy = TRUE,
warning = TRUE)
```

# Overview

- Project: `r project`
Expand Down
2 changes: 1 addition & 1 deletion inst/templates/chipseq/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Guidelines for analysis
# Guidelines for ChIPSeq analysis

Make sure there is a valid project name, and modify `information.R` with the right information for your project. You can use this file with any other Rmd to include the project/analysis information.

Expand Down
2 changes: 1 addition & 1 deletion inst/templates/rnaseq/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Guideline for RNAseq downstream analysis

Make sure there is a project name for this.
Make sure there is a valid project name, and modify `information.R` with the right information for your project. You can use this file with any other Rmd to include the project/analysis information.

## Run data with nf-core rnaseq

Expand Down
8 changes: 5 additions & 3 deletions inst/templates/singlecell/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Project name
# Guideline for scRNAseq analysis

# Start with cell-ranger
Make sure there is a valid project name, and modify `information.R` with the right information for your project. You can use this file with any other Rmd to include the project/analysis information.

# cell-ranger

`pre-process-w-cellranger.md` contains step by step guidelines on how to run cellranger and load data into R. This `scripts/seurat_init.R` script contains all the pieces to go from cellranger output to Seurat obj. It is assuming a mouse genome.

Expand All @@ -10,5 +12,5 @@ Currently we are working on deploying a shiny app to inspect the single cell obj

# Integration

Currently we are working on guidelines and templates for this step. There is some draft under *Integration** folder.
`Integration/norm_integration.rmd` is a template with guidelines on how to work with multiple samples. It compares log2norm vs SCT, work with SCT by samples to remove batch biases better, provide options for integration between CCA and Harmony. As last step, it contains cell type clustering and visualization to help decide the best parameters.

0 comments on commit f6a9f5a

Please sign in to comment.