Skip to content

'XGBClassifier' object has no attribute 'enable_categorical'

Dear RNAmining authors,

I have been trying to run RNA mining as a standalone tool but have been running into problems.

I used the following code for installation: #install rnamining #cd tools #git clone https://gitlab.com/integrativebioinformatics/RNAmining.git #cd RNAmining/ conda create -y --name RNAmining python=3.8.0 ipython conda activate RNAmining #install dependencies conda install -c anacond pandas>=0.23.3 conda install -c anaconda scikit-learn>=0.21.3 conda install -c conda-forge xgboost>=1.2.0 conda install -c conda-forge biopython>=1.78 #install rnamining cd tools git clone https://gitlab.com/integrativebioinformatics/RNAmining/ cd RNAmining cd volumes/rnamining-front/assets/scripts/

And run following command: `

#run prediction on test data head -n 100 /omics/groups/OE0219/internal/tinat/210726_shortRead_processing_deNovo_custom4/gffCompare.annotated.sorted.fasta >
/omics/groups/OE0219/internal/tinat/210726_shortRead_processing_deNovo_custom4/gffCompare.annotated.sorted_test.fasta mkdir /omics/groups/OE0219/internal/tinat/210726_shortRead_processing_deNovo_custom4/coding_prediction_test python3 rnamining.py -f /omics/groups/OE0219/internal/tinat/210726_shortRead_processing_deNovo_custom4/gffCompare.annotated.sorted_test.fasta
-organism_name Homo_sapiens -prediction_type coding_prediction -output_folder /omics/groups/OE0219/internal/tinat/210726_shortRead_processing_deNovo_custom4/coding_prediction_test/

`

Which resulted in following error: /home/heyj/miniconda3/envs/RNAmining/lib/python3.8/site-packages/xgboost/compat.py:36: FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead. from pandas import MultiIndex, Int64Index /home/heyj/miniconda3/envs/RNAmining/lib/python3.8/site-packages/sklearn/base.py:209: FutureWarning: From version 0.24, get_params will raise an AttributeError if a parameter cannot be retrieved as an instance attribute. Previously it would return None. warnings.warn('From version 0.24, get_params will raise an ' Traceback (most recent call last): File "rnamining.py", line 129, in <module> main() File "rnamining.py", line 126, in main predict(args['filename'], args['organism_name'], args['prediction_type'], args['output_folder']) File "rnamining.py", line 111, in predict predict = model.predict(X) File "/home/heyj/miniconda3/envs/RNAmining/lib/python3.8/site-packages/xgboost/sklearn.py", line 1284, in predict class_probs = super().predict( File "/home/heyj/miniconda3/envs/RNAmining/lib/python3.8/site-packages/xgboost/sklearn.py", line 879, in predict if self._can_use_inplace_predict(): File "/home/heyj/miniconda3/envs/RNAmining/lib/python3.8/site-packages/xgboost/sklearn.py", line 813, in _can_use_inplace_predict not self.enable_categorical AttributeError: 'XGBClassifier' object has no attribute 'enable_categorical'

Thanks in advance.

Best,

Joschka