Saskia-Oosterbroek / decona

fastq to polished sequenses: pipeline suitable for mixed samples and long (Nanopore) reads
MIT License
41 stars 12 forks source link

fatal: division by zero attempted #12

Closed joran520 closed 2 years ago

joran520 commented 3 years ago

Dear Saskia

I work with pre-demultiplexed data and I use the -f function. /home/genomics/jvanhollebeke/werk/Minion_seafood_native_barcodes/02_SCRIPTS/decona/decona/bin/decona -l 1150 -m 1250 -q 9 -T 25 -c 0.85 -n 20 -i -f

If I use native barcoding 1-16 it's possible that some stray sequences get classified in a barcode folder named barcode16 (or other). This in turn results in the underlying error: awk: cmd. line:1: (FILENAME=combined2.txt FNR=2) fatal: division by zero attempted

Possible causes are:

In my case it works by just deleting the bacodexx folders for which I didn't put in any sample. I suppose the same error could occur if you start demultplexing from the start or if you have a barcode that didn't want to bind the adapter and now have an almost empty folder.