Replies: 2 comments 5 replies
-
We would recommend ~30X. At 1-2X, the counts of coverage will be too low to
estimate length.
…On Mon, Feb 1, 2021 at 2:08 PM Pkaps25 ***@***.***> wrote:
Hello,
I am using danbing-tk to genotype a set of 1-2x bacterial samples. When
running length prediction, my output is entirely nan for all loci in all
samples. Is this level of coverage too low for genotyping SRS?
I made the following modifications to script/kmc2length.py to fix Numpy
and Python errors:
line 14: q1s = np.nanquantile(data[m], 0.25)
line 15: q3s = np.nanquantile(data[m], 0.75)
line 54: nloci0 = df.shape[0]
The changes on lines 14 and 15 were made because of the following error:
Loading metadata and precomputed TR/NTR LSB
Computing NTR LSB in current dataset
../danbing-tk/script/kmc2length.py:30: RuntimeWarning: invalid value
encountered in true_divide
normcovmat = covmat / ***@***.*** / np.sum(ctrlsize))[:,None]
Traceback (most recent call last):
File "../danbing-tk/script/kmc2length.py", line 127, in
pbamcov, _, ntrbiasmat = processCtrlBamCov(rawcovmat[:,2:].astype(float))
File "../danbing-tk/script/kmc2length.py", line 34, in processCtrlBamCov
badmask = np.logical_or(badmask, get1DIQRmask(stds))
File "../danbing-tk/script/kmc2length.py", line 14, in get1DIQRmask
q1s = np.quantile(data[m], 0.25)
File "<*array_function* internals>", line 5, in quantile
File
"/home/pk445/miniconda3/envs/danbing/lib/python3.8/site-packages/numpy/lib/function_base.py",
line 3844, in quantile
return _quantile_unchecked(
File
"/home/pk445/miniconda3/envs/danbing/lib/python3.8/site-packages/numpy/lib/function_base.py",
line 3851, in _quantile_unchecked
r, k = _ureduce(a, func=_quantile_ureduce_func, q=q, axis=axis, out=out,
File
"/home/pk445/miniconda3/envs/danbing/lib/python3.8/site-packages/numpy/lib/function_base.py",
line 3429, in _ureduce
r = func(a, **kwargs)
File
"/home/pk445/miniconda3/envs/danbing/lib/python3.8/site-packages/numpy/lib/function_base.py",
line 3967, in _quantile_ureduce_func
x1 = take(ap, indices_below, axis=axis) * weights_below
File "<*array_function* internals>", line 5, in take
File
"/home/pk445/miniconda3/envs/danbing/lib/python3.8/site-packages/numpy/core/fromnumeric.py",
line 191, in take
return _wrapfunc(a, 'take', indices, axis=axis, out=out, mode=mode)
File
"/home/pk445/miniconda3/envs/danbing/lib/python3.8/site-packages/numpy/core/fromnumeric.py",
line 58, in _wrapfunc
return bound(*args, **kwds)
IndexError: cannot do a non-empty take from an empty axes.
The change on line 54 was made in response to this error:
Loading metadata and precomputed TR/NTR LSB
Computing NTR LSB in current dataset
Traceback (most recent call last):
File "../danbing-tk/script/kmc2length.py", line 128, in
pbamcov, _, ntrbiasmat = processCtrlBamCov(rawcovmat[:,2:].astype(float))
File "../danbing-tk/script/kmc2length.py", line 26, in processCtrlBamCov
cov = ***@***.*** / np.sum(ctrlsize)
ValueError: matmul: Input operand 1 has a mismatch in its core dimension
0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 3460 is different
from 3467)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKPGPSKPSBYMFT2DSRUVTTS44Q47ANCNFSM4W5RQ7CA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @Pkaps25 , |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using danbing-tk to genotype a set of 1-2x bacterial samples. When running length prediction, my output is entirely
nan
for all loci in all samples. Is this level of coverage too low for genotyping SRS?I made the following modifications to
script/kmc2length.py
to fix Numpy and Python errors:line 14:
q1s = np.nanquantile(data[m], 0.25)
line 15:
q3s = np.nanquantile(data[m], 0.75)
line 54:
nloci0 = df.shape[0]
The changes on lines 14 and 15 were made because of the following error:
The change on line 54 was made in response to this error:
Beta Was this translation helpful? Give feedback.
All reactions