Support homeCell Ranger
Cell Ranger Command Line Arguments

Cell Ranger Command Line Arguments

This page lists the most commonly used Cell Ranger pipelines and commands. For the full list of pipelines, commands, and subcommands, run cellranger --help.

Count and analyze gene expression, immune profiling, and/or Feature Barcode data from single sample or multiplexed experiments.

Usage:

  • cellranger count --id <ID> --config <CSV> [OPTIONS]
  • cellranger count --id <ID> --fastqs <PATH> --transcriptome <PATH> [OPTIONS]

Options

OptionDescription
--id <ID>A unique run id and output folder name [a-zA-Z0-9_-]+
--description <TEXT>Sample description to embed in output files (default: "")
--config <CSV>Path of CSV file enumerating input libraries and analysis parameters. Cannot be combined with other analysis arguments (alias: --csv)
-h, --helpPrint help

Pipeline options

OptionDescription
--dryDo not execute the pipeline. Generate a pipeline invocation (.mro) file and stop
--jobmode <MODE>Job manager to use. Valid options: local (default), sge, lsf, slurm or path to a .template file. Search for help on "Cluster Mode" at 10xgenomics.com/support for more details on configuring the pipeline to use a compute cluster
--localcores <NUM>Set max cores the pipeline may request at one time. Only applies to local jobs
--localmem <NUM>Set max GB the pipeline may request at one time. Only applies to local jobs
--localvmem <NUM>Set max virtual address space in GB for the pipeline. Only applies to local jobs
--mempercore <NUM>Reserve enough threads for each job to ensure enough memory will be available, assuming each core on your cluster has at least this much memory available. Only applies to cluster jobmodes
--maxjobs <NUM>Set max jobs submitted to cluster at one time. Only applies to cluster jobmodes
--jobinterval <NUM>Set delay between submitting jobs to cluster, in ms. Only applies to cluster jobmodes
--overrides <PATH>The path to a JSON file that specifies stage-level overrides for cores and memory. Finer-grained than --localcores, --mempercore and --localmem. Consult https://10xgen.com/resource-override for an example override file
--output-dir <PATH>Output the results to this directory
--uiport <PORT>Serve web UI at http://localhost:PORT
--disable-uiDo not serve the web UI
--noexitKeep web UI running after pipestance completes or fails
--nopreflightSkip preflight checks

Individual arguments (cannot be combined with --config)

