phenotypic.tools_.slurm.format_sbatch_directives#
- phenotypic.tools_.slurm.format_sbatch_directives(job_name: str, slurm_args: Dict[str, Any], output_log: Path, error_log: Path) str[source]
Generate
#SBATCHdirective lines for a SLURM script.Converts CLI SLURM parameters to
#SBATCHdirectives with proper formatting. Reserved keys (array,output,error,job-name) are silently skipped because they are managed by the script generators.- Parameters:
- Returns:
String with all
#SBATCHdirectives joined by newlines.- Return type:
Notes
Time parameters (
time,slurm_time) as integers are treated as minutes and converted toHH:MM:SS.mem_gbis converted to--mem=<N>G.