What a small small world this is! Last month I needed to do something similar using
ProFit. I didn't see the need to wrap the program with Perl though, since it's a command line application that supports scripting (you can pass your profit script using the -f flag).
So, to align an arbitrary number of structures, I created a text file that only said "fit", and then I looped using bash:
for F in *.pdb; do profit -f script.txt complex.1.pdb $F \\
>> output.txt; done
Then I used grep to just keep the RMSD value of the run for each structure:
cat output.txt | grep 'RMS' | awk '{print $2}' > rmsd.txt
Of course, for anything slightly more complicated than that, I see why you'll want to use Perl.
If you think it's worth it, consider writing a module under Bio::Tools::Run, so that you can later share your wrapper with everyone. You should look at the Bio::Tools::WrapperBase module and subclass from it; it'll give you a nice interface with all the error checking built in. I could help you do it if you want to!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.