Process UTILS_MERGE_COHORT_STATS (joint_name: joint) terminated with an error exit status (1)
#212
Replies: 3 comments
-
|
It's a curious issue and from the python trace it seems like there are some missing values in one of the files used in the process. If you could please share these files I can take a further look, but otherwise it'd be tough to really try and address this issue. Please feel free to share these files on my academic email Also, great job on getting the pipeline all setup and running with |
Beta Was this translation helpful? Give feedback.
-
|
Hi @abhi18av |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the email @MohdKhairulNizam , I’ve taken a look at the relevant files and something is amiss with the The I suggest that you run the pipeline with tweaked parameters, I'm sharing the defaults used in Also, please remember that beginning from ==== Also, as this is not a pipeline bug, I'm moving this to a discussion and we can continue this discussion over there. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions