splicebox / MntJULiP

Comprehensive and scalable differential splicing analyses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: iteration over a 0-d array

chuddy-ibk opened this issue · comments

Hi there.

I though i give this tool a try after I read the publication.
Mostly, the installation went smooth.
For the first test run with six samples from the same condition I get an error (see below):

$ python /home/chuddy/programmes/MntJULiP/run.py --bam-list bam_file_list.txt --out-dir ./mj --anno-file /home/chuddy/bioinformatics/ref_genomes/mouse_39/annotation/gencode_vm34/gencode.vM34.annotation.gtf --num-threads 8
mnt-JULiP: 21-Mar-24 11:50:29: Creating output folder ...
mnt-JULiP: 21-Mar-24 11:50:29: Generating splice files (or reusing splice files if save-tmp set to true and splice files exist) ...
mnt-JULiP: 21-Mar-24 11:50:29: Processing 6 samples ...
mnt-JULiP: 21-Mar-24 11:50:39: 255815 candidate introns found.
mnt-JULiP: 21-Mar-24 11:50:39: Fitting Negative Binomial models ...
mnt-JULiP: 21-Mar-24 11:51:58: 255815 introns processed
mnt-JULiP: 21-Mar-24 11:51:58: Finished! Took 79.11 seconds.
mnt-JULiP: 21-Mar-24 11:51:58: Fitting Dirichlet Multinomial models ...
mnt-JULiP: 21-Mar-24 11:52:48: 8920 groups processed
mnt-JULiP: 21-Mar-24 11:52:48: Finished! Took 50.22 seconds.
mnt-JULiP: 21-Mar-24 11:52:48: Writing results ...
Traceback (most recent call last):
  File "/home/chuddy/programmes/MntJULiP/run.py", line 161, in <module>
    main()
  File "/home/chuddy/programmes/MntJULiP/run.py", line 149, in main
    write_diff_nb_intron_file(labels, diff_nb_intron_dict, out_dir, anno_info, debug=debug)
  File "/home/chuddy/programmes/MntJULiP/utils.py", line 319, in write_diff_nb_intron_file
    _list += [f"{mu:.2f}" for mu in mus]
TypeError: iteration over a 0-d array

Any idea what went wrong? I use version 2.0 of this tool and Python 3.7.13

Best
Thomas