Code Monkey home page Code Monkey logo

Comments (6)

HadrienG avatar HadrienG commented on July 23, 2024

fixed in a6cf340

from insilicoseq.

HadrienG avatar HadrienG commented on July 23, 2024

caught another similar bug in the mut_sequence method. fixed in 8ecb2ab

from insilicoseq.

simroux avatar simroux commented on July 23, 2024

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.

HadrienG avatar HadrienG commented on July 23, 2024

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.

simroux avatar simroux commented on July 23, 2024

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.

HadrienG avatar HadrienG commented on July 23, 2024

Should be fixed in 1.3.3

from insilicoseq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.