# Fetal error:Exit code 1 () while running blockclust

**URL:** <https://help.galaxyproject.org/t/fetal-error-exit-code-1-while-running-blockclust/13962>\
**Category:** usegalaxy.org support\
**Tags:** troubleshooting\
**Created:** [November 22, 2024, 10:04am UTC](https://help.galaxyproject.org/t/fetal-error-exit-code-1-while-running-blockclust/13962 "2024-11-22T10:04:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaoliang.yang1](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/xiaoliang.yang1/32/6375_2.png) [@xiaoliang.yang1](https://help.galaxyproject.org/u/xiaoliang.yang1)\
**Post date:** [November 22, 2024, 10:04am UTC](https://help.galaxyproject.org/t/fetal-error-exit-code-1-while-running-blockclust/13962/1 "2024-11-22T10:04:15Z")

</div>

I planned to do the ncRNA clustering by blockclust, and steps were performed as follow: bowtie2 – samtool sort – blockclust (pre-processing) – sort – blockbluster – blockclust (classification and clustering). However, I got an error like the following:  
Traceback (most recent call last):  
File “/usr/local/bin/blockclust.py”, line 754, in   
init()  
File “/usr/local/bin/blockclust.py”, line 608, in init  
auc\_roc(known\_dir)  
File “/usr/local/bin/blockclust.py”, line 430, in auc\_roc  
d\_class\_specific\_aucs[row\_class].append(roc\_auc\_score(l\_labels, l\_similarities))  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/usr/local/lib/python3.11/site-packages/sklearn/utils/\_param\_validation.py”, line 213, in wrapper  
return func(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^  
File “/usr/local/lib/python3.11/site-packages/sklearn/metrics/\_ranking.py”, line 640, in roc\_auc\_score  
return \_average\_binary\_score(  
^^^^^^^^^^^^^^^^^^^^^^  
File “/usr/local/lib/python3.11/site-packages/sklearn/metrics/\_base.py”, line 76, in \_average\_binary\_score  
return binary\_metric(y\_true, y\_score, sample\_weight=sample\_weight)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/usr/local/lib/python3.11/site-packages/sklearn/metrics/\_ranking.py”, line 382, in \_binary\_roc\_auc\_score  
raise ValueError(  
ValueError: Only one class present in y\_true. ROC AUC score is not defined in that case.  
I have no idea now, who please kindly help me?  
Super thanks.

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [November 23, 2024, 2:04am UTC](https://help.galaxyproject.org/t/fetal-error-exit-code-1-while-running-blockclust/13962/2 "2024-11-23T02:04:03Z")

</div>

Welcome, @xiaoliang.yang1

With this as the context

> [@xiaoliang.yang1](#):
>
> ValueError: Only one class present in y\_true. ROC AUC score is not defined in that case.

This seems like a problem between the data input and the parameter choices. Check for mixed up inputs first – these files all get named in a similar way and are easy to mix up.

There are tutorials linked down in the bottom of the tool form if you want see an example or if you’d like to try the tutorial template. You can also welcome to post back your own job for more help. How to generate the history share link is in the banner at this forum, also here → [How to get faster help with your question](https://help.galaxyproject.org/docs?topic=11469). You can paste the link back in a reply, then unshare once we are done.

Let us know how this goes or if you would like more help! 🙂
