This is a test version of Biostars. For the public version, visit https://www.biostars.org.
cellranger count for multiple samples

I was wondering if it is possible to run cellranger count with multiple samples in one go and get an output folder for each sample separately.

I'm using the following command to run cellranger count

cellranger count --id=10X_V211 \
           --libraries=library.csv \
           --transcriptome=Drerio_genome/ \
           --create-bam=true \
           --output-dir v211_Drerio/

while my library.csv file is this

fastqs,sample,library_type,
fastq_files/,low1,Gene Expression,
fastq_files/,low2,Gene Expression,
fastq_files/,high3,Gene Expression,
fastq_file/,high4,Gene Expression,

But this would treat all the samples as just one and would create just one output file.

Is there a way to handle those samples separately or do I need to run the command for times and use the --fastq and --sample parameters instead?

thanks

Assa

cellranger single-cell-transcriptomics 10x

1 answer

There are plenty of ways that you could automate the process of running Cellranger across multiple samples.

I would recommend checking out the nf-core scrnaseq pipeline. It's designed for situations like this.

Why would you run CellRanger, which is fully self-contained and automated additionally via something as heavy as an nf-core pipeline?

Why not? It runs some QC steps beforehand, produces a nice MultiQC report that summarizes the results for each of the sample together, and it has the option of running alternatives to Cellranger as well (if that's of any interest).

The OP's goal appears to be to parallelize (or at least automate) the workflow across multiple samples. This is one way to do that.

I guess I run nf-core pipelines so often that they don't seem particularly "heavy" to me either.

thanks for that, but maybe you do have an answer to my question. is it possible, or do I need to run it in two separate instances?

thanks

Log in to answer this question.