failed with own error model
See original GitHub issue–Hi, i have tried to create own error model with:
bowtie2-build --threads 16 -f chr8.fasta bowtie2_index/chr8.genome
bowtie2 -p 16 -x bowtie2_index/chr8.genome -1 chr8_paired1.fq.gz -2 chr8_paired2.fq.gz | samtools view -@16 -bS | samtools sort -@16 -o genomes.bam
samtools index genomes.bam
bin/iss model -b genomes.bam -o genomes
(chr8_paired1.fq.gz and chr8_paired2.fq.gz are paired-end reads 50bp length)
then program failed with:
bin/iss generate --cpus 8 -n 180M --genomes chr8.fasta --model genomes.npz -z --output reads
INFO:iss.app:Starting iss generate
INFO:iss.app:Using kde ErrorModel
INFO:iss.util:Stitching input files together
INFO:iss.app:Using lognormal abundance distribution
INFO:iss.app:Using 8 cpus for read generation
INFO:iss.app:Generating 180000000 reads
INFO:iss.app:Generating reads for record: chr8
joblib.externals.loky.process_executor._RemoteTraceback:
"""
Traceback (most recent call last):
File ".local/lib/python3.7/site-packages/joblib/externals/loky/process_executor.py", line 418, in _process_worker
r = call_item()
File ".local/lib/python3.7/site-packages/joblib/externals/loky/process_executor.py", line 272, in __call__
return self.fn(*self.args, **self.kwargs)
File ".local/lib/python3.7/site-packages/joblib/_parallel_backends.py", line 608, in __call__
return self.func(*args, **kwargs)
File ".local/lib/python3.7/site-packages/joblib/parallel.py", line 256, in __call__
for func, args, kwargs in self.items]
File ".local/lib/python3.7/site-packages/joblib/parallel.py", line 256, in <listcomp>
for func, args, kwargs in self.items]
File ".local/lib/python3.7/site-packages/iss/generator.py", line 65, in reads
forward, reverse = simulate_read(record, ErrorModel, i, cpu_number)
File ".local/lib/python3.7/site-packages/iss/generator.py", line 140, in simulate_read
forward = ErrorModel.introduce_error_scores(forward, 'forward')
File ".local/lib/python3.7/site-packages/iss/error_models/__init__.py", line 66, in introduce_error_scores
self.quality_forward, 'forward')
File ".local/lib/python3.7/site-packages/Bio/SeqRecord.py", line 88, in __setitem__
"strings) of length {0}.".format(self._length)
TypeError: We only allow python sequences (lists, tuples or strings) of length 50.
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "bin/iss", line 11, in <module>
load_entry_point('InSilicoSeq==1.4.5', 'console_scripts', 'iss')()
File ".local/lib/python3.7/site-packages/iss/app.py", line 547, in main
args.func(args)
File ".local/lib/python3.7/site-packages/iss/app.py", line 260, in generate_reads
args.gc_bias, mode) for i in range(cpus))
File ".local/lib/python3.7/site-packages/joblib/parallel.py", line 1017, in __call__
self.retrieve()
File ".local/lib/python3.7/site-packages/joblib/parallel.py", line 909, in retrieve
self._output.extend(job.get(timeout=self.timeout))
File ".local/lib/python3.7/site-packages/joblib/_parallel_backends.py", line 562, in wrap_future_result
return future.result(timeout=timeout)
File "/tools/python/3.7.4/lib/python3.7/concurrent/futures/_base.py", line 435, in result
return self.__get_result()
File "/tools/python/3.7.4/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
TypeError: We only allow python sequences (lists, tuples or strings) of length 50.
what’s wrong ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
The Error Model - Joe Duffy - Blog
Our overall solution was to offer a two-pronged error model. On one hand, you had fail-fast – we called it abandonment – for...
Read more >Get Started with Custom Error Handling in Spring Boot (Java)
Learn how to implement custom error handling logic in Spring Boot. You will see two approaches based on the @ControllerAdvice annotation.
Read more >How do I create a custom Error in JavaScript? - Stack Overflow
However, I would just throw your own object and just check the name property. throw {name : "NotImplementedError", message : "too lazy to...
Read more >Custom Error Message Handling for REST API - Baeldung
We rely on other people's code in our own work. ... This exception is thrown when an argument annotated with @Valid failed validation:....
Read more >A Comprehensive Guide To Error Handling In Node.js
Errors happen in every application. Devs have to decide: do you write code to handle the error? Suppress it? Notify the user?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

–Hi, you can download the files from this link: https://filesender.renater.fr/?s=download&token=f639dc6e-6e79-4b18-a91b-e363d6e252bd thanks.
Should be fixed in
1.4.6