yjlee168
★★★
avatar
Homepage
Kaohsiung, Taiwan,
2023-12-18 02:39
(76 d 23:57 ago)

Posting: # 23793
Views: 554
 

 update: bootf2BCA v1.3.2 is out at SourecForge [Software]

Dear all,

Still using or interested in bootf2BCA? The good news is bootf2BCA v1.3.2 has been released at SourceForge. You can download it (a zip file) from here. Of course, I am not even the developer. The developer is Prof. dr hab. Aleksander Mendyk (Poland). I just came to update the news this & other discussions that appeared in this Forum. Still, no NEWS file is included. Same as the previous versions, it was developed in two versions: CLI (command line mode?) & GUI (using shiny). CLI version should be very easy to use, though I never tried before; GUI version seems OK; However, I cannot select files from GUI for the data files of the reference group, the test group or the report (or output) files under R v4.1.3 or R v4.3.2 running on Windows 10. The error message was "Files not found..." or something like that. It uses an R package- shinyFiles to deal with file selection. I don't know if the GUI works in Linux or not; from the screenshots (file type format), the developer seemed using Linux OS to develop it. Since I was using shiny & shinydashboard to code some UIs right now, I then made some modifications from sources of bootf2BCA without developer's permission. But it should be OK because I have not released the modified version to anyone yet. I just want to know if there is any one can try bootf2BCA v1.3.2 under Windows 11? or macOS? Since shiny is a package that we can develop a web-based interactive UI, I also modify its UI (only) into traditional Chinese UI & Japanese UI (using Google's translation function). Apparently, R 4.3.2 (ucrt is really great, uh?) is better than R 4.1.3 regarding its appearance (on Google Chrome web browser). The original is English of course. Add themes from bootstrap (not that bootstrapping, ok?) library (bslib - also a R package) to it. That's it. Thank you all & Dr. Aleksander Mendyk . -- Yung-jin

Japanese UI
[image]

traditional Chinese UI
[image]

All the best,
-- Yung-jin Lee
bear v2.9.1:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here
yjlee168
★★★
avatar
Homepage
Kaohsiung, Taiwan,
2023-12-20 08:01
(74 d 18:35 ago)

(edited by on 2023-12-20 15:56)
@ yjlee168
Posting: # 23797
Views: 392
 

 bootf2BCA - Folder does not exist? - Windows only (solved)

Dear all,

I have found a way to assess the data file for bootf2BCA v1.3.2 from its shiny UI. First, the command volumes=getVolumes() (line#15 in server.R) from package shinyFiles is OS specific and looks for volumes/drives in different places depending on the system on which shiny is running. It is very correct when it is running under Linux (Debian/Ubuntu). I mean when I click the Browse... button it shows the exact folder with all files. I guess it should be no problem too under macOS. However, When running under Windows, it shows different features. getVolume is very flexible. it searches all drives existing in your system, including all usb drives (really amazing). The following picture shows the error at the left-bottom corner - "Folder does not exist" only in Windows. I will explain this later. Using getVolume from package shinyFiles allows users to access the data files from any drive. The following picture shows that users should click the dropdown menu and select 'o(F:)' (my case only; all drives with leading 'o' should work, such as 'o(E)' or 'o(C)'), not the above one (a small folder icon + F:). Then it will show you all F drive contents. Several clicks to go to find the data files. I set the working directory with setwd("F:/bootf2BCA_v1.3.2/GUI"). Then the error message occurred ("Folder does not exist"). That was because the app went to search the folder of "F:/F:/bootf2BCA_v1.3.2/GUI". Of course, no such a folder exists. To prove this, I fixed the line#19 (in server.R) my_current_dir<- getwd() with my_current_dir<- "/bootf2BCA_v1.3.2/GUI". Then it works perfectly, just like in Linux. No need to click, click, and click anymore.

[image]

Other issues:
  1. run_GUI.sh not working? Ans: the working directory should be specified first. Since it's a Linux bash command file, we should add this line in the R script of run_shiny.R to specify the working directory fisrt, such as    
    setwd("~/bootf2BCA_v1.3.2/GUI")  ### yours may be different.
    library(shiny)
    runApp(launch.browser=TRUE)


    If running under R console or RStudio, setwd() can be run separately before running run_shiny.R. In this case, we don't need to modify run_GUI.R.
  2. specifying output (result) file issue? Ans: The original UI (since v1.3?) cannot allow users to specify a new report file name, but only to select from the dropdown menu just like data files selection. The only way is to create a dummy txt file in advance first outside the app . This can be fixed using textInput() from shiny package directly with the default - "report.txt". I examined the code of ui.R and found the developer mark out textInput() line. textInput() allows users to type in or specify the file name manually. This is very convenient for a new project. If not specified, the default file name - report.txt will be used.
  3. I found the output file, report.txt, containing lots of information that we may not need to know. This information however may be very important for the developer, such as stats of each bootstrapping run, and the list of R packages installed. If we cut these outputs out of report.txt (in F2_boot.R). It can fasten the running speed significantly, especially when the # of bootstrapping >10,000 (just for fun; no need to do so; default was 1,000).
  4. to stop running (or listening) the app after finishing - Under Windows, the 'Esc' key should work when running under either R console or RStudio; For Linux, it requires 'Ctrl+C' with the terminal mode; the 'Esc' key should work under RStudio.
  5. to localize the app with different languages other than English (why not? It's a web-based UI app after all.): You need to modify two files - ui.R & server.R. With ui.R, find all strong(...) content, and replace the language you like; And server.R, you only need to modify x- & y-axis labelings & the legends. Also, there was labeling content of a small progressing bar. The progressing bar comes & goes very fast if the # bootstrapping is not enough large. You almost see it there unless the # of bootstrapping is set to 10,000 or more. Modification should be only for your own (personal) use; otherwise, you need the developer's permission first.
That's it.

--Yung-jin

All the best,
-- Yung-jin Lee
bear v2.9.1:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here
UA Flag
Activity
 Admin contact
22,919 posts in 4,807 threads, 1,641 registered users;
28 visitors (0 registered, 28 guests [including 10 identified bots]).
Forum time: 02:37 CET (Europe/Vienna)

The analysis of variance is not a mathematical theorem,
but rather a convenient method of arranging the arithmetic.    R.A. Fisher

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5