broadinstitute / PhylogicNDT

Other
71 stars 39 forks source link

A minor issue in SinglePatientTiming #42

Closed shwong-tw closed 2 years ago

shwong-tw commented 4 years ago

Dear Developer, With the new commit, the previous "out of bounds error when running SinglePatientTiming" has been solved. While there seem to be another minor issue popped up an error message returned is shown below:

Traceback (most recent call last):
  File "${PhylogicNDT_HOME}/PhylogicNDT.py", line 515, in <module>
    args.func(args)
  File "${PhylogicNDT_HOME}/SinglePatientTiming/SinglePatientTiming.py", line 51, in run_tool
    timing_engine.time_events()
  File "${PhylogicNDT_HOME}/SinglePatientTiming/TimingEngine.py", line 216, in time_events
    cn_event.get_pi_dist_for_gain()
  File "${PhylogicNDT_HOME}/SinglePatientTiming/TimingEngine.py", line 560, in get_pi_dist_for_gain
    p2_real = self.get_p2_dist_for_gain()
  File "${PhylogicNDT_HOME}/SinglePatientTiming/TimingEngine.py", line 548, in get_p2_dist_for_gain
    mut_p2_dist += np.sum(mut.log_mult_dist, 1)
  File "${Python_Home}/envs/Conda2/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 1848, in sum
    out=out, **kwargs)
  File "${Python_Home}/envs/Conda2/lib/python2.7/site-packages/numpy/core/_methods.py", line 32, in _sum
    return umr_sum(a, axis, dtype, out, keepdims)
ValueError: 'axis' entry is out of bounds

Hope this information would help, thanks a lot for updating!