Hi,
I have used yanocomp to detect RNA m6A in my data, but I got the error message in the log file, ValueError: attempt to get argmax of an empty sequence. The following is the command line I run.
I am not sure the reason why I got the error message. Could you please help me fix the problem?
LEASE NOTE: This is an experimental module to load a centrally installed
miniconda environment. We do not recommend using this to install your own conda
environments; we do recommend installing miniconda in your /pi space to do so.
2023-06-05 21:45:26,179 INFO No GTF provided, records will be grouped by transcript
2023-06-06 01:46:18,838 INFO No GTF provided, records will be grouped by transcript
2023-06-06 07:27:39,854 WARNING Default min depth set to 6 to match window size 3
2023-06-06 07:27:39,860 INFO Running gmmtest in 3-comp GMM (uniform outliers) mode with 1 control datasets and 1 treatment datasets
2023-06-06 07:28:12,823 INFO 22,587 genes to be processed on 1 workers
/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/stats.py:40: RuntimeWarning: invalid value encountered in true_divide
cdf2 = (np.searchsorted(data2, pooled, side='right'))/(1.0 * n2)
/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/stats.py:48: RuntimeWarning: divide by zero encountered in double_scalars
prob = stats.kstwobign.sf((en + 0.12 + 0.11 / en) * d)
/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/stats.py:40: RuntimeWarning: invalid value encountered in true_divide
cdf2 = (np.searchsorted(data2, pooled, side='right'))/(1.0 * n2)
/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/stats.py:48: RuntimeWarning: divide by zero encountered in double_scalars
prob = stats.kstwobign.sf((en + 0.12 + 0.11 / en) * d)
/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/stats.py:23: RuntimeWarning: Mean of empty slice.
mu = X.mean(axis=0)
/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/numpy/core/_methods.py:181: RuntimeWarning: invalid value encountered in true_divi
de
ret = um.true_divide(
/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/stats.py:24: RuntimeWarning: Mean of empty slice.
sig = np.sqrt(((X - mu) ** 2.0).mean(0))
Traceback (most recent call last):
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/bin/yanocomp", line 8, in <module>
sys.exit(cli())
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/opts.py", line 16, in _make_dataclass
return cmd(dynamic_dataclass(cls_name, bases=bases, **cli_kwargs))
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/gmmtest.py", line 333, in gmm_test
res, sm_preds = parallel_test(opts)
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/gmmtest.py", line 210, in parallel_test
res, sm_preds = test_chunk(
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/gmmtest.py", line 164, in test_chunk
was_tested, result, sm = position_stats(
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/stats.py", line 455, in position_stats
r.ks_stat, ks_p_val = pca_kstest(
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/stats.py", line 71, in pca_kstest
comps = pca_comp1(pooled)
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/yanocomp/stats.py", line 28, in pca_comp1
i1 = np.argmax(s ** 2.0)
File "<__array_function__ internals>", line 5, in argmax
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 1195, in argmax
return _wrapfunc(a, 'argmax', axis=axis, out=out)
File "/home/euijin.kwon-umw/miniconda3/envs/yanocomp/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 57, in _wrapfunc
return bound(*args, **kwds)
ValueError: attempt to get argmax of an empty sequence
Hi, I have used yanocomp to detect RNA m6A in my data, but I got the error message in the log file, ValueError: attempt to get argmax of an empty sequence. The following is the command line I run.
I think that nanopolish eventalingn process was successfully done. wt_eventalign.txt
ko_eventalign.txt
Also, here is the reference file.
I am not sure the reason why I got the error message. Could you please help me fix the problem?
Thank you!