Skip to content

Commit 558359b

Browse files
Update ui.R
1 parent 06ee457 commit 558359b

1 file changed

Lines changed: 30 additions & 37 deletions

File tree

ui.R

Lines changed: 30 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,39 @@
1-
#Paquetes y librerias
2-
#if (!requireNamespace("BiocManager", quietly = TRUE))
3-
# install.packages("BiocManager")
4-
#BiocManager::install(c("SummarizedExperiment","DESeq2","DEGreport"), version = "3.8")
5-
#library(DESeq2)
6-
#library(tidyverse)
7-
#library(stringr)
8-
#library(SummarizedExperiment)
9-
#library(purrrlyr)
10-
#library(ggplot2)
11-
#library(DEGreport)
1+
#Load all the necessary packages and libraries.
2+
if (!requireNamespace("BiocManager", quietly = TRUE))
3+
install.packages("BiocManager")
4+
BiocManager::install(c("SummarizedExperiment","DESeq2","DEGreport"), version = "3.8")
5+
library(DESeq2)
6+
library(tidyverse)
7+
library(stringr)
8+
library(SummarizedExperiment)
9+
library(purrrlyr)
10+
library(ggplot2)
11+
library(DEGreport)
1212
library(shiny)
13-
14-
#Iniciamos el Interfaz de usuario para la aplicación shiny.
1513
shinyUI(fluidPage(
16-
#Título de la aplicación.
17-
titlePanel("GFF Reader"),
18-
#Distribución general de la interfaz.
14+
titlePanel("mirGFF3 Reader"),
1915
sidebarLayout(
20-
#Distribución del panel lateral.
2116
sidebarPanel(
22-
#Input de archivos GFF y CSV.
23-
fileInput("file1", "Choose CSV File"),
24-
fileInput("file2", "Choose GFF File"),
25-
#Linea de separación.
26-
hr(),
27-
#Selección de columna del archivo de metadatos.
28-
selectInput("columna", "Columna CSV:", choices=colnames),
29-
#Texto explicativo.
30-
helpText("Choose the CSV column to coloring."),
31-
#Separación.
32-
tags$hr(),
33-
#Cajetilla que registra si se desean normalizar los datos. Desactivada por defecto.
34-
checkboxInput(inputId = "noise",label = strong("Correcting for noise"),value = FALSE)
17+
#Menú para cargar el arhivo GFF y CSV.
18+
fileInput("file1", "Choose CSV File",
19+
multiple = FALSE,
20+
accept = c("text/csv",
21+
"text/comma-separated-values,text/plain",
22+
".csv")),
23+
fileInput("file2", "Choose GFF File",
24+
multiple = FALSE,
25+
accept = c(".gff")),
26+
#Botón de acción para lanzar la aplicación.
27+
actionButton("upload", "Upload Data")
3528
),
36-
#Distribución del panel central.
29+
#Panel central con un sistema de pestañas.
3730
mainPanel(
38-
#Diferentes pestañas que muestran las variables "table" y "pca"
39-
tabsetPanel(type = "tabs",
40-
tabPanel("Info", textOutput("info")),
41-
tabPanel("Table", plotOutput("table")),
42-
tabPanel("PCA", plotOutput("pca"))
43-
)
31+
tabsetPanel(type = "tabs",
32+
#Pestaña con información sobre el SummarizedExperiment
33+
tabPanel("Info", verbatimTextOutput("contenido")),
34+
#Pestaña con la PCA sin colorear
35+
tabPanel("PCA", plotOutput("pca"))
36+
)
4437
)
4538
)
4639
))

0 commit comments

Comments
 (0)