Skip to content

add NXF_SCRATCH=$LSF_TMPDIR to nextflow configs on LSF cluster#90

Open
jbrestel wants to merge 1 commit into
masterfrom
worktree-lsf_tmpdir
Open

add NXF_SCRATCH=$LSF_TMPDIR to nextflow configs on LSF cluster#90
jbrestel wants to merge 1 commit into
masterfrom
worktree-lsf_tmpdir

Conversation

@jbrestel
Copy link
Copy Markdown
Member

Summary

  • Added getNextflowLsfScratchEnvBlock() helper to WorkflowStep.pm that returns env { NXF_SCRATCH = '$LSF_TMPDIR' } when the executor is LSF, empty string otherwise
  • Updated all 32 Make*NextflowConfig workflow steps to include this block in the generated nextflow.config when running on LSF
  • OrthoFinder configs (which already had an env {} block with JVM settings) have NXF_SCRATCH inserted inline into the existing block rather than as a separate block
  • 4 always-local config steps (MakeLoadCNVNextflowConfig, MakeDnaSeqMergeExperimentsNextflowConfig, MakeStudyAssayResultsNextflowConfig, MakeRnaSeqAnalysisNextflowConfig) are unchanged

Test plan

  • Run a nextflow workflow on LSF and confirm the generated nextflow.config contains NXF_SCRATCH = '$LSF_TMPDIR'
  • Run a nextflow workflow locally and confirm the generated config does NOT contain NXF_SCRATCH
  • Verify OrthoFinder config on LSF has NXF_SCRATCH inside the single env {} block alongside the JVM settings

🤖 Generated with Claude Code

…F cluster

All Make*NextflowConfig workflow steps now include env { NXF_SCRATCH = '$LSF_TMPDIR' }
in the generated nextflow.config when the cluster executor is LSF. OrthoFinder configs
(which already had an env block) have the variable inserted inline rather than as a
separate block.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant