How to run 2 programme one after another using single SLURM?
2
0
Entering edit mode
4.9 years ago
kabir.deb ▴ 90

Hello experts,

I want to run 2 programme simultaneously using SLURM (serially) script by which output of 1st programme used as input of second programme. I have multiple fasta file as input, how can I do that!

Thanks

SLURM parallel • 3.9k views
ADD COMMENT
1
Entering edit mode

What have you tried? You can pipe the output from program 1 to program 2 or save the output from program 1 to a file and use it as input to program 2. You cannot run them simultaneously as program 2 depends on the successful completion of program 1.

ADD REPLY
1
Entering edit mode
4.9 years ago
Mensur Dlakic ★ 28k

If the output of first program is used for second, that is not running them simultaneously but sequentially.

Simply have two lines in your SLURM script, each of which is running the required programs in correct order.

ADD COMMENT
0
Entering edit mode
4.9 years ago
h.mon 35k

I think you want one job start to be dependent on the previous job being finished, correct? You can do this with SLURM by using --dependency=afterok:jobid, where jobid is the ID number of the job you want to finish in order to run the second job.

ADD COMMENT

Login before adding your answer.

Traffic: 1716 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6