Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slurm: Nextflow Script and Code Integration with OSMP Stack #290

Open
1 of 5 tasks
jennyziyi-xu opened this issue Jul 7, 2022 · 1 comment
Open
1 of 5 tasks

Slurm: Nextflow Script and Code Integration with OSMP Stack #290

jennyziyi-xu opened this issue Jul 7, 2022 · 1 comment
Assignees

Comments

@jennyziyi-xu
Copy link
Collaborator

jennyziyi-xu commented Jul 7, 2022

I tried to run Hannah's PR, but ran into an error when making a basic gene query. That PR contains a lot of code changes and it's hard to find and fix issues. To break Hannah's PR into smaller steps:

  • Send a dummy job from OSMP backend to Slurm. Verify that result can be seen on the working directory in the Slurm node.
  • Send a dummy job from OSMP backend that kickstarts a Nextflow job.
  • Further develop Nextflow script, have a working version of it.
  • When gene size is larger than 0.6 mbps, kickstart the Nextflow job.
  • TBD
@jennyziyi-xu jennyziyi-xu self-assigned this Jul 7, 2022
@frewmack frewmack self-assigned this Aug 15, 2022
@jennyziyi-xu
Copy link
Collaborator Author

jennyziyi-xu commented Aug 25, 2022

Running these commands in the terminal can start the nextflow job successfully:

ssh [user]@slogin.ccm.sickkids.ca
srun --pty bash
module load nextflow/20200707 Singularity/3.7.0_slurm
cd osmp-annotation/jobs  (from my home directory)
nextflow run annotation.nf -profile annotation

On the branch jenny/slurm, the [Slurm API executes the script slurm-script-1.sh] (

script: '#!/bin/bash\n./slurm-script-1.sh',
). slurm-script-1.sh has the following content:

#!/bin/bash
module () {
	eval `/usr/bin/modulecmd bash $*`
}
module load nextflow Singularity
cd osmp-annotation/jobs
nextflow run annotation_test.nf -profile annotation
echo "Done executing"
  • Calling this REST API will however result in a permission error related to NextFlow.
  • Kevin Lu has suggested sourcing .bashrc before executing the script: link

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

No branches or pull requests

2 participants