Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot fix release #38

Merged
merged 4 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# bcbioR 0.1.3

* fix duplicated gene names
* Add combatseq
* Add draft templates for TEAseq, COSMX
* Adapt templates to nf-core rnaseq
Expand Down
11 changes: 10 additions & 1 deletion inst/rmarkdown/templates/rnaseq/skeleton/DE/DEG.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ params:
functions_file: load_data.R
---


```{r}
# This set up the working directory to this file so all files can be found
library(rstudioapi)
setwd(fs::path_dir(getSourceEditorContext()$path))
```


```{r load_params, cache = FALSE, message = FALSE, warning=FALSE}
# 1. Set up input files in this R file (params_de.R)
source(params$params_file)
Expand Down Expand Up @@ -161,7 +169,8 @@ name_pathways_fn=file.path(
```{r load_counts_data}

rdata = AnnotationDbi::select(org.Hs.eg.db, rownames(counts), 'SYMBOL', 'ENSEMBL') %>%
dplyr::select(gene_id = ENSEMBL, gene_name = SYMBOL)
dplyr::select(gene_id = ENSEMBL, gene_name = SYMBOL) %>%
distinct(gene_id, .keep_all = TRUE)

```

Expand Down
6 changes: 6 additions & 0 deletions inst/rmarkdown/templates/rnaseq/skeleton/QC/QC_nf-core.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ params:
factor_of_interest: sample_type
---

```{r}
# This set up the working directory to this file so all files can be found
library(rstudioapi)
setwd(fs::path_dir(getSourceEditorContext()$path))
```


```{r source_params, echo = F}
# 1. set up factor_of_interest parameter from parameter above or manually
Expand Down
Loading