Support homeCell RangerTutorials
Specifying Input FASTQ Files for Cell Ranger count

Specifying Input FASTQ Files for Cell Ranger count

The cellranger mkfastq pipeline is deprecated and will be removed in a future release. Please use Illumina's BCL Convert to generate Cell Ranger-compatible FASTQ files. For detailed guidance, refer to the Generating FASTQs page.

Cell Ranger requires FASTQ files as input, which typically come from running demultiplexing software (e.g., Illumina's BCL Convert). However, it is possible to use FASTQ files from other sources, such as a published dataset or the 10x Genomics bamtofastq tool. Check the compatible products page for sequencer platforms that are compatible with single cell gene expression, Flex, and Immune Profiling assays.

To serve as inputs for cellranger, FASTQ files should conform to the following naming conventions:

[Sample Name]_S1_L00[Lane Number]_[Read Type]_001.fastq.gz

or

[Sample Name]_S1_[Read Type]_001.fastq.gz

Where Read Type is one of:

  • I1: Sample index read (optional)
  • I2: Sample index read (optional)
  • R1: Read 1
  • R2: Read 2

The FASTQ files are specified by providing the path to the folder containing them (fastqs), their sample name (fastq_id), and optionally restricting the selection further by specifying the lanes of interest.

Cell Ranger scans the folder's subdirectories to locate the *.fastq.gz files. Make sure there are no duplicate sequence files in the subdirectories.

Here are the columns available in the [libraries] section of the config CSV for specifying which FASTQ files cellranger count should use:

ColumnBrief Description
fastq_idRequired. The sample name to analyze. Use the [Sample_Name] shown above. Multiple names may be provided as a comma-separated list, in which case they will be treated as one sample.
fastqsRequired. The folder containing the FASTQ files to be analyzed.
feature_typesRequired. The underlying feature type of the library (see config CSV documentation for all type options)
lanesOptional. Lanes associated with this sample. Defaults to using all lanes.

If you have multiple directories and/or multiple FASTQ files to process as a single analysis:

├── flowcell_1 │ ├── Sample-GA-A1 │ │ ├── Sample-GA-A1_S1_L001_I1_001.fastq.gz │ │ ├── Sample-GA-A1_S1_L001_R1_001.fastq.gz │ │ ├── Sample-GA-A1_S1_L001_R2_001.fastq.gz │ │ └── Sample-GA-A1_S1_L001_I2_001.fastq.gz ├── flowcell_2 │ ├── Sample-GA-A1 │ │ ├── Sample-GA-A1_S1_L001_I1_001.fastq.gz │ │ ├── Sample-GA-A1_S1_L001_R1_001.fastq.gz │ │ ├── Sample-GA-A1_S1_L001_R2_001.fastq.gz │ │ └── Sample-GA-A1_S1_L001_I2_001.fastq.gz

To process reads from multiple FASTQ files in a single analysis with the cellranger count pipeline, the [libraries] section of the config CSV should be formatted like this:

[libraries] fastq_id,fastqs,feature_types Sample-GA-A1,flowcell_1,Gene Expression Sample-GA-A1,flowcell_2,Gene Expression