Analyzing Your Parse Biosciences Evercode WT scRNA-seq Assay Data
Step 0: Get started with seqspec
To ensure that all data generated at Caltech are standardized and reproducible, we require that every dataset include a seqspec file. A seqspec file provides a machine-readable description of your experiment, specifying the assay information, library structure, and read structure in a YAML-formatted file.
seqspec Tutorials
Step 1: Assess the Quality of Your Sequencing Data with FastQC
If you do not already have FastQC installed, please refer to Installing FastQC.
You can launch the FastQC graphical interface by simply running:
fastqcAlternatively, you can run FastQC directly from the command line:
fastqc --extract --outdir=outdir somefile.fastq someotherfile.fastq ...where you list all the FASTQ files you wish to analyze after the fastqc command, and outdir is the directory in which you would like the output files to be stored.
For a detailed tutorial on using FastQC and interpreting the output reports, see our page on Quality Control of Raw Sequencing Data with FastQC.
Step 2: Pseudoalign Your Library Reads with kb-python
Aligning reads from a Parse Evercode WT library requires additional consideration compared to other scRNA-seq assays. Unlike most platforms, which use primers targeting a specific region of each mRNA molecule, Parse Evercode WT employs two types of primers — poly(T) primers that bind to the 3′ poly(A) tail and random oligo primers that bind to random internal regions of the transcript. Each primer type has its own corresponding set of cell-specific barcodes. As a result, each cell is represented by two barcodes rather than one, as in assays such as 10x Genomics.
To generate a unified count matrix from the raw reads, the counts associated with these two barcodes must be collapsed so that each cell is represented once. In kb-python, this is accomplished by replacing all random oligo barcodes with their corresponding poly(T) barcodes using the -r argument.
When using -r to specify a replacement list in kb count, two count matrices will be produced: one with the original barcodes (stored in the output file counts_unfiltered) and one with the replacement barcodes (stored in the output file counts_unfiltered_modified).
An Example (v2)
Here we provide a brief example of how to pseudoalign a Parse Evercode WT v2 library to a reference using kb count. For a more in-depth tutorial, see our page on kb-python.
To pseudoalign your Parse data, run:
kb count --h5ad -x SPLIT-SEQ -r v2_replace.txt \
-g t2g.txt -i index.idx R1.fastq.gz R2.fastq.gzwhere index.idx and t2g.txt are files generated by kb ref, and R1.fastq.gz and R2.fastq.gz are your raw paired-end reads. The replace.txt file specifies the barcode substitution. The --h5ad argument generates an h5ad formatted file for downstream processing with Scanpy.
If you performed a single-nucleus RNA-seq experiment, instead use the NAC workflow to pseudoalign both nascent and mature reads:
kb count --h5ad -r v2_replace.txt --workflow=nac -x SPLIT-SEQ -g t2g.txt -i index.idx \
-c1 cdna.txt -c2 nascent.txt R1.fastq.gz R2.fastq.gzHere, cdna.txt and nascent.txt are files generated by kb ref --workflow=nac.
You can download the file v2_replace.txt for the v2 chemistry here.
An Example (v3)
Currently, kb-python does not include a built-in specification for Parse Evercode WT v3. Instead, we must provide the assay information manually by specifying:
v3_onlist.txt — a list of valid cell barcodes
a technology string defining barcode positions within the read:
-x "1,10,18,1,30,38,1,50,58:1,0,10:0,0,0"v3_replace.txt - mapping between poly(T) and random oligo barcodes
the orientation of the first read (R1) relative to your library specification:
--strand=forwardthe read parity (
pairedif both paired-end reads contain the biological sequence andsingleotherwise):--parity=single
Then, run:
kb count --h5ad --strand=forward --parity=single \
-r v3_replace.txt -w v3_onlist.txt \
-x "1,10,18,1,30,38,1,50,58:1,0,10:0,0,0" \
-g t2g.txt -i index.idx R1.fastq.gz R2.fastq.gzStep 3: Process and Analyze Your Data
Now you are ready to process your data! To continue with downstream analysis, follow our example scRNA-seq workflow.