Browse Source

Explicitar el paquet dplyr per a rename.

main
marcelcosta 2 years ago
parent
commit
cf8d95a695
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      chromatoR/app.R

+ 1
- 1
chromatoR/app.R

@ -220,7 +220,7 @@ server <- function(input, output) {
ranPeaks<-range(picks$rows) ranPeaks<-range(picks$rows)
obj$plot<-obj_ab@traceMatrix %>% as.data.frame() %>% rename(A=V1,C=V2,G=V3,T=V4) %>% add_column(rows=1:nrow(.)) %>%
obj$plot<-obj_ab@traceMatrix %>% as.data.frame() %>% dplyr::rename(A=V1,C=V2,G=V3,T=V4) %>% add_column(rows=1:nrow(.)) %>%
filter(rows >= ranPeaks[1] & rows <= ranPeaks[2]) %>% gather(Base, Value, -rows) %>% filter(rows >= ranPeaks[1] & rows <= ranPeaks[2]) %>% gather(Base, Value, -rows) %>%
mutate(Base=factor(Base, levels=c("G","A","T","C"))) %>% mutate(Base=factor(Base, levels=c("G","A","T","C"))) %>%
ggplot(aes(rows, Value))+ ggplot(aes(rows, Value))+

Loading…
Cancel
Save