Skip to content

Commit

Permalink
fix sample names with underscore_number
Browse files Browse the repository at this point in the history
  • Loading branch information
lpantano committed May 20, 2024
1 parent 7a92b7f commit 0e9f2ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/rmarkdown/templates/rnaseq/skeleton/QC/QC_nf-core.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ metrics <- metrics %>%
# This uses the fastqc metrics to get total reads
total_reads <- metrics %>%
dplyr::filter(grepl('_', sample)) %>%
dplyr::filter(!is.na(fastqc_raw_total_sequences)) %>%
remove_empty(which = 'cols') %>%
dplyr::rename(single_sample = sample) %>%
mutate(sample = gsub('_[12]+$', '', single_sample)) %>%
Expand All @@ -177,7 +177,7 @@ total_reads <- metrics %>%
# This renames to user-friendly names the metrics columns
metrics <- metrics %>%
dplyr::filter(!grepl('_', sample)) %>%
dplyr::filter(is.na(fastqc_raw_total_sequences)) %>%
remove_empty(which = 'cols') %>%
full_join(total_reads) %>%
mutate(mapped_reads = samtools_reads_mapped) %>%
Expand Down

0 comments on commit 0e9f2ab

Please sign in to comment.