in reply to open3 buffering in linux vs. os x
So, to align an arbitrary number of structures, I created a text file that only said "fit", and then I looped using bash:
Then I used grep to just keep the RMSD value of the run for each structure:for F in *.pdb; do profit -f script.txt complex.1.pdb $F \\ >> output.txt; done
Of course, for anything slightly more complicated than that, I see why you'll want to use Perl.cat output.txt | grep 'RMS' | awk '{print $2}' > rmsd.txt
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: open3 buffering in linux vs. os x
by Lexicon (Chaplain) on Jan 09, 2009 at 02:05 UTC | |
by bruno (Friar) on Jan 09, 2009 at 02:37 UTC | |
by Lexicon (Chaplain) on Feb 16, 2009 at 23:25 UTC |