Open TheBready opened 3 years ago
This error usually means that one of the required parameters is set to NaN, which can happen if there's a key missing from the config file. From the line, it looks like this is the similarity_thrd
key (note the spelling!). Could you double-check that that key is in there? There aren't any defaults in this workflow so if there's one missing somewhere, the whole thing will fail.
@szsctt, thanks. I will check that.
Okay, I found the issue. The issue was that I used a relative path for read_directory and out_directory. After changing it to an absolute path, it worked like intended. But it is a weird error for that.
Update: Not fixed yet.
Okay, now I really found the issue. The problem is that analysis_df_value(wildcards, analysis_df, 'string_of_parameter') looks for the experiment and not for the tool. But only the tools have tool-specific parameters, and for all other tools, it's NaNs.
This change in scripts/input_functions.py would fix it.
def analysis_df_value(wildcards, analysis_df, column_name):
return analysis_df.loc[(analysis_df['experiment'] == wildcards.dset).idxmax(), column_name]
to
def analysis_df_value(tool, analysis_df, column_name):
return analysis_df.loc[(analysis_df['tool'] == tool).idxmax(), column_name]
Can I create a merge request for that change?
It seems that there is something wrong with the rule verse. @szsctt Do you know that issue?