I get the following error when I run MIcFunPred, which doesn't seem to happen with test data. Can you please help me with this?
MicFunPred_run_pipeline.py -i min/taxonomy.tsv -r min/dna-sequences.fasta -o micfunpred_out --verbose
the output as follows:
/data/analysis/user/conda/envs/picrust2/bin/MicFunPred_run_pipeline.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.htmlimport('pkg_resources').run_script('MicFunPred==1.0.0', 'MicFunPred_run_pipeline.py')
Running BLAST with 98.3 cut-off.
Predicting 16S rRNA copy numbers
/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/MicFunPred-1.0.0-py3.8.egg/micfunpreDefini tions/micfunpreDefinitions.py:100: FutureWarning: Calling float on a single element Series is deprecated and will raise a Type Error in the future. Use float(ser.iloc[0]) instead
num = round(float(df[df.index.str.contains(tax,na=False)].mean()),2)
/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/MicFunPred-1.0.0-py3.8.egg/EGG-INFO/script s/MicFunPred_run_pipeline.py:121: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeE rror in the future. Use float(ser.iloc[0]) instead
abundTable.loc[index] = abundTable.loc[index] / float(copyNumberTable_16S_consolidated.loc[index])
Traceback (most recent call last):
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/ops/array_ops.py", lin e 171, in _na_arithmetic_op
result = func(left, right)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/computation/expression s.py", line 239, in evaluate
return _evaluate(op, op_str, a, b) # type: ignore[misc]
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/computation/expression s.py", line 70, in _evaluate_standard
return op(a, b)
TypeError: unsupported operand type(s) for /: 'str' and 'float'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/analysis/user/conda/envs/picrust2/bin/MicFunPred_run_pipeline.py", line 4, in import('pkg_resources').run_script('MicFunPred==1.0.0', 'MicFunPred_run_pipeline.py')
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pkg_resources/init.py", line 7 22, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pkg_resources/init.py", line 1 561, in run_script
exec(code, namespace, namespace)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/MicFunPred-1.0.0-py3.8.egg/EGG-INF O/scripts/MicFunPred_run_pipeline.py", line 121, in
abundTable.loc[index] = abundTable.loc[index] / float(copyNumberTable_16S_consolidated.loc[index])
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/ops/common.py", line 8 1, in new_method
return method(self, other)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/arraylike.py", line 21 0, in truediv
return self._arith_method(other, operator.truediv)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/series.py", line 6112, in _arith_method
return base.IndexOpsMixin._arith_method(self, other, op)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/base.py", line 1348, i n _arith_method
result = ops.arithmetic_op(lvalues, rvalues, op)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/ops/array_ops.py", lin e 232, in arithmetic_op
res_values = _na_arithmetic_op(left, right, op) # type: ignore[arg-type]
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/ops/array_ops.py", lin e 178, in _na_arithmetic_op
result = _masked_arith_op(left, right, op)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/ops/array_ops.py", lin e 135, in _masked_arith_op
result[mask] = op(xrav[mask], y)
TypeError: unsupported operand type(s) for /: 'str' and 'float'
Hello,
I get the following error when I run MIcFunPred, which doesn't seem to happen with test data. Can you please help me with this? MicFunPred_run_pipeline.py -i min/taxonomy.tsv -r min/dna-sequences.fasta -o micfunpred_out --verbose
the output as follows: /data/analysis/user/conda/envs/picrust2/bin/MicFunPred_run_pipeline.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import('pkg_resources').run_script('MicFunPred==1.0.0', 'MicFunPred_run_pipeline.py') Running BLAST with 98.3 cut-off. Predicting 16S rRNA copy numbers /data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/MicFunPred-1.0.0-py3.8.egg/micfunpreDefini tions/micfunpreDefinitions.py:100: FutureWarning: Calling float on a single element Series is deprecated and will raise a Type Error in the future. Use float(ser.iloc[0]) instead num = round(float(df[df.index.str.contains(tax,na=False)].mean()),2) /data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/MicFunPred-1.0.0-py3.8.egg/EGG-INFO/script s/MicFunPred_run_pipeline.py:121: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeE rror in the future. Use float(ser.iloc[0]) instead abundTable.loc[index] = abundTable.loc[index] / float(copyNumberTable_16S_consolidated.loc[index]) Traceback (most recent call last): File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/ops/array_ops.py", lin e 171, in _na_arithmetic_op result = func(left, right) File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/computation/expression s.py", line 239, in evaluate return _evaluate(op, op_str, a, b) # type: ignore[misc] File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/computation/expression s.py", line 70, in _evaluate_standard return op(a, b) TypeError: unsupported operand type(s) for /: 'str' and 'float'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/data/analysis/user/conda/envs/picrust2/bin/MicFunPred_run_pipeline.py", line 4, in
import('pkg_resources').run_script('MicFunPred==1.0.0', 'MicFunPred_run_pipeline.py')
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pkg_resources/init.py", line 7 22, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pkg_resources/init.py", line 1 561, in run_script
exec(code, namespace, namespace)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/MicFunPred-1.0.0-py3.8.egg/EGG-INF O/scripts/MicFunPred_run_pipeline.py", line 121, in
abundTable.loc[index] = abundTable.loc[index] / float(copyNumberTable_16S_consolidated.loc[index])
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/ops/common.py", line 8 1, in new_method
return method(self, other)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/arraylike.py", line 21 0, in truediv
return self._arith_method(other, operator.truediv)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/series.py", line 6112, in _arith_method
return base.IndexOpsMixin._arith_method(self, other, op)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/base.py", line 1348, i n _arith_method
result = ops.arithmetic_op(lvalues, rvalues, op)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/ops/array_ops.py", lin e 232, in arithmetic_op
res_values = _na_arithmetic_op(left, right, op) # type: ignore[arg-type]
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/ops/array_ops.py", lin e 178, in _na_arithmetic_op
result = _masked_arith_op(left, right, op)
File "/data/analysis/user/conda/envs/picrust2/lib/python3.8/site-packages/pandas/core/ops/array_ops.py", lin e 135, in _masked_arith_op
result[mask] = op(xrav[mask], y)
TypeError: unsupported operand type(s) for /: 'str' and 'float'