Skip to content

TypeError: Feature names are only supported if all input features have string names, but your input has ['int', 'str'] as feature name / column name types. #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ShevchenkoAlla opened this issue Apr 14, 2025 · 0 comments

Comments

@ShevchenkoAlla
Copy link

Hello)
I have tried three binners separatly, metaba2 and maxbin2 finished successfully, but concuct keep getting me this error -

File "/mnt/nvme/tu/miniconda3/lib/python3.12/site-packages/sklearn/utils/validation.py", line 2417, in _get_feature_names
raise TypeError(
TypeError: Feature names are only supported if all input features have string names, but your input has ['int', 'str'] as feature name / column name types. If you want feature names to be stored and validated, you must convert them all to strings, by using X.columns = X.columns.astype(str) for example. Otherwise you can remove feature / column names from your input data, or convert them all to a non-string data type.

I used:
/mnt/nvme/tu/miniconda3/bin/metawrap binning -o /mnt/nvme/tu/polyfilter_results/INITIAL_BINNING -t 10 -a /mnt/nvme/tu/polyfilter_results/assembly_carpedeam/assembly_FP2_carpedeam.fasta --concoct /mnt/nvme/tu/polyfilter_results/CLEAN_READS_metawrap/*fastq

I would appreciate any help
Thank you,
Best,
Alla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant