Skip to content

Commit

Permalink
fix duplicated gene names
Browse files Browse the repository at this point in the history
  • Loading branch information
lpantano committed Jun 25, 2024
1 parent 19d0c16 commit ecf029b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/rmarkdown/templates/rnaseq/skeleton/DE/DEG.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down

0 comments on commit ecf029b

Please sign in to comment.