Skip to content

Commit e9e2f55

Browse files
authored
Update QC_nf-core.Rmd
fixed some text errors and axis labels
1 parent b0a14bb commit e9e2f55

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

inst/rmarkdown/templates/rnaseq/skeleton/QC/QC_nf-core.Rmd

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ meta_sm %>% sanitize_datatable()
260260

261261
## Total reads
262262

263-
Here, we want to see consistency and a minimum of 20 million reads.
263+
Here, we want to see consistency and a minimum of 20 million reads (the grey line).
264264

265265
```{r plot_total_reads}
266266
metrics %>%
@@ -271,7 +271,8 @@ metrics %>%
271271
coord_flip() +
272272
scale_y_continuous(name = "million reads") +
273273
scale_fill_cb_friendly() + xlab("") +
274-
ggtitle("Total reads")
274+
ggtitle("Total reads") +
275+
geom_hline(yintercept=20000000, color = "grey", size=2)
275276
276277
metrics %>%
277278
ggplot(aes(x = .data[[factor_of_interest]],
@@ -292,7 +293,7 @@ max_pct_mapped <- round(max(metrics$mapped_reads/metrics$total_reads)*100,1)
292293

293294
## Mapping rate
294295

295-
The genomic mapping rate represents the percentage of reads mapping to the reference genome. We want to see consistent mapping rates between samples and over 70% mapping. These samples have mapping rates (`r min_pct_mapped` - `r max_pct_mapped`%).
296+
The genomic mapping rate represents the percentage of reads mapping to the reference genome. We want to see consistent mapping rates between samples and over 70% mapping (the grey line). These samples have mapping rates: `r min_pct_mapped` - `r max_pct_mapped`%.
296297

297298
```{r plot_mapping_rate}
298299
metrics$mapped_reads_pct <- round(metrics$mapped_reads/metrics$total_reads*100,1)
@@ -304,14 +305,14 @@ metrics %>%
304305
coord_flip() +
305306
scale_color_cb_friendly() +
306307
ylim(0, 100) +
307-
ggtitle("Mapping rate") +
308+
ggtitle("Mapping rate") + xlab("") +
308309
geom_hline(yintercept=70, color = "grey", size=2)
309310
```
310311

311312

312313
## Number of genes detected
313314

314-
The number of genes represented in every sample is expected to be consistent and over 20K (blue line).
315+
The number of genes represented in every sample is expected to be consistent and over 20K (grey line).
315316

316317
```{r calc_genes_detected}
317318
genes_detected <- colSums(assays(se)[["counts"]] > 0) %>% enframe()
@@ -370,7 +371,7 @@ metrics %>%
370371

371372
## Exonic mapping rate
372373

373-
Here we are looking for consistency, and exonic mapping rates around 70% or 75% (blue and red lines, respectively).
374+
Here we are looking for consistency, and exonic mapping rates around or above 70% (grey line).
374375

375376
```{r plot_exonic_mapping_rate}
376377
metrics %>%
@@ -389,7 +390,7 @@ metrics %>%
389390

390391
## Intronic mapping rate
391392

392-
Here, we expect a low intronic mapping rate (≤ 15% - 20%)
393+
Here, we expect a low intronic mapping rate (≤ 15% - 20%). The grey line indicates 20%.
393394

394395
```{r plot_intronic_mapping_rate}
395396
metrics %>%
@@ -408,7 +409,7 @@ metrics %>%
408409

409410
## Intergenic mapping rate
410411

411-
Here, we expect a low intergenic mapping rate, which is true for all samples.
412+
Here, we expect a low intergenic mapping rate, which is true for all samples. The grey line indicates 15%
412413

413414
```{r plot_intergenic_mapping_rate}
414415
metrics %>%
@@ -421,12 +422,12 @@ metrics %>%
421422
coord_flip() + xlab("") +
422423
scale_color_cb_friendly() +
423424
ylim(c(0, 100)) +
424-
geom_hline(yintercept=20, color = "grey", size=2)
425+
geom_hline(yintercept=15, color = "grey", size=2)
425426
```
426427

427428
## tRNA/rRNA mapping rate
428429

429-
Samples should have a ribosomal RNA (rRNA) "contamination" rate below 10%
430+
Samples should have a ribosomal RNA (rRNA) "contamination" rate below 10% (the grey line).
430431

431432
```{r plot_rrna_mapping_rate}
432433
@@ -441,8 +442,8 @@ metrics %>%
441442
ggtitle("tRNA/rRNA mapping rate") +
442443
coord_flip() +
443444
scale_color_cb_friendly() +
444-
ylim(c(0, 100)) +
445-
geom_hline(yintercept=20, color = "grey", size=2)
445+
ylim(c(0, 100)) + xlab("") +
446+
geom_hline(yintercept=10, color = "grey", size=2)
446447
```
447448

448449
## 5'->3' bias

0 commit comments

Comments
 (0)