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.
Welcome, @xiaoliang.yang1
With this as the context
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. 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!