extracting atomic coordinates on UNIX
1
1
Entering edit mode
4.4 years ago
corre027 ▴ 10

Hi everyone,

I have a PDB file and am tasked with extracting the atomic coordinates. I have gotten to the point where the lines are highlighted in UNIX but not sure exactly how to extract.

Thanks in advance for any help!

PDB • 1.4k views
ADD COMMENT
0
Entering edit mode
4.4 years ago
Mensur Dlakic ★ 27k

In each line of the PDB file we check that the first column contains ATOM, and that one of the four backbone atoms is in 3rd column.

awk '{if ($1=="ATOM" && $3=="CA") print $0; if ($1=="ATOM" && $3=="C") print $0; if ($1=="ATOM" && $3=="N") print $0; if ($1=="ATOM" && $3=="O") print $0}' 4ZRY.PDB > 4ZRY_backbone.pdb
ADD COMMENT
0
Entering edit mode

Thank you so much for the help!

ADD REPLY

Login before adding your answer.

Traffic: 2643 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6