@@ -23,7 +23,7 @@ server <- function(input, output, session) {
2323
2424 # figs_path = "./cns/"
2525 # testing:
26- figs_path = " /Users/neuroprism/Desktop/BrainEffeX-1/ figures/shiny/"
26+ figs_path = " figures/shiny/"
2727
2828 # Load in explorer tab info
2929 load(" data/study.RData" )
@@ -195,7 +195,7 @@ server <- function(input, output, session) {
195195
196196 # Removing files that don't exist
197197 study_filtered <- study_filtered [sapply(1 : nrow(study_filtered ), function (i ) {
198- image_path <- paste0(figs_path , input $ estimate , " /motion_" , input $ motion , " /pooling_" , input $ pooling , " /" , meta , " _" , input $ estimate , " /" , study_filtered [i , 3 ], " .png" )
198+ image_path <- tolower( paste0(figs_path , input $ estimate , " /motion_" , input $ motion , " /pooling_" , input $ pooling , " /" , meta , " _" , input $ estimate , " /" , study_filtered [i , 3 ], " .png" ) )
199199 file.exists(image_path )
200200 }), ]
201201
@@ -224,7 +224,7 @@ server <- function(input, output, session) {
224224 my_i <- i
225225 plotname <- paste0(" plot" , my_i )
226226
227- image_path <- paste0(figs_path , input $ estimate , " /motion_" , input $ motion , " /pooling_" , input $ pooling , " /" , meta , " _" , input $ estimate , " /" , study_filtered [my_i , 3 ], " .png" )
227+ image_path <- tolower( paste0(figs_path , input $ estimate , " /motion_" , input $ motion , " /pooling_" , input $ pooling , " /" , meta , " _" , input $ estimate , " /" , study_filtered [my_i , 3 ], " .png" ) )
228228
229229 output [[plotname ]] <- renderImage({
230230 # No need to check for file existence since we already filtered out missing files
@@ -249,7 +249,7 @@ server <- function(input, output, session) {
249249
250250 # Removing files that don't exist
251251 study_filtered <- study_filtered [sapply(1 : nrow(study_filtered ), function (i ) {
252- image_path <- paste0(figs_path , input $ m_estimate , " /motion_" , input $ m_motion , " /pooling_" , input $ m_pooling , " /" , meta , " _" , input $ m_estimate , " /" , study_filtered [i , " name" ], " .png" )
252+ image_path <- tolower( paste0(figs_path , input $ m_estimate , " /motion_" , input $ m_motion , " /pooling_" , input $ m_pooling , " /" , meta , " _" , input $ m_estimate , " /" , study_filtered [i , " name" ], " .png" ) )
253253 file.exists(image_path )
254254 }), ] # ### TEST THIS
255255 print(study_filtered )
@@ -279,7 +279,7 @@ server <- function(input, output, session) {
279279 my_i <- i
280280 plotname <- paste0(" m_plot" , my_i )
281281
282- image_path <- paste0(figs_path , input $ m_estimate , " /motion_" , input $ m_motion , " /pooling_" , input $ m_pooling , " /" , meta , " _" , input $ m_estimate , " /" , study_filtered [i , " name" ], " .png" )
282+ image_path <- tolower( paste0(figs_path , input $ m_estimate , " /motion_" , input $ m_motion , " /pooling_" , input $ m_pooling , " /" , meta , " _" , input $ m_estimate , " /" , study_filtered [i , " name" ], " .png" ) )
283283
284284 output [[plotname ]] <- renderImage({
285285 # No need to check for file existence since we already filtered out missing files
0 commit comments