Skip to content

Issue with "names" in plot_feature_importance.R #45

@ehb64

Description

@ehb64

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!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions