How Do I Run Stride For Multiple Files?
2
0
Entering edit mode
11.5 years ago
alianwar • 0

Hello,

I would like to run stride(Protein secondary structure assignment http://webclu.bio.wzw.tum.de/stride/) for multiple files. I got the output for single file. But I get error when I use it for multiple files.

for single file  

./stride 1crn.ent >output

for multiplefiles    

 for i in pdbfiles/*.ent;
do
./stride $i $i.stride;
 done

Only one input file is allowed

I would like to know whether stride allows only single file? Is it possible to run stride with multiple files?

Your suggestions would be appreciated!!

protein • 2.2k views
ADD COMMENT
0
Entering edit mode

hey! How do I run the code from cmd of windows? It says the make.exe is not compatible for the 64-bits version! Thanks a bunch!

ADD REPLY
1
Entering edit mode
11.5 years ago

I think the problem is you missed >, which signifies the output of the program. Looping over nothing has to do with single input, If a program doesn't allows multiple inputs, that why we make a loop to run it one by one. So, command would be :

for i in pdbfiles/*.ent; do ./stride $i > $i.stride; done

Cheers

ADD COMMENT
0
Entering edit mode

yes, you are right. Thank you!!

ADD REPLY
1
Entering edit mode
11.5 years ago

You can also use the GNU/parallel command, which will run stride on multiple processes. This will be faster if you have more than one processor.

Example:

ls pdfiles/* | parallel 'stride {} > {}.stride'

Note that there is also another command called "parallel" in the moreutils package, included in most Linux distribution. The syntax of the GNU/parallel and the moreutils/parallel is slightly different, but you just have to read the man pages.

ADD COMMENT

Login before adding your answer.

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