seqspec Tutorial: Parse Evercode WT v3 Dual-Indexed Library

Follow one of the following links to download a template seqspec according to the Parse WT kit that you used to generate your sequencing library:

Then, follow this tutorial to tailor the seqspec to your dataset.

Summary of Library Structure and Sequencing

Above is a diagram of the Parse Evercode WT v3 Dual-Indexed Library. The library is structured as follows from 5’ to 3’:

Sequence Type Length
Illumina P5 Primer Fixed 29 bp
Illumina i5 Index Onlist 8 bp
Truseq Read 1 Fixed 29 bp
cDNA Random Variable
Round 1 Barcode Onlist 8 bp
Linker Fixed 12 bp
Round 2 Barcode Onlist 8 bp
Linker Fixed 12 bp
Round 3 Barcode Onlist 8 bp
UMI Random 10 bp
Truseq Read 2 Fixed 34 bp
Illumina i7 Index Onlist 8 bp
Illumina P7 Primer Fixed 24 bp


Parse Biosciences recommends that the library be sequenced in the following way:

Name Primer Cycles Strand Coverage
Read 1 Truseq Read 1 64 positive cDNA
Index 1 Truseq Read 2 8 positive Illumina i7 Index
Index 2 Truseq Read 1 8 negative Illumina i5 Index
Read 2 Truseq Read 2 58 negative UMI + Barcodes + Linkers


Step 1: Fill in the Assay Info

Fill in the missing assay info according to the technology you used to sequence your library. For instance, if you used the Illumina NextSeq 2000 sequencer with the P3 reagent kit, your assay info section would look like:

!Assay
seqspec_version: 0.3.0
assay_id: Parse-Evercode-WT-v3
name: Dual-Indexed Parse Evercode WT v3
doi: https://support.parsebiosciences.com/hc/en-us/article_attachments/31841872776724
date: 20 February 2024
description: Parse Evercode WT v3 using dual Illumina multiplex index
modalities:
- rna
lib_struct: ##TBD##
sequence_protocol: Illumina NextSeq 2000 (EFO:0010963)
sequence_kit: NextSeq 2000 P3 XLEAP-SBS Reagent Kit
library_protocol: single-cell RNA sequencing assay (OBI:0002631)
library_kit: Parse Evercode WT v3

sequence_protocol, sequence_kit and library_protocol must be chosen from seqspec’s controlled vocabulary (use Custom if yours is not listed), and the date must be written as day, month name and year.

Step 2: Alter the Sequence Spec

Update the Read Objects

Parse recommends that you sequence Read 1 to at least 64 nucleotides, but you may have decided to sequence to up to 150 nucleotides. If that is the case, you can modify the length of Read 1 by changing the min_len and max_len to reflect the read length. For example, if you want to sequence 150 nucleotides, update the read as follows:

- !Read
  read_id: read_1
  name: Read 1
  modality: rna
  primer_id: truseq_read1
  min_len: 150
  max_len: 150
  strand: pos
  files:
  - !File
    ...

You may have also decided not to sequence the sample indices if you did not sequence multiple samples at once. In this case, you should remove the Index 1 and Index 2 read objects.

Add in the file objects

Next, for each read, you should fill out a file object referencing the corresponding file.

A file object in seqspec is formatted as follows:

- !File
      file_id: 
      filename:
      filetype: 
      filesize: 
      url: 
      urltype: 
      md5: 

file_id, filetype, filename — identifies and describes the file

filesize - the size of the file in bytes, written as a whole number (e.g., 10737418240, not 10 GB)

url - the link or path to the file. For files stored alongside the seqspec, use the file’s path relative to the seqspec file

urltype - the type of url: local, https, http or ftp

md5 - MD5 fingerprint of data (32 lowercase hexadecimal characters)

All seven fields are required for seqspec check to pass. Remove the ##...## placeholders from the template as you fill them in: YAML treats anything after # as a comment, so an unfilled placeholder reads as an empty value.

NoteWhat does md5 stand for?

An MD5 checksum is a short, unique string of letters and numbers generated from a file’s contents. It acts like a digital fingerprint — if even a single byte in the file changes, the checksum will be different.

Including the MD5 value for your files allows others to verify data integrity after download or transfer, ensuring that the file has not been corrupted or altered.

To generate an MD5 checksum string, type into your command-line:

md5sum <filepath> # For Linux

md5 <filepath> # For macOS

Get-FileHash -Algorithm MD5 -Path <filepath> # For Windows

Step 3: Alter the Library Spec

You can modify the min_len and max_len values for the cDNA region to reflect your desired read length. For example, if you want to sequence 150 nucleotides of cDNA, update the region as follows:

    - !Region
        parent_id: rna
        region_id: cdna
        region_type: cdna
        name: cDNA
        sequence_type: random
        sequence: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
        min_len: 150
        max_len: 150
        onlist: null
        regions: []

Adjust the number of X characters in the sequence field to match the new length, and then adjust the full library sequence and length accordingly.

library_spec:
- !Region
  region_id: rna
  region_type: named
  name: rna
  sequence_type: joined
  sequence: AATGATACGGCGACCACCGAGATCTACACNNNNNNNNTCTTTCCCTACACGACGCTCTTCCGATCTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXNNNNNNNNGAGGTGGTTGGANNNNNNNNCTGACCCCTCATNNNNNNNNXXXXXXXXXXAGATCGGAAGAGCACACGTCTGAACTCCAGTCACNNNNNNNNATCTCGTATGCCGTCTTCTGCTTG
  min_len: 340
  max_len: 340
  onlist: null
  parent_id: null
  regions:
  - !Region
  ...

Step 4: Check Your seqspec

Validate your finished file with seqspec check (see What is seqspec?):

seqspec check seqspec.yaml

If the command prints nothing, your seqspec is valid.

Now you have a complete seqspec file for your data. All that’s left is to save it with your dataset!

WarningDo not use these seqspecs with seqspec onlist for kb-python

The barcode onlists in these seqspecs are written on the library’s top strand, as the seqspec format requires, but Read 2 sequences the opposite strand. As a result, the barcodes returned by seqspec onlist will not match your Read 2 FASTQ and should not be passed to kb count -w. Instead, follow the kb count instructions on our Parse page.