Skip to content

Instantly share code, notes, and snippets.

@sumeetg23
Created June 29, 2021 13:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sumeetg23/a064a36801d2763e94da2e191699fb9f to your computer and use it in GitHub Desktop.
Save sumeetg23/a064a36801d2763e94da2e191699fb9f to your computer and use it in GitHub Desktop.
How to demultiplex based on I5 index and have I7 index as a separate read
If you want the I7 indexes on a standalone FastQ file (R2 file will have the I7 indexes), then
Step 1. first modify your RunInfo.xml file by changing
<Read Number="2" NumCycles="8" IsIndexedRead="Y" />
to
<Read Number="2" NumCycles="8" IsIndexedRead="N" />.
Step 2. Now, run bcl2fastq with the following options: --use-bases-mask y*,y*,i*,y* --minimum-trimmed-read-length 0 --mask-short-adapter-reads 0
Command (software will only use i5 for demultiplexing):
bcl2fastq --runfolder-dir=<run folder> --output-dir=<run folder> --sample-sheet=<samplesheet in csv format> --use-bases-mask y*,y*,i*,y* --minimum-trimmed-read-length 0 --mask-short-adapter-reads 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment