grep "^ATOM  " filename.pdb | cut -c 61-66 | awk '{s+=$1;} END {print s/NR;}'

"Nobody likes a show off, Private"
                                           Skipper

Cheers


Sent on a Sprint Samsung Galaxy S® III


-------- Original message --------
From: Chen Zhao
Date:10/04/2014 4:03 PM (GMT-05:00)
To: PHENIX user mailing list
Subject: [phenixbb] Calculate average B-factor?

Dear all,

I am just wondering whether there is a command line tool in phenix that calculates the average B-factor of a PDB file? Can it deal with the ANISOU records (from TLS refinement or not) properly? I looked into previous posts but the  --show-adp-statistics option in phenix.pdbtools seems to be no longer available in the version (1.9-1678) I installed.

Thank you so much,
Chen