Skip to content

'analysis_barcodes.py': add options for truncating extracted index sequences before analysis - #1188

Merged
pjbriggs merged 1 commit into
develfrom
analyse_barcodes-specify-index-lengths
Aug 20, 2026
Merged

pjbriggs merged 1 commit into
develfrom
analyse_barcodes-specify-index-lengths

Conversation

@pjbriggs

Copy link
Copy Markdown
Member

Updates the bin/analyse_barcodes.py utility to add new options --i1_length and --i2_length, which can be used to specify the lengths that the I1 and I2 index sequences extracted from the FASTQ read headers should be truncated to.

For example: if the read header looks like:

@A01899:394:HT3LJDRX7:1:1101:28248:1000 1:N:0:AAATCCAGAC+CACAACATTC

then by default the extracted index sequence will be be AAATCCAGAC+CACAACATTC (using the format <I1>+<I2>).

The new options can be used to transform the sequences prior to analysis, for example --i1_length=6 would transform the sequence to:

AAATCC+CACAACATTC

and --i2_length=0 would transform it to a single index sequence:

AAATCCAGAC

This is intended to help with troubleshooting the sample demultiplexing post-FASTQ generation in specific cases where multiple projects appear in a single sequencer lane with different indexing schemes (for example to check whether expected indexes from the non-default indexing scheme are present in the "undetermined" reads).

… sequences.

Adds new options --i1_length and --i2_length which can be used to specify the lengths that the I1 and I2 index sequences should be truncated to for analysis.
@pjbriggs
pjbriggs merged commit 59e4941 into devel Aug 20, 2026
7 checks passed
@pjbriggs
pjbriggs deleted the analyse_barcodes-specify-index-lengths branch August 20, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant