-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Good day,
Nizam here. I used the following script for analysis:
./nextflow run 'https://github.com/TORCH-Consortium/MAGMA' -r v1.1.1 -params-file my_parameters_1.yml -profile docker, low_memory --max_memory 10.0 GB -resume
and I came across this error:
[20/cefe9d] NOTE: Process UTILS_MERGE_COHORT_STATS (joint_name: joint) terminated with an error exit status (1) -- Execution is retried (1)
ERROR ~ Error executing process > 'UTILS_MERGE_COHORT_STATS (joint_name: joint)'
Caused by:
Process UTILS_MERGE_COHORT_STATS (joint_name: joint) terminated with an error exit status (1)
Command executed:
generate_merged_cohort_stats.py
--relabundance_approved_tsv approved_samples.relabundance.tsv
--relabundance_rejected_tsv rejected_samples.relabundance.tsv
--call_wf_cohort_stats_tsv joint.cohort_stats.tsv
--output_file joint.merged_cohort_stats.tsv
Command exit status:
1
Command output:
(empty)
Command error:
Traceback (most recent call last):
File "/home/khairulnizam/.nextflow/assets/TORCH-Consortium/MAGMA/bin/generate_merged_cohort_stats.py", line 55, in
df_final_cohort_stats['ALL_THRESHOLDS_MET'] = df_final_cohort_stats['MAPPED_NTM_FRACTION_16S_THRESHOLD_MET'].astype('bool') & df_final_cohort_stats['COVERAGE_THRESHOLD_MET'].astype('bool') & df_final_cohort_stats['BREADTH_OF_COVERAGE_THRESHOLD_MET'].astype('bool') & df_final_cohort_stats['RELABUNDANCE_THRESHOLD_MET'].astype('bool')
File "/opt/conda/lib/python3.9/site-packages/pandas/core/generic.py", line 6240, in astype
new_data = self._mgr.astype(dtype=dtype, copy=copy, errors=errors)
File "/opt/conda/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 445, in astype
return self.apply("astype", dtype=dtype, copy=copy, errors=errors)
File "/opt/conda/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 347, in apply
applied = getattr(b, f)(**kwargs)
File "/opt/conda/lib/python3.9/site-packages/pandas/core/internals/blocks.py", line 526, in astype
new_values = astype_array_safe(values, dtype, copy=copy, errors=errors)
File "/opt/conda/lib/python3.9/site-packages/pandas/core/dtypes/astype.py", line 299, in astype_array_safe
new_values = astype_array(values, dtype, copy=copy)
File "/opt/conda/lib/python3.9/site-packages/pandas/core/dtypes/astype.py", line 227, in astype_array
values = values.astype(dtype, copy=copy)
File "/opt/conda/lib/python3.9/site-packages/pandas/core/arrays/masked.py", line 474, in astype
raise ValueError("cannot convert float NaN to bool")
ValueError: cannot convert float NaN to bool
Work dir:
/home/khairulnizam/work/b4/5a234241888263be2dbc9db3e4bdfc
Tip: you can replicate the issue by changing to the process work dir and entering the command bash .command.run
-- Check '.nextflow.log' file for details
Can I kindly ask for your help to solve this? Thanks
Best Wishes,
Nizam