|
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) |
12 | 12 | library(shiny) |
13 | | - |
14 | | -#Iniciamos el Interfaz de usuario para la aplicación shiny. |
15 | 13 | shinyUI(fluidPage( |
16 | | - #Título de la aplicación. |
17 | | - titlePanel("GFF Reader"), |
18 | | - #Distribución general de la interfaz. |
| 14 | + titlePanel("mirGFF3 Reader"), |
19 | 15 | sidebarLayout( |
20 | | - #Distribución del panel lateral. |
21 | 16 | 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") |
35 | 28 | ), |
36 | | - #Distribución del panel central. |
| 29 | + #Panel central con un sistema de pestañas. |
37 | 30 | 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 | + ) |
44 | 37 | ) |
45 | 38 | ) |
46 | 39 | )) |
0 commit comments