-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInformation.R
More file actions
executable file
·124 lines (107 loc) · 8.24 KB
/
Copy pathInformation.R
File metadata and controls
executable file
·124 lines (107 loc) · 8.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
column(8,
tags$body(
h2(strong('General Information')),
hr(),
tags$blockquote(
tags$p('ShinyAIM allows users to dynamically view and interpret longitudinal GWAS results.'),
style = "font-size: 18px;"),
hr(),
h3(strong('Features of the Application: Interactive Data Visualization')),
hr(),
tags$blockquote(
img(src = 'image.png', align = "center", width = "100%", height = "100%")
),
hr(),
#br(),
#h3(strong('Data Visualization in interactive way')),
#br(),
tags$blockquote(
tags$div(tags$ul(
tags$li("Interactive Manhattan Plots."),
tags$li("Manhattan Grid Plot."),
tags$li("Comparison of Associated Markers."),
tags$li("Phenotypic Data Visualization: Interactive Histograms, Density Plots, and Box Plots.")),
style = "font-size: 18px")
),
hr(),
h3(strong('Guidelines')),
tags$blockquote(
tags$ol(
tags$li("The application has four main tab panels including (a) Interactive Manhattan Plots, (b) Manhattan Grid Plot, (c) Comparison of Associated Markers, and (d) Phenotypic Data Visualization."),
tags$li("The application accepts the text/csv,text/comma-separated-values,text/plain file format. Users can download the sample files by clicking on download button 'Download Sample File' embedded on top of side bar panel in respective main tab
panels. All the material including sample files and source code can also be downloaded from the link given below:"),
tags$a(href="https://zenodo.org/record/1419296/files/whussain2/ShinyAIM-v1.0.0.zip?download=1", "ShinyAIM-v1.0.0.zip"),
br(),
tags$li("The screenshot of the sample files for Interactive Manhattan Plots, Manhattan Grid Plot and Phenotypic Data Visualization is also shown below:"),
hr(),
img(src = 'dataformat.png', align = "center", width = "100%", height = "100%"),
hr(),
tags$ul(
tags$li("Files must have header rows."),
tags$li("Column names in the files should match with sample file names. The order of the columns is not important."),
tags$li("timepoint: represents the time or day at which data was collected, this column can represent different time points or phenotypes and it can be different traits in users file, but make sure column is named as timepoint."),
tags$li("chrom: represents the number of chromosomes."),
tags$li("pos: represents the position of markers or SNPs."),
tags$li("P: represents the p value for markers or SNPs."),
tags$li("NSFTV_ID: is ID for genotypes and can be anything in users file."),
tags$li("Value: represents the phenotypic data for each time point and must be numeric.")
),
tags$li("For each main tab panel separate input files needs to be uploaded. Sample files can be used as examples to get familiar with the application."),
tags$li("In Manhattan Plot panel, once the input file in right format is uploaded, users need to choose the separator value in the file. Once users choose the separator value, the time points will be automatically updated in Choose Time point box. Users can select any time point and Interactive Manhattan plot will be automatically generated in left main panel, and users can interact with it to get more information. Users can choose the significant threshold level by moving slider input bar."),
tags$li("In Interactive Manhattan Plot tab, user's can also see the list of top SNPs in table format by checking Display in Table Significant SNPs box. Once checked, List of SNPs will be displayed with highest p values on top. Users can use slider input to control the number of SNPs displayed in table."),
tags$li("For Manhattan Grid Plot tab, once input file is uploaded and separator value choose, the combined Manhattan plot will be automatically generated in left main panel. Users can choose the significant threshold level and also number of columns in the combined/grid plot. Note: CSV file for Manhattan plot and combined Manhattan plot is same, however, they need to be uploaded separately."),
tags$li("For Comparison of Associated Markers tab, It uses the same data file as uploaded for Manhattan Grid Plot so no need to upload the data for this tab Panel. Once tab Panel is clicked, plot will be automatically displayed in right panel. To modify or change the plot based on top p value, directly enter the value by typing in the box."),
tags$li("For Phenotypic Data Visualization, once the right CVS file is uploaded and file separator value is chosen, the time point will be automatically updated. The users can select the time point, and choose the time point to see the histogram and density plots. Users can also select box plot type to see the trend and variation across all the time points. All the plot types are interactive, and users can interact to get more information .")
), style = "font-size: 16px; line-height: 1.7;"),
hr(),
h2('How to Run the Application'),
tags$blockquote(
h3('On server'),
tags$p("The application is hosted on Shinyapps.io at:"),
tags$a(href="https://chikudaisei.shinyapps.io/shinyaim/", "https://chikudaisei.shinyapps.io/shinyaim/"),
br(),
#tags$blockquote(
h3('On Local Machine'),
tags$p("The application can be run locally with just one command in R software or RStudio:"),
tags$i('shiny::runGitHub("ShinyAIM", "whussain2")'),
tags$p("After running the above code the required libraries including shiny, ggplot2, dplyr, grid, plotly, manhattanly, and forcats will be automatically installed.
These packages can also be installed within RStudio by running the following code:"),
tags$i('install.packages(c("shiny","ggplot2","dplyr","grid","plotly","manhattanly","forcats"))')),
hr(),
h2('Source Code and Sample Files'),
tags$blockquote(
tags$p('Source code and sample files are available through GitHub:.'),
tags$a(href="https://github.com/whussain2/ShinyAIM", "ShinyAIM GitHub Repository"),
br(),
tags$p(strong('or'), "can be directly downloaded from latest version at:"),
tags$a(href="https://zenodo.org/record/1422835#.W6Qd8BNKjOQ", "https://zenodo.org/record/1422835#.W6Qd8BNKjOQ"),
tags$p(' A demo that shows how to use the application is available at:'),
tags$a(href="https://youtu.be/5-JLMpSiwv4", "https://youtu.be/5-JLMpSiwv4")),
style = "font-size: 18px"),
hr(),
tags$blockquote(
tags$p(strong('How to cite ShinyAIM:'), "Hussain W, Campbell M, Walia H, Morota G. ShinyAIM: Shiny‐based application of interactive Manhattan plots for longitudinal genome‐wide association studies.", tags$i("Plant Direct"), "2018;2:1–4", tags$a (href="https://doi.org/10.1002/pld3.91","https://doi.org/10.1002/pld3.91")),
style = "font-size: 18px"),
hr(),
h3(strong('Contact Information and Help:')),
tags$blockquote(
tags$p('Waseem Hussain - waseem.hussain@unl.edu; waseemhussain907@gmail.com, Gota Morota morota@unl.edu.'),
tags$p(strong("Enjoy, and please give us valuable feedback.", style = "font-size: 18px")),
style = "font-size: 18px"),
hr(),
h2('DOI'),
tags$blockquote(
#img(src = 'DOI.png', align = "center", width = "40%", height = "40%")
tags$a(img(src="DOI.png", align = "center", width = "40%", height = "40%"), href="https://doi.org/10.5281/zenodo.1422835")
),
hr(),
h3(strong('Acknowledgement:')),
tags$blockquote(
tags$p('We thank Yan Holtz for the useful R code provided on the webpage (link given below). Some of the codes has been adopted for this project to plot the grid Manhattan plot'),
tags$a(href="https://www.r-graph-gallery.com/wp-content/uploads/2018/02/Manhattan_plot_in_R.html", "link"),
style = "font-size: 18px"),
hr(),
tags$div(
tags$footer('Copyright (c) 2018, Waseem Hussain, code licensed under Artistic License 2.0.'),
style = "font-size: 16px")
)