Hi,
Yes. There are many possible implementations with custom variables. Below is one simple Slurm example.
...
{%- if custom_mem %}
#SBATCH --mem={{ custom_mem }}G
{%- else %}
#SBATCH --mem={{ ram_gb }}G
{%- endif %}
...
In this example, cryoSPARC submits the job normally unless custom_mem
is defined. Alternatively, one could also incorporate the custom variable as a multiplier, as illustrated here.
Cheers,
Yang