OptionDescription
--transcriptome <PATH>Path of folder containing 10x-compatible transcriptome reference
--fastqs <PATH>Path to input FASTQ data
--project <TEXT>Name of the project folder within a mkfastq or bcl2fastq-generated folder from which to pick FASTQs
--sample <PREFIX>Prefix of the filenames of FASTQs to select
--lanes <NUMS>Only use FASTQs from selected lanes
--libraries <CSV>CSV file declaring input library data sources
--feature-ref <CSV>Feature reference CSV file, declaring Feature Barcode constructs and associated barcodes
--expect-cells <NUM>Expected number of recovered cells, used as input to cell calling algorithm
--force-cells <NUM>Force pipeline to use this number of cells, bypassing cell calling algorithm. Minimum: 10
--create-bam <true|false>Enable or disable BAM file generation. Setting --create-bam=false reduces the total computation time and the size of the output directory (BAM file not generated). We recommend setting --create-bam=true if unsure. See https://10xgen.com/create-bam for additional guidance (possible values: true, false)
--nosecondaryDisable secondary analysis, e.g. clustering. Optional
--r1-length <NUM>Hard trim the input Read 1 to this length before analysis
--r2-length <NUM>Hard trim the input Read 2 to this length before analysis
--include-introns <true|false>Include intronic reads in count (default: true; possible values: true, false)
--chemistry <CHEM>Assay configuration. NOTE: by default the assay configuration is detected automatically, which is the recommended mode. You usually will not need to specify a chemistry. Options are: auto for autodetection, threeprime for Single Cell 3', fiveprime for Single Cell 5', SC3Pv1 or SC3Pv2 or SC3Pv3 or SC3Pv4 for Single Cell 3' v1/v2/v3/v4, SC3Pv3HT for Single Cell 3' v3 HT, SC5P-PE or SC5P-PE-v3 or SC5P-R2 or SC5P-R2-v3 for Single Cell 5', paired-end/R2-only, SC-FB for Single Cell Antibody-only 3' v2 or 5'. To analyze the GEX portion of multiome data, chemistry must be set to ARC-v1 (default: auto)
--no-librariesProceed with processing using a --feature-ref but no Feature Barcode libraries specified with the libraries flag
--check-library-compatibility <true|false>Whether to check for barcode compatibility between libraries (default: true; possible values: true, false)
--tenx-cloud-token-path <PATH>The path to the 10x Cloud Analysis user token used to enable cell annotation. If not provided, will default to the location stored through cellranger cloud auth setup
--cell-annotation-model <MODEL>Cell annotation model to use. Valid model names can be viewed by running cellranger cloud annotation models or on the 10x Genomics Support site (https://www.10xgenomics.com/support). If omitted or set to auto, uses the default model for the species
--disable-cell-annotationDisable cell type annotation
--min-crispr-umi <NUM>Minimum CRISPR UMI threshold (default: 3)

Build a reference for use with 10x analysis software (gex, vdj, gtf).

Usage: cellranger buildref <COMMAND>

CommandDescription
gexBuild a gene expression reference. Requires a GTF and FASTA
vdjBuild a reference for use with Cell Ranger VDJ
gtfFilter a GTF file by attribute prior to building a gene expression reference
helpPrint this message or the help of the given subcommand(s)
OptionDescription
-h, --helpPrint help

Usage: cellranger testrun [OPTIONS] --id <ID>

OptionDescription
--id <ID>A unique run id and output folder name
--description <TEXT>Sample description to embed in output files
--dryDo not execute the pipeline. Generate a pipeline invocation (.mro) file and stop
--jobmode <MODE>Job manager to use. Valid options: local (default), sge, lsf, slurm or path to a .template file. Search for help on "Cluster Mode" at 10xgenomics.com/support for more details on configuring the pipeline to use a compute cluster
--localcores <NUM>Set max cores the pipeline may request at one time. Only applies to local jobs
--localmem <NUM>Set max GB the pipeline may request at one time. Only applies to local jobs
--localvmem <NUM>Set max virtual address space in GB for the pipeline. Only applies to local jobs
--mempercore <NUM>Reserve enough threads for each job to ensure enough memory will be available, assuming each core on your cluster has at least this much memory available. Only applies to cluster jobmodes
--maxjobs <NUM>Set max jobs submitted to cluster at one time. Only applies to cluster jobmodes
--jobinterval <NUM>Set delay between submitting jobs to cluster, in ms. Only applies to cluster jobmodes
--overrides <PATH>The path to a JSON file that specifies stage-level overrides for cores and memory. Finer-grained than --localcores, --mempercore and --localmem. Consult https://10xgen.com/resource-override for an example override file
--output-dir <PATH>Output the results to this directory
--uiport <PORT>Serve web UI at http://localhost:PORT
--disable-uiDo not serve the web UI
--noexitKeep web UI running after pipestance completes or fails
--nopreflightSkip preflight checks
-h, --helpPrint help

The official command-line client for 10x Genomics Pipeline Runner. Before using the CLI, you'll need to authenticate with txg auth setup. See txg help auth for more information.

Usage: txg [command], txg help [command]

CommandDescription
analysesManage analyses
annotationCell type annotation functions
authManage authentication
fastqsUpload and manage FASTQs
filesUpload and manage files
helpHelp about any command
projectsManage projects
referencesUpload and manage custom references
FlagDescription
--access-token stringSpecify an access token to use. Default: the saved token from txg auth setup.
-y, --assumeyesAssume yes (don't interactively prompt for confirmation, etc). Default: off.
-H, --header headerExtra header to include in the request when sending HTTP requests to a server. May be given multiple times to add multiple headers. Each header must be of the form Header: value. Default: no extra headers.
-h, --helpDisplay help and exit.
-q, --quietDon't show progress or messages. Default: off.
-v, --verboseDisplay extra debugging information. Default: off.
--versionDisplay version and exit.

For more information about what data is collected and how it is used, visit https://10xgen.com/pipeline-telemetry.

Usage: cellranger telemetry [help] (collect/check/disable/enable/list/show)

OptionDescription
collectCollect telemetry data, if enabled.
checkShow whether telemetry is currently enabled and configuration information.
disableDisable telemetry collection for this user.
enableEnable telemetry collection for this user.
listList files containing saved telemetry data for this product.
showDisplay contents of saved telemetry data for this product.