Tips and Tricks: Difference between revisions

(how to use awk to pick body-centered reflections)
Line 69: Line 69:
  grep \! XDS_ASCII.HKL | grep -v "END_OF_DATA" > x   
  grep \! XDS_ASCII.HKL | grep -v "END_OF_DATA" > x   
  grep -v \! XDS_ASCII.HKL | awk '{if ( ($1+$2+$3)%2==0 ) print $0}'  >>x
  grep -v \! XDS_ASCII.HKL | awk '{if ( ($1+$2+$3)%2==0 ) print $0}'  >>x
  echo "!END_OF_DATA" >> x
  echo \!END_OF_DATA >> x
and now use e.g.
and now use e.g.
  phenix.xtriage x
  phenix.xtriage x
to analyze x in terms of body-centered statistics.
to analyze x in terms of body-centered statistics.
2,652

edits