Fix tidyr::separate_rows issue with plots - #75
Conversation
Replace deprecated tidyr::separate_rows with tidyr::unnest for the VST list column. separate_rows no longer handles list columns correctly in current tidyr, causing all VST values to become NA and breaking violin plot rendering. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace tidyr::separate_rows with tidyr::unnest for the VST list column in both plot methods. separate_rows no longer handles list columns in current tidyr, causing all VST values to become NA and breaking violin rendering. Add offline tests (test-plots.R) using mock CoSIAn objects with list-column VST data. Tests fail with separate_rows and pass with unnest. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
I had the same error as Tabea above and this one when running ./validation/gene_expression.sh CoSIA version : 1.11.2 --- DS_Gene multi-species --- see ?CoSIAdata and browseVignettes('CoSIAdata') for documentation |
|
@tsoelter @tchowton A fix for the test suite failing has been pushed. It should work for Tabea since she probably has the ExperimentHub data cached. The download issue TC is getting seems to be a problem with Bioconductor and ExperimentHub, even though ExperimentHub shows as operational on the Bioconductor status website. After removing my cache, I get the same error on Cheaha and locally trying to access CoSIA data and other data in RStudio. Our data: Other data:
|
tsoelter
left a comment
There was a problem hiding this comment.
You were right, @toniecrumley, I still had the cache, so everything worked, including the test suite!
|
@tchowton ExperimentHub is working this morning, so I was able to run the tests and validation. Please give it another try. Thanks!! |
tchowton
left a comment
There was a problem hiding this comment.
The tests validate now and the image reproduces.


Summary
The updated version of CoSIA introduced an issue for a deprecated tidyr function. The function was changed to the newer function that replaces it.
Author Checklist
See instructions here.
cap_container command has been included in each script using a container.
in this pull request.
or unrelated files are part of this pull request. Use
.gitignoreto preventirrelevant files from accidentally being included.
lasseignelabanddefaultenvironments by running the job until two consecutive runs producethe same results. Code comments (per script) have been added for
non-reproducible scripts. Include information about why the script is not
reproducible.
message should show in the GitHub pull request status box above the
"Merge pull request" button.
branch has conflicts that must be resolved" message in the GitHub pull
request status box above the "Merge pull request" button.
pull request.
Self/Peer Review Checklist (Coding Guidelines)
why, not what the code is doing. Avoid excessive or redundant commenting.
Setup
Test
Run the testthat unit test suite:
Validate that the plot has been fixed:
This image is the broken plot.

This image is the fixed plot.

View the plot with the Research Computing Files interface and also run the following md5 command.
The md5 output should be.
Cleanup