Tired of sifting through your nanopore sequences manually? Meet seqdemu, your no-nonsense, super-efficient demultiplexer for sequences with custom barcodes! 🎉
✅ Demultiplex sequences with custom barcodes—on both ends!
✅ Got barcodes in the middle of the sequence? No problem!
✅ Allows for mismatches—because we all make mistakes. 😏
✅ Detects barcode issues (like multiple forward/reverse primers) and automatically excludes problematic sequences.
✅ Supports multiple CPUs for faster processing.
# Clone the repo
git clone https://github.com/hsgweon/seqdemu.git
cd seqdemu
# Create the seqdemu environment (ensure that you have conda installed)
mamba create -n seqdemu_env -y -c conda-forge -c bioconda conda-forge::biopython progressbar2- A gzipped basecalled FASTQ file (your sequence data).
- A barcode file (check out the example format below).
Barcode File Format Your barcodes should be listed like this:
| Forward Primer | Reverse Primer | Sample ID |
|---|---|---|
| GCCTCAGGCTTA | CGCATAAGGCAA | S01 |
| CTTATGCAATGC | ATGGACTCGCAA | S02 |
| TCCACCAGAGGT | CAATGCGTCCAA | S03 |
| GGAGAAGAAGAA | TGTGGTTGCTAA | S04 |
| AAGCGGAGAGAA | CCTCATGGAAGA | S05 |
| CTCTCTCCAGAA | TGGAGACCAAGA | S06 |
| TCTCTCCAGGAA | TACGAGAAGAGA | S07 |
| GCTACGTTACAA | GTAGTCCGCAGA | S08 |
| ATGTCGGTTAGA | TAGCCTGCGTCA | S09 |
| CATGTATCTGGA | CTCCGGTATCTA | S10 |
| AGACCTAACCGA | CGAGCGCTGTTA | S11 |
| GTTCGAATGTGA | GTCACCGAGAAG | S12 |
| AGCCTCTTAACA | AGTTAGCGGAAG | S13 |
| GCATGTTAGACA | CCGGTTAACAAG | S14 |
| ACAATGGCCGCA | TCACCATGTAAG | S15 |
| GAGAACCTTGCA | TAAGTGCCACAG | S16 |
mamba activate seqdemu_envMake sure seqdemu is in your PATH, then run:
seqdemu.py -i GZIPPED_DORADO_FASTQ_FILE -b BARCODE_FILE -m NUMBER_OF_MISMATCH -o OUTPUT_FILENAME -t NUMBER_OF_CPUs -f bothcd test
../seqdemu.py -i testseqs.fastq.gz -b barcodes.csv -m 0 -o testseqs -t 10 -f bothYou'll get different output files, each with a specific purpose:
🟢 _barc → Sequences with barcodes attached.
🟡 _full → Sequences without trimming.
🔵 _noba → Barcodes removed—use this for downstream analysis!
That's it! 🚀 Now go forth and demultiplex with confidence! 🎉