From 566b1fadbcd1c1894b8fbed2b8b06c9124a9006e Mon Sep 17 00:00:00 2001 From: Matthias Munz Date: Mon, 13 Sep 2021 12:13:34 +0200 Subject: [PATCH] Update makePlots.R 1: `select_()` is deprecated as of dplyr 0.7.0. Please use `select()` instead. 2: `arrange_()` is deprecated as of dplyr 0.7.0. Please use `arrange()` instead. 3: `filter_()` is deprecated as of dplyr 0.7.0. Please use `filter()` instead. 4: `group_by_()` is deprecated as of dplyr 0.7.0. Please use `group_by()` instead. --- R/makePlots.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/makePlots.R b/R/makePlots.R index 6272b20..985c148 100644 --- a/R/makePlots.R +++ b/R/makePlots.R @@ -2,9 +2,9 @@ plotTranscriptStructure <- function(exons_df, limits = NA, connect_exons = TRUE, xlabel = "Distance from gene start (bp)", transcript_label = TRUE){ #Extract the position for plotting transcript name - transcript_annot = dplyr::group_by_(exons_df, ~transcript_id) %>% - dplyr::filter_(~feature_type == "exon") %>% - dplyr::arrange_('transcript_id', 'start') %>% + transcript_annot = dplyr::group_by(exons_df, ~transcript_id) %>% + dplyr::filter(~feature_type == "exon") %>% + dplyr::arrange('transcript_id', 'start') %>% dplyr::filter(row_number() == 1) #Create a plot of transcript structure