Hi Pascal,
First, some background information: the utility program [mono:2uhtgbv8]o1p_o2p[/mono:2uhtgbv8] was written for a simple, specific purpose: long time ago, while calculating the RMSD value between the A-DNA NDB entry [mono:2uhtgbv8]adh026[/mono:2uhtgbv8] and the corresponding 3DNA rebuilt structure (with sugar-phosphate backbone), I noticed this RMSD
was much larger than expected. Further inspection revealed that the issue was due to a mislabeling of O1P and O2P atoms for this specific NDB entry
at that time (still available in directory [mono:2uhtgbv8]X3DNA/examples/analyze_rebuild[/mono:2uhtgbv8]). So [mono:2uhtgbv8]o1p_o2p[/mono:2uhtgbv8] was designed to check for proper O1P/O2P labeling, and to swap them if necessary, given a PDB file. Overall, the utility program works for its purpose, and has been released as part of 3DNA from the very beginning.
As a side note, current PDB/NDB entries have changed O1P/O2P to OP1/OP2. The mislabeling of O1P/O2P for [mono:2uhtgbv8]adh026[/mono:2uhtgbv8] has been corrected. Also, 3DNA v2.0 identifies OP1/OP2 labeling internally, but I still prefer to use O1P/O2P in 3DNA output.
[hr:2uhtgbv8][/hr:2uhtgbv8]
Now back to your question: I am glad that you've found [mono:2uhtgbv8]o1p_o2p[/mono:2uhtgbv8] useful. I know the problem you refer to, regarding header removal from [mono:2uhtgbv8]o1p_o2p[/mono:2uhtgbv8] output PDB file. However, current version of [mono:2uhtgbv8]o1p_o2p[/mono:2uhtgbv8]
does not have an option to keep header as is. Conceivably, it should be feasible to add such functionality. I'll consider to put this point in my to-do list for future release of 3DNA (I am busy for my job until the following couple of weeks
). In the meantime, you may prefer to write a script to extract the header from original PDB file, combined with "corrected" O1P/O2P coordinates.
HTH,
Xiang-Jun