This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Installing Cell Ranger

Hello everyone.

I'm now trying to install Cell Ranger following the tutorial described in 10x genomics website (https://www.10xgenomics.com/jp/support/software/cell-ranger/latest/tutorials/cr-tutorial-in), but facing the problem.

I installed the Cell ranger package (cellranger-8.0.0) and added a path to it as follows;

export PATH=/Users/******/desktop/cellranger_downloads/cellranger-8.0.0:$PATH

I suppose Cell Ranger was successfully added to the $PATH because output of "which cellranger" command seemed proper;

/Users/******/desktop/cellranger_downloads/cellranger-8.0.0/cellranger

However, when I runned "cellranger" command or tried testrun (cellranger testrun --id=tiny), the following error message appeared...

**zsh: exec format error: cellranger**

I'm conducting the experiment using Mac PC (Apple M1 Max).

If anyone knows of a solution, I would appreciate it if you could enlighten me.

Best regards,

cellranger

Thank you all for all the advice. I was completely mistaken that the Cell Ranger could be operated in a terminal. I will try the analysis using Docker. If I have any problems, I might have to post question here. Thank you in advance.

1 answer

cellranger you downloaded is compiled for Linux. You can't use it as is on macOS. Since celleanger is a closed source application you can't do much about this (i.e. you can't recompile etc).

Consider switching to alevin-fry or starsolo if you do not have access to linux hardware but need to work with single-cell data.

If macOS is the only choice I would consider running it through Docker. SInce CellRanger itself is fully self-contained you (probably, unested) don't even need to build a container, but just use any Linux container (CentOS, Ubuntu) and run commands from inside there.

Do you know if this will scale for a large number of samples? OP seems to have a M1 Max so may have adequate amount of RAM but one never knows.

My personal opinion is that scaling / big data and use of laptops are mutually exclusive or at least not a native choice. You will probably need to allocate most of the resources to the Docker VM in such a scenario. On top, be sure to disable all these (useless) additional analysis that CellRanger does (like tSNEs etc, I think flag is something like --no-secondary) to save time and RAM. If you're at a company or university reach out to IT and ask whether any cluste/HPC infrastructures is available that you could use. If not, then it's just wait and see. A "normal" 10x run (say 10k cells, 30k reads/cell) takes some hours on a decent HPC node, so depending on your number of samples that will take time on a laptop.

Log in to answer this question.