You can calculate the Radius of gyrations of the selected amino acids using the Tcl script below in VMD. Import the residue names in the **atomselect top " (protein and resid 149)*** (For example, this is for the residue No. 149 from the protein residues)
set mol [molinfo top]
set out [open HB.dat w]
set sel [atomselect top " (protein and resid 149) and backbone "]