Preparation of Rg vs N-C distance plots

  1. Use paste to merge the two data files from carma (carma.Rgyration.dat AND carma.distances) so that each column is pasted next to the other
  2. Use an editor to remove the columns that contain the frame number, or if you would rather use unix, tell it something like awk '{print $2 ” ” $4}' file_from_paste > new_file
  3. Then, you need to make a grid out of the two columns in order to make a nice plot. The program grid will do the trick.
paste carma.Rgyration.dat carma.distances > Rg_vs_N-C.dat
joe Rg_vs_N-C.dat peptide.dat
grid peptide.dat peptide.grid
carma -col - < peptide.grid

Montage can help you prepare a nice image of all the postscript files you created so that you can compare them (and hopefully come to some conclusions, which is why you went through all that trouble in the first place!!!)

montage -title 'Rg vs N-C distance' -bordercolor cyan -background black -tile 3x4 -fill cyan -label RWMDF_1 -label RWQDY -label RDWDR -label RWMDF_2 -label RWTDQ_1 -label RDGDR -label RWMDF_3 -label RWTDQ_2 -label RYTDQ -label RWMDF_hel -label RWTDQ_hel -label AAAAA

Rg vs N-C distance

research/howto/preparation_of_distance_vs._rg_plots.txt · Last modified: 2009/03/09 13:02 (external edit)