Description of feature
If PGSC_CALC_SCORE crashes (e.g. due to not being able to meet resource requirements listed in the config file, see #470 ) then the genotype cache is not published to the output folder for use in future runs despite PGSC_CALC_LOAD completing successfully.
I would suggest moving the cache publishing code out of PGSC_CALC_SCORE to occur after aggregation step in the main pipeline (line 126 of workflows/pgsc_calc/main.nf) so that the genotype cache is published in a format that can be used by --genotype_cache_zip in subsequent runs.
Description of feature
If PGSC_CALC_SCORE crashes (e.g. due to not being able to meet resource requirements listed in the config file, see #470 ) then the genotype cache is not published to the output folder for use in future runs despite PGSC_CALC_LOAD completing successfully.
I would suggest moving the cache publishing code out of PGSC_CALC_SCORE to occur after aggregation step in the main pipeline (line 126 of workflows/pgsc_calc/main.nf) so that the genotype cache is published in a format that can be used by
--genotype_cache_zipin subsequent runs.