Created
July 5, 2014 23:36
-
-
Save dacarlin/0b93e56eaf9b57a0a1bb to your computer and use it in GitHub Desktop.
Awk script that lists alpha carbons within a specified distance of an atom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk -v x=21.810 -v y=40.733 -v z=38.672 '/CA/ { if (((x-$7)^2+(y-$8)^2+(z-$9)^2)^.5<12) {print $6} }' > [save-to-file] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment