HadrienG / InSilicoSeq

:rocket: A sequencing simulator
https://insilicoseq.readthedocs.io
MIT License
184 stars 32 forks source link

Index out-of-range error #96

Closed standage closed 5 years ago

standage commented 5 years ago

Thanks for publishing this tool!

I'm testing InSilicoSeq for simulating targeted sequencing of short amplicons. I often run into string index out of range error messages when I try to simulate reads from these amplicons. As an example, the command below will elicit the error on this file.

iss generate --n_reads 500000 --cpus 6 --draft seq4.fasta \
    --model MiSeq --output TESTING --seed 1146345545
HadrienG commented 5 years ago

solved in 1.3.5!

standage commented 5 years ago

I just encountered this issue again, but with the reverse orientation block. It looks like the solution implemented in #97 needs to be applied to the elif orientation == 'reverse': block as well. Doing so fixed the issue I had just now.