Resolve Bug Causing Internal Errors with New Data Format (AYGU-1_MeltR) #183
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes 181
What was changed?
I revised the parsing logic in
server.r
to comply with MeltR's expected dataset format for files that have the same structure asAYGU-1_MeltR
.Why was it changed?
As stated in the user story, going forward, user input data will be structured like
AYGU-1MeltR.csv
. The current code strictly supports input files structured liketest.csv
. My code now supports input files structured likeAYGU-1_MeltR.csv
, instead of input file structured liketest.csv
.How was it changed?
The new input file standard,
AYGU-1MeltR.csv
, already complies with MeltR, almost. I have added one line that manipulates the data before it interacts with MeltR:data <- raw_data %>% arrange(Sample)
. This line sorts the input data by the Sample column from lowest to highest (1,2,3,4,...).Additionally the assignment of
numSamples
has been changed fromNULL
to0
. This was done because the following would occur:Screenshots that show the changes (if applicable):
Each of the following cases were testing with the following configuration:
AYGU-1MeltR.csv
input fileCase 1: Windows Machine Running the Application on a Linux Container with R 4.4.0 Installed
Showcase of
AYGU-1_MeltR.csv
UploadedShowcase of Best Fit & Derivative Plots for Sample 3
Showcase of Vant Hoff
Showcase of Table
Case 2: Mac Machine Running the Application Locally Using
MeltShiny.command
with R 4.3.1 InstalledShowcase of
AYGU-1_MeltR.csv
UploadedShowcase of Best Fit & Derivative Plots for Sample 3
Showcase of Vant Hoff
Showcase of Table