Skip to content
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

Issue with "names" in plot_feature_importance.R #45

Open
ehb64 opened this issue Jan 31, 2025 · 0 comments
Open

Issue with "names" in plot_feature_importance.R #45

ehb64 opened this issue Jan 31, 2025 · 0 comments

Comments

@ehb64
Copy link

ehb64 commented Jan 31, 2025

Hi There,

My apologies for posting these two issues (see my other post about wildcards). This is the other issue I found in the plot_feature_importance.R file.

When I run:
snakemake --cores 2 --configfile config/test.yaml

The following error is given:
Error in rule plot_feature_importance:
jobid: 9
input: results/otu-micro/feature-importance_results.csv
output: figures/otu-micro/feature_importance.png
log: log/otu-micro/plot_feature_importance.txt (check log file(s) for error details)

The log reads:
Error in group_by():
! Must group by variables found in .data.
✖ Column names is not found.
Backtrace:

Here my quick fix solution was to rename column 6 in feat_df as "names:" colnames(feat_df)[6] <- "names"

This renames the feat column names, and then outputs the correct feature importance plot.

Any feedback on these issues would be greatly appreciated!

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