-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Argument 'x' must be of type logical, integer or numeric, not 'character' #4
Comments
Hi there, I think the issue you might have a column of 'character' values in your CSV files? FCS files don't like character values, as it can only encode numerical data (in the tabular format). There is an edit where it can convert character entries into numbers -- i.e. "Sample 1" would be come '1', "Sample 2" would become '2' etc. |
Hi, Any suggestions? Best wishes Daniel |
If i changed my location to "USA", I didn't have to bother with the decimal separator. Then it worked fine. |
It looks like @d-cac had a localization issue (non-English decimal separator). The solution is either to replace the commas with dots manually using a text editor or a script or by saving the file with the corresponding regions settings applied (either in the software's localization settings or with the operating system's region settings). The issue that @Kathi123456 encountered is a regular issue at our service core (from a proprietary software data export). We're therefore providing a little Python script, the txt2csv_sanitizer, that prepares text files for the CSV-to-FCS export. If you want to clean up existing CSV files, make these adjustments to the code:
With these changes, the Python script will take any CSV file in the specified import folder (by default a folder named "import" at the same location as the script), remove non-numeric data from the file and write the data back to the specified export folder. I hope this recommendation helps people who encounter similar issues! Chris |
Hello,
if I am using the script CSV-to-FCS I get an error when I want to run the last row:
write.FCS(data_subset.ff, paste0(a, ".fcs"))
Fehler in colMaxs(mat[, empty_range_chnl, drop = FALSE]) :
Argument 'x' must be of type logical, integer or numeric, not 'character'.
Does anyone have an idea how to solve this problem?
Thanks in advance!
Kind regards
Kathi
The text was updated successfully, but these errors were encountered: