-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Hello and thanks for a great piece of software.
I am looking forwards to the v3 update, so far it looks very promising.
Currently, I am using the demultiplexing feature a lot but in one instance ran into the issue that the sequencing library was prepare using a ligation method which does not preserve the directionality of the barcodes. I.e. samples are barcoded with known barcode sequences but then adapter ligation causes a reversal of the direction in ~50% of the cases.
I would like AdapterRemoval to look for barcodes in both directions and demultiplex them into the same file. Either by allowing multiple barcodes for a single filename e.g.:
cat barcodes.txt
sample_1 ATGCGGA TGAATCT
sample_1 AGATTCA TCCGCAT
sample_2 ATGGATT ATAGTGA
sample_2 TCACTAT AATCCAT
sample_7 CAAAACT TCGCTGC
sample_7 GCAGCGA AGTTTTG
Which currently raises this reasonable excecption:
Duplicate sample name 'sample_1'; combining different barcodes for one sample is not supported. Please ensure that all sample names are unique!
Or alternatively, adding a --reverse option. That looks for barcodes in both orientations.
Of course, all of this can be achieved by specifying these reverse barcodes with unique barcode names and post processing to merge, but having it integrated into the demultiplexing step would be preferred.