From ecf029b05e07e36b921bcc1d156f5a8e00dadc20 Mon Sep 17 00:00:00 2001 From: Lorena Pantano Date: Tue, 25 Jun 2024 12:31:35 -0400 Subject: [PATCH] fix duplicated gene names --- inst/rmarkdown/templates/rnaseq/skeleton/DE/DEG.Rmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inst/rmarkdown/templates/rnaseq/skeleton/DE/DEG.Rmd b/inst/rmarkdown/templates/rnaseq/skeleton/DE/DEG.Rmd index 107198c..178e799 100644 --- a/inst/rmarkdown/templates/rnaseq/skeleton/DE/DEG.Rmd +++ b/inst/rmarkdown/templates/rnaseq/skeleton/DE/DEG.Rmd @@ -161,7 +161,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) ```