DrCytometer / Simplified-flowcytoscript

A simplified, semi-automated high parameter workflow for people who don't know how to code. High dimensional flow cytometry analysis.
GNU General Public License v3.0
0 stars 0 forks source link

Run analysis and print figures Error #2

Closed studyyan closed 5 days ago

studyyan commented 1 week ago

Thanks for your simplified flowcytoscript. But I encounter an error when running the step of flowcytoscript_run_analysis.r.

Error in heatmap(t(flow.data.group.median), scale = "row", labRow = fcs.channel.label, : 'x' must have at least 2 rows and 2 columns [Uploading flowcytoscript.pdf…]()

In other words, the above error occurred on my Windows computer, and I also have some problems installing FastPG R packages on my Macbook Pro because the omp.h file is missing on the Mac. The detailed error is shown below.

Is there a solution? Or if the FastPG package is not an essential part of this script, could I delete it from the script?

In file included from buildNextPhase.cpp:42: ./defs.h:52:10: fatal error: 'omp.h' file not found

include

     ^~~~~~~

1 error generated. make: *** [buildNextPhase.o] Error 1 ERROR: compilation failed for package ‘FastPG’

DrCytometer commented 1 week ago

So, unfortunately, installing FastPG on a Mac is pretty complicated due to the requirement for OpenMP. I don't have much access to Macs, so I can't provide support for that. I believe I included some instructions if you want to try.

I'll look into generating a Mac-friendly version without FastPG.

The error you've gotten means you're trying to generate a heatmap on data with fewer two rows and columns. Either you've only run one group, only selected one marker, or you've had another error related to the failed install.

studyyan commented 6 days ago

Thanks for your answer. I encountered another problem about renaming clusters. After the automatic definition, I did not find any option to rename these clusters when I ran the rmd.

DrCytometer commented 5 days ago

Given that it hasn't installed properly for you, you're going to get errors.

Could you try out the attached version? This does not require FastPG, and should work without OpenMP. In my tests on an old iMac without OpenMP, it works. 20240623_distribution.zip

Sample data for testing this can be downloaded from Dropbox, if you wish.

studyyan commented 5 days ago

I'm so grateful to you for helping me with this! The new version has answered all of my questions. Thank you again for your help!

DrCytometer commented 5 days ago

Awesome! I'll pass it out to a couple more people for testing, and if it works, update the main code.