Coder Social home page Coder Social logo

kindel's People

Contributors

arfon avatar bede avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lneaves

kindel's Issues

'mask_ends' is not defined

When I run Kindel using --realign on the test data. I get the following error. Has something not installed correctly?

kindel consensus --realign -t 6.1.sub_test.bam
loading sequences: 16457it [00:01, 14571.11it/s]
Traceback (most recent call last):
File "/usr/local/bin/kindel", line 11, in
sys.exit(main())
File "/home/.local/lib/python3.6/site-packages/kindel/cli.py", line 79, in main
parser.dispatch()
File "/home/.local/lib/python3.6/site-packages/argh/helpers.py", line 55, in dispatch
return dispatch(self, *args, **kwargs)
File "/home/.local/lib/python3.6/site-packages/argh/dispatching.py", line 174, in dispatch
for line in lines:
File "/home/.local/lib/python3.6/site-packages/argh/dispatching.py", line 277, in _execute_command
for line in result:
File "/home/.local/lib/python3.6/site-packages/argh/dispatching.py", line 260, in _call
result = function(*positional, **keywords)
File "/home/.local/lib/python3.6/site-packages/kindel/cli.py", line 24, in consensus
uppercase)
File "/home/.local/lib/python3.6/site-packages/kindel/kindel.py", line 377, in bam_to_consensus
clip_decay_threshold, mask_ends)
NameError: name 'mask_ends' is not defined

ValueError: min() arg is an empty sequence

Hi, thanks for making this software available!

I am running into an error with kindel consensus:

kindel consensus align.sam > test.fasta
...
building consensus: 100%|████████████████████████████████████████████████████████████| 90/90 [00:00<00:00, 140853.49it/s]
Traceback (most recent call last):
  File "/env/kindel/bin/kindel", line 8, in <module>
    sys.exit(main())
  File "/env/kindel/lib/python3.6/site-packages/kindel/cli.py", line 83, in main
    parser.dispatch()
  File "/env/kindel/lib/python3.6/site-packages/argh/helpers.py", line 55, in dispatch
    return dispatch(self, *args, **kwargs)
  File "/env/kindel/lib/python3.6/site-packages/argh/dispatching.py", line 174, in dispatch
    for line in lines:
  File "/env/kindel/lib/python3.6/site-packages/argh/dispatching.py", line 277, in _execute_command
    for line in result:
  File "/env/kindel/lib/python3.6/site-packages/argh/dispatching.py", line 260, in _call
    result = function(*positional, **keywords)
  File "/env/kindel/lib/python3.6/site-packages/kindel/cli.py", line 28, in consensus
    uppercase)
  File "/env/kindel/lib/python3.6/site-packages/kindel/kindel.py", line 417, in bam_to_consensus
    uppercase)
  File "/env/kindel/lib/python3.6/site-packages/kindel/kindel.py", line 385, in build_report
    report += '- min, max observed depth[50:-50]: {}, {}\n'.format(min(aligned_depth[50:-50]),
ValueError: min() arg is an empty sequence

I suspect the problem must be in the data somewhere because I am running kindel consensus over a list of files, and it only errors out on some of them. If it would help with troubleshooting I can send the sam file.

environment.yml
name: kindel
channels:
  - bioconda
  - defaults
dependencies:
  - _libgcc_mutex=0.1=main
  - ca-certificates=2020.10.14=0
  - certifi=2020.6.20=py36_0
  - ld_impl_linux-64=2.33.1=h53a641e_7
  - libedit=3.1.20191231=h14c3975_1
  - libffi=3.3=he6710b0_2
  - libgcc-ng=9.1.0=hdf63c60_0
  - libstdcxx-ng=9.1.0=hdf63c60_0
  - ncurses=6.2=he6710b0_1
  - openssl=1.1.1h=h7b6447c_0
  - pip=20.2.3=py36_0
  - python=3.6.12=hcff3b4d_2
  - readline=8.0=h7b6447c_0
  - setuptools=50.3.0=py36hb0f4dca_1
  - sqlite=3.33.0=h62c20be_0
  - tk=8.6.10=hbc83047_0
  - wheel=0.35.1=py_0
  - xz=5.2.5=h7b6447c_0
  - zlib=1.2.11=h7b6447c_3
  - pip:
    - argh==0.26.2
    - biopython==1.78
    - kindel==0.4.2
    - numpy==1.19.2
    - ordereddict==1.1
    - pandas==1.1.3
    - python-dateutil==2.8.1
    - pytz==2020.1
    - scipy==1.5.2
    - simplesam==0.1.3.1
    - six==1.15.0
    - tqdm==4.50.2

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.