Running Rnahybrid In Batch
1
0
Entering edit mode
10.3 years ago
biolab ★ 1.4k

Hi everyone,

I am running RNAhybrid commands for many files using various parameters. I integrated all these RNAhybrid commands in a pipe.sh file and run bash pipe.sh for this task. However, it is low in speed, because it is running RNAhybrid command one afer another. I am wondering how to run these RNAhybrid commands in parallel. Could anyone kindly provide me suggestions and answers? I appreciate your help very much!!

RNAhybrid [parameter 1] input1 > output1
RNAhybrid [parameter 2] input1 > output2
RNAhybrid [parameter 1] input2 > output3
RNAhybrid [parameter 3] input2 > output4
... ...
• 2.4k views
ADD COMMENT
1
Entering edit mode

You may want to take a look at the discussion on SO.

ADD REPLY
0
Entering edit mode

Thanks a lot! Really helpful.

ADD REPLY
2
Entering edit mode
10.3 years ago

Use the commands you are using but add "&" at the end of each.

RNAhybrid [parameter 1] input1 > output1 &
RNAhybrid [parameter 2] input1 > output2 &
RNAhybrid [parameter 1] input2 > output3 &
RNAhybrid [parameter 3] input2 > output4 &

However, without studying deeper you may as well end up overloading the server or being unable to kill the unwanted processes. Least you can do is to remember PID (process ID) you get after running these.

ADD COMMENT
0
Entering edit mode

Thank you very much! It is really helpful.

ADD REPLY

Login before adding your answer.

Traffic: 2667 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