mag icon indicating copy to clipboard operation
mag copied to clipboard

MAG_DEPTHS_PLOT issue

Open Vikash84 opened this issue 2 years ago • 6 comments

Description of the bug

Workflow execution completed unsuccessfully! The exit status of the task that caused the workflow execution to fail was: 1.

The full error message was:

Error executing process > 'NFCORE_MAG:MAG:BINNING:MAG_DEPTHS_PLOT (MEGAHIT-MetaBAT2-D22-41472-2_S6)'

Caused by: Process NFCORE_MAG:MAG:BINNING:MAG_DEPTHS_PLOT (MEGAHIT-MetaBAT2-D22-41472-2_S6) terminated with an error exit status (1)

Command executed:

plot_mag_depths.py --bin_depths MEGAHIT-MetaBAT2-41472-2_S6-binDepths.tsv --groups sample_groups.tsv --out "MEGAHIT-MetaBAT2-41472-2_S6-binDepths.heatmap.png"

cat <<-END_VERSIONS > versions.yml "NFCORE_MAG:MAG:BINNING:MAG_DEPTHS_PLOT": python: $(python --version 2>&1 | sed 's/Python //g') pandas: $(python -c "import pkg_resources; print(pkg_resources.get_distribution('pandas').version)") seaborn: $(python -c "import pkg_resources; print(pkg_resources.get_distribution('seaborn').version)") END_VERSIONS

Command exit status: 1

Command output: (empty)

Command error: Traceback (most recent call last): File "/home/vsingh/.nextflow/assets/nf-core/mag/bin/plot_mag_depths.py", line 50, in sys.exit(main()) File "/home/vsingh/.nextflow/assets/nf-core/mag/bin/plot_mag_depths.py", line 45, in main sns.clustermap(df, row_cluster=True, yticklabels=bin_labels, cmap="vlag", center=0, col_colors=groups.group.map(color_map), figsize=(6,6)) File "/usr/local/lib/python3.9/site-packages/seaborn/_decorators.py", line 46, in inner_f return f(**kwargs) File "/usr/local/lib/python3.9/site-packages/seaborn/matrix.py", line 1402, in clustermap return plotter.plot(metric=metric, method=method, File "/usr/local/lib/python3.9/site-packages/seaborn/matrix.py", line 1220, in plot self.plot_dendrograms(row_cluster, col_cluster, metric, method, File "/usr/local/lib/python3.9/site-packages/seaborn/matrix.py", line 1065, in plot_dendrograms self.dendrogram_row = dendrogram( File "/usr/local/lib/python3.9/site-packages/seaborn/_decorators.py", line 46, in inner_f return f(**kwargs) File "/usr/local/lib/python3.9/site-packages/seaborn/matrix.py", line 784, in dendrogram plotter = _DendrogramPlotter(data, linkage=linkage, axis=axis, File "/usr/local/lib/python3.9/site-packages/seaborn/matrix.py", line 594, in init self.linkage = self.calculated_linkage File "/usr/local/lib/python3.9/site-packages/seaborn/matrix.py", line 661, in calculated_linkage return self._calculate_linkage_scipy() File "/usr/local/lib/python3.9/site-packages/seaborn/matrix.py", line 629, in _calculate_linkage_scipy linkage = hierarchy.linkage(self.array, method=self.method, File "/usr/local/lib/python3.9/site-packages/scipy/cluster/hierarchy.py", line 1068, in linkage n = int(distance.num_obs_y(y)) File "/usr/local/lib/python3.9/site-packages/scipy/spatial/distance.py", line 2572, in num_obs_y raise ValueError("The number of observations cannot be determined on " ValueError: The number of observations cannot be determined on an empty distance matrix.

Work dir: /work/f3/7d3ba52b1375b555acf375a6671e9a

Tip: you can replicate the issue by changing to the process work dir and entering the command bash .command.run

Command used and terminal output

No response

Relevant files

No response

System information

No response

Vikash84 avatar Jan 30 '23 05:01 Vikash84