Hi Tilley,
There doesn't exist a QIIME pipeline that will allow you to do this in one easy step, however it is possible.
Below are the steps you will need to take, please let us know if something isn't clear.
Thanks,
Jenya
Prior to calling split_libraries, you will need to:
Step 1 (remove forward & reverse barcodes from each fastq read):
$ extract_barcodes.py -f seqs.fastq -c barcode_paired_stitched --bc1_len 8 --bc2_len 8 -o extract_barcodes
Step 2 (add concatenated forward & reverse barcode to head of each fastq read using Tony's script
merge_bcs_reads.py):
$ python merge_bcs_reads.py extract_barcodes/barcodes.fastq extract_barcodes/reads.fastq reads_with_barcodes_at_head.fastq
Step 3 (update your mapping file to include only the stitched barcodes under column BarcodeSequence):
for example,
original mapping file:
#SampleID BarcodeSequence LinkerPrimerSequence ReversePrimer ReverseBarcode
Daff.0.1 ACTCACACTGT GGTGGTGCATGGCCGTTCTTAGTT TACAAAGGGCAGGGACGTAAT ACTCCCACTGT
Daff.0.2 ACTCACACTGT GGTGGTGCATGGCCGTTCTTAGTT TACAAAGGGCAGGGACGTAAT ACTCCCTAGCT
updated mapping file (ReverseBarcode concatenated to the BarcodeSequence to form a new forward barcode):
#SampleID BarcodeSequence LinkerPrimerSequence ReversePrimer Description
Daff.0.1
ACTCACACTGTACTCCCACTGT GGTGGTGCATGGCCGTTCTTAGTT TACAAAGGGCAGGGACGTAAT Daff.0.1
Daff.0.2 ACTCACACTGTACTCCCTAGCT GGTGGTGCATGGCCGTTCTTAGTT TACAAAGGGCAGGGACGTAAT Daff.0.2
Step 4 (split your fastq reads into fasta + qual)
Step 5 (run split_libraries)
$ split_libraries.py -m mapping_file_with_stitched_barcodes.txt -f convert_fastaqual_fastq/reads_with_barcodes_at_head.fasta -q convert_fastaqual_fastq/reads_with_barcodes_at_head.qual --barcode-type 16 -o split_libraries