You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
I'm attempting to run call-gSNP and getting the following error: Invalid parameter type for parameter input_csv. Requires class java.lang.String but received class groovy.util.ConfigObject.
Could be totally wrong but my first suspicion was that it might be because I'm trying to automate the config file and input_csv path creation by using this code in the config file:
The issue here is that call-gSNP automatically tried to validate the params and input_csv only accepts String. When you add ${} to a string, it becomes a Groovy String (GString). That type mismatch causes the error. This can be updated but wouldn't be immediate.
In the meantime, I'm not sure exactly how you're generating the final String SAMPLE = ... line for each config but you could apply the same logic to bypass this step and just replace ${SAMPLE} in input_csv during the config generation. That way, the config file will always have a String for input_csv and you'd also not need the extra final String SAMPLE = ... line since it seems to only be used for the input CSV.
Alternatively, call-gSNP supports YAML input so you can have a single config file and just generate a YAML for each sample.
Also, it looks like you're using an older version of the config template (I see some params that shouldn't be in the config with 9.1.0).
With major version updates (ex. 7.0.0 to 8.0.0), the changes are expected to be backwards-incompatible in general so I would be careful about trying to use older configs with different major versions of the pipeline.
Describe the issue
I'm attempting to run call-gSNP and getting the following error:
Invalid parameter type for parameter input_csv. Requires class java.lang.String but received class groovy.util.ConfigObject.
Could be totally wrong but my first suspicion was that it might be because I'm trying to automate the config file and input_csv path creation by using this code in the config file:
Got it from Julie L and it worked great for release 7. Any thoughts on how to make this back-compatible?
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: