This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Barcode (index) splitting

Hello!

I have fastq files from HiSeq2500 that all the reads are tagged with our additional custom indexes along with TruSeq indexes. So, my reads sort of look like below.

TruSeq adapter w/ index     NNNN    our index   NNNN    read

After split reads by TruSeq index, I want to split again with our indexes.

Is there a tool that can separate reads by a certain index sequence at certain position?

(i.e. if a sequence from 5th base to 10th base is 'AGTGC', then it is index #1)

I hope my explanation is enough for you. Thank you!

ngs index illumina barcode split

1 answer

Hello!

You can try out the Checkout routine from our MiGEC package, which was specifically designed for such kind of tasks. It can also output those "NNN.." sequences to output read header, in case those are the part of UMI barcode (see this overview article for details).

PS In your case you should provide barcodes.txt file containing

S1 NNNNatgtgcATTGatgcNNNatgc
S2 NNNNatgtgcGATTatgcNNNatgc
S3 NNNNatgtgcTGATatgcNNNatgc
...

where ATTG, GATT, TGAT,... are your barcodes, lower case characters indicate primer sequence (those regions allow mismatches) and NNNN is the degenerate region. IUPAC ambiguous could also be used.

Thank you, Mikhail!

I think this is exactly what I was looking for.

Log in to answer this question.