Member Site › Forums › Rosetta 3 › Rosetta 3 – General › how to cluster loop? › Reply To: how to cluster loop?
January 8, 2011 at 12:15 pm
#4809
smlewis’s script is a pseudo code, the PDB variable is undefined.
You can change your script like this:
#!/bin/csh
#for example, my pdb files are in /home/SunH/my_decoys/
foreach PDB ( /home/SunH/my_decoys/* )
echo “Extract loop residues from $PDB”
#read loop residues from each pdb file and then write to a new pdb file
head -1 $PDB | tail -100 > “$PDB”_loop_only
end