Skip to content

Instantly share code, notes, and snippets.

@sminot
Last active September 10, 2019 16:37
Show Gist options
  • Select an option

  • Save sminot/a55554a922fdb528d137c96546b94566 to your computer and use it in GitHub Desktop.

Select an option

Save sminot/a55554a922fdb528d137c96546b94566 to your computer and use it in GitHub Desktop.
Demultiplex FASTQ files in which barcode was sequenced as a separate read
paste -d '' <(bunzip2 -c Raw_Read2_Barcodes.fq.bz2 | awk '{if(NR % 4 == 2 || NR % 4 == 4){print}else{print ""}}') <(bunzip2 -c Raw_Read1.fq.bz2) | fastx_barcode_splitter.pl --bcfile barcodes.tsv --prefix PREFIX --suffix _R1.fastq --bol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment