This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Help with CIBERSORTx Error in Single-Cell RNA-seq Analysis: Invalid 'times' Argument

Hello everyone,

I'm currently using CIBERSORTx to create a new matrix for my single-cell RNA-seq dataset. I aim to use CIBERSORTx to generate a reference, but when I attempt to run it, I encounter the following error:

css

Errors were encountered in CIBERSORTx configuration, run aborted:

Error in rep(2, size * (length(cells) - 1)) : invalid 'times' argument Calls: CIBERSORTxFractions -> makeRefandClassFiles Execution halted

I'm trying to create the necessary files using R studio and then uploading them on cibersort, but I need help understanding the exact format that CIBERSORTx expects for the reference. I think the issue might be with how I'm preparing my input files, but I'm not sure how to resolve it.

Has anyone encountered this issue or have suggestions on how to correctly format my reference or matrix files to avoid this error?

Any advice or guidance would be greatly appreciated!

Thanks in advance!

cibersortx

1 answer

Without posting at least a few lines of your input files, nobody is going to be able to help you. It's also not clear whether you're trying to run through the browser web server or via the Docker image.

The tutorials are quite clear as to how the input files need to be formatted.

This is the error i have: enter image description here

and this is my data: enter image description here

Please avoid posting screenshots of text data. You can copy/paste and then format the text as code using 101010 button in the editor window.

Well, the issue is what it says. You're saying your reference data is single cell, but there's only a single cell for each cell type. It expects more than 1, as (length(cells)) - 1 is zero, which is an obvious problem. You might be able to say it's bulk RNA-seq if you only have one sample.

Again, it seems like you may want to read the tutorials more closely.

Log in to answer this question.