Hi I am using the docker version of InDelible, I can run the test_data successfully.
but got an error using my own data:
12/07/23 - 12:40:31: Fetching reads...
Total number of split reads processed: 818
12/07/23 - 12:40:32: Aggregating across positions...
12/07/23 - 12:40:32: Scoring positions...
Traceback (most recent call last):
File "indelible.py", line 210, in
indelible.score_positions(counts_path, scored_path, config)
File "/usr/src/app/indelible/indelible/score_positions.py", line 67, in score_positions
df_final = score_dataframe(clf, df)
File "/usr/src/app/indelible/indelible/score_positions.py", line 31, in score_dataframe
predictions = clf.predict_proba(values)
File "/usr/local/lib/python3.8/dist-packages/sklearn/ensemble/forest.py", line 588, in predict_proba
X = self._validate_X_predict(X)
File "/usr/local/lib/python3.8/dist-packages/sklearn/ensemble/forest.py", line 359, in _validate_Xpredict
return self.estimators[0]._validate_X_predict(X, check_input=True)
File "/usr/local/lib/python3.8/dist-packages/sklearn/tree/tree.py", line 391, in _validate_X_predict
X = check_array(X, dtype=DTYPE, accept_sparse="csr")
File "/usr/local/lib/python3.8/dist-packages/sklearn/utils/validation.py", line 547, in check_array
raise ValueError("Found array with %d sample(s) (shape=%s) while a"
ValueError: Found array with 0 sample(s) (shape=(0, 17)) while a minimum of 1 is required.
Hi I am using the docker version of InDelible, I can run the test_data successfully.
but got an error using my own data:
12/07/23 - 12:40:31: Fetching reads... Total number of split reads processed: 818 12/07/23 - 12:40:32: Aggregating across positions... 12/07/23 - 12:40:32: Scoring positions... Traceback (most recent call last): File "indelible.py", line 210, in
indelible.score_positions(counts_path, scored_path, config)
File "/usr/src/app/indelible/indelible/score_positions.py", line 67, in score_positions
df_final = score_dataframe(clf, df)
File "/usr/src/app/indelible/indelible/score_positions.py", line 31, in score_dataframe
predictions = clf.predict_proba(values)
File "/usr/local/lib/python3.8/dist-packages/sklearn/ensemble/forest.py", line 588, in predict_proba
X = self._validate_X_predict(X)
File "/usr/local/lib/python3.8/dist-packages/sklearn/ensemble/forest.py", line 359, in _validate_Xpredict
return self.estimators[0]._validate_X_predict(X, check_input=True)
File "/usr/local/lib/python3.8/dist-packages/sklearn/tree/tree.py", line 391, in _validate_X_predict
X = check_array(X, dtype=DTYPE, accept_sparse="csr")
File "/usr/local/lib/python3.8/dist-packages/sklearn/utils/validation.py", line 547, in check_array
raise ValueError("Found array with %d sample(s) (shape=%s) while a"
ValueError: Found array with 0 sample(s) (shape=(0, 17)) while a minimum of 1 is required.