Comments (6)
fixed in a6cf340
from insilicoseq.
caught another similar bug in the mut_sequence
method. fixed in 8ecb2ab
from insilicoseq.
Hi,
Thanks for the great tool, really useful ! It looks like I stumbled across a variant of this bug, although the KeyError doesn't really make sense to me:
Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/joblib/externals/loky/process_executor.py", line 418, in _process_worker r = call_item() File "/usr/local/lib/python3.6/site-packages/joblib/externals/loky/process_executor.py", line 272, in __call__ return self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.6/site-packages/joblib/_parallel_backends.py", line 567, in __call__ return self.func(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/joblib/parallel.py", line 225, in __call__ for func, args, kwargs in self.items] File "/usr/local/lib/python3.6/site-packages/joblib/parallel.py", line 225, in <listcomp> for func, args, kwargs in self.items] File "/usr/local/lib/python3.6/site-packages/iss/generator.py", line 59, in reads forward, reverse = simulate_read(record, ErrorModel, i) File "/usr/local/lib/python3.6/site-packages/iss/generator.py", line 134, in simulate_read forward.seq = ErrorModel.mut_sequence(forward, 'forward') File "/usr/local/lib/python3.6/site-packages/iss/error_models/__init__.py", line 100, in mut_sequence nucl_choices[position][nucl][0], KeyError: 'a'
I'm running 1.3.1 through Docker (docker:hadrieng/insilicoseq:1.3.1). This error disappear when I remove N's from my input genome, so I suspect it's something to do with how ambiguous base are handled ? (although I'm not sure what the error comes up as lower case a). Note that I got similar KeyError with 't", 'g', and 'c' (all lower case).
Thanks !
from insilicoseq.
Hi @simroux !
I think your error is more closely related to #73 , which I thought I fixed. I'll reopen the issue and let you know
from insilicoseq.
The genomes I am working with do have a small number of lower case nucleotides, so I may just have been lucky when the run succeeded after removing Ns :-)
from insilicoseq.
Should be fixed in 1.3.3
from insilicoseq.
Related Issues (20)
- Using abundance file with drafts/plasmids HOT 1
- Output the starting position of each sequence in the reference genome
- Simulating human mitochondrial reads from reference mitochondrial genome HOT 2
- Simulate targeted amplicon sequecing with MiSeq HOT 2
- Experimental groups HOT 2
- Consider switching to pytest HOT 1
- test failure with numpy 1.23.5 HOT 1
- coverage in chr19 of mm39 lower than other chromosomes HOT 1
- 'Seq' object has no attribute 'tomutable' HOT 2
- Bio.Alphabet has been removed from Biopython HOT 2
- Support compressed genomes HOT 1
- More options for downloading genomes HOT 1
- Is this tool still supported? HOT 1
- -u parameter should be -U
- Need help in simulation of whole metagenome data HOT 4
- Bug: local variable 'n_reads' referenced before assignment when running with "coverage" HOT 3
- temporary vcfs are not cleaned up HOT 1
- fragment length parameter not working HOT 2
- Kingdom limitation HOT 2
- Simulate (targeted) sequencing of single genes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from insilicoseq.