-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
547 additions
and
2,112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
### documentation tab | ||
documentation_tab <- function() { | ||
tabPanel( | ||
"Documentation", | ||
fluidRow( | ||
column(width = 3), | ||
column(width = 6, includeMarkdown("./ui_files/doc.md")), | ||
column(width = 3) | ||
) | ||
) | ||
} | ||
|
||
|
||
about_tab <- function() { | ||
tabPanel( | ||
"About STRAF", | ||
fluidRow( | ||
column(width = 3), | ||
column( | ||
width = 6, | ||
p('STRAF is a browser-based application that allows to perform forensics | ||
and population genetics analysis of STR data.'), | ||
includeMarkdown("./ui_files/changelog.md"), | ||
includeMarkdown("./ui_files/license.md"), | ||
includeMarkdown("./ui_files/acknowledgments.md"), | ||
), | ||
column(width = 3) | ||
) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
### Sidebar UI code | ||
sidebarUI <- function() { | ||
sidebarPanel( | ||
width = 3, | ||
fluidRow( | ||
column(width = 6, | ||
div(tags$img(src='STRAF_logo.png', height = "120"), style="text-align: center;"), | ||
), | ||
column( width = 6, | ||
p(strong('Welcome!'), br(), br(), 'STRAF is an STR data analysis application.'), | ||
)), | ||
h4('Input'), | ||
p('Please read the documentation for details about input files and analyses.'), | ||
radioButtons('microvariants', "Number of columns per locus:", c('2', '1'), inline = TRUE), | ||
radioButtons('ploidy', "Ploidy:", c('Diploid', 'Haploid'), inline = TRUE), | ||
conditionalPanel( | ||
condition="input.microvariants == 1", | ||
radioButtons('ncode', 'Number of digits for allele sizes:', c('2', '3'), inline = TRUE) | ||
), | ||
fileInput( | ||
'file1', 'Choose file to upload:', | ||
accept = c('text/csv', 'text/comma-separated-values', 'text/tab-separated-values', 'text/plain', '.csv', '.tsv') | ||
), | ||
# tags$hr(), | ||
# actionButton("load_example", "Download example dataset"), | ||
tags$hr(), | ||
|
||
h4('Graphical parameters'), | ||
awesomeCheckbox("hidegraph", "Display graphical parameters", FALSE), | ||
conditionalPanel( | ||
condition = "input.hidegraph", | ||
p("Barplot color"), | ||
colourInput("barplotcolor", NULL, "#36648B", showColour = "background"), | ||
awesomeCheckbox("borderbarplot", "Bar border", FALSE), | ||
sliderInput("transparency", "Tranparency", 0, 1, 0.8, ticks = FALSE), | ||
sliderInput("width", "Plot width", 40, 100, 100, ticks = FALSE, post = "%"), | ||
sliderInput("height", "Plot height", 300, 800, 500, ticks = FALSE, post = "px"), | ||
sliderInput("cexaxis", "Axis label size", 0.2, 1.5, 1, ticks = FALSE), | ||
sliderInput("margin", "Margin", 1, 10, 7, ticks = FALSE) | ||
), | ||
|
||
tags$hr(), | ||
h4('Contact'), | ||
p('Please address your questions and bug reports to Alexandre Gouy | ||
(alexandre.gouy [at] protonmail.com). Any suggestions are welcome!'), | ||
|
||
tags$hr(), | ||
h4('Citation'), | ||
p("Gouy, A., & Zieger, M. (2017). STRAF - A convenient online tool for STR data evaluation in forensic genetics. Forensic Science International: Genetics, 30, 148-151.") | ||
) | ||
} |
Oops, something went wrong.