1
General discussions (Q&As) / Re: How to get structural parameters from find_pair?
« on: March 25, 2012, 10:31:46 am »
Xiang-Jun-
Fixing the atoms names did indeed fix my problem. find_pair now works correctly on the cases I have tested so far.
I have made some OpenBabel-formatted pdb files from Gaussian outputs with all 5 nucleobases. Due to some technical issues they are not actually basepairing; the coordinates are just all there in the file. As I was creating these I found that OpenBabel is actually more clever than I had originally believed: if the entire base is there in the Gaussian output (with sugar included) then OpenBabel will correctly format the PDB with atoms names/residue names, etc. It is only in cases where parts have been changed (as when I replaced the sugar ring with a methyl group) that OpenBabel reverts to the default "LIG" for "ATOM" and default atom names, etc.
In my situation I still needed a way to get the correct atom names into a number of pdbs though, so I have written a perl script that can do this. It works for all of the nucleobases and can handle an arbitrary number of them. I have done only limited testing on it so far, so if I find other bugs I will post corrections to this thread. I have taken a cue from the x3dna2charmm_pdb script for the usage line :-) If this script is useful to others they can feel free to use/change it, but I don't know how many other people will face the same situation as me.
I will go ahead and post the OpenBabel pdbs too.
-Hugh
Fixing the atoms names did indeed fix my problem. find_pair now works correctly on the cases I have tested so far.
I have made some OpenBabel-formatted pdb files from Gaussian outputs with all 5 nucleobases. Due to some technical issues they are not actually basepairing; the coordinates are just all there in the file. As I was creating these I found that OpenBabel is actually more clever than I had originally believed: if the entire base is there in the Gaussian output (with sugar included) then OpenBabel will correctly format the PDB with atoms names/residue names, etc. It is only in cases where parts have been changed (as when I replaced the sugar ring with a methyl group) that OpenBabel reverts to the default "LIG" for "ATOM" and default atom names, etc.
In my situation I still needed a way to get the correct atom names into a number of pdbs though, so I have written a perl script that can do this. It works for all of the nucleobases and can handle an arbitrary number of them. I have done only limited testing on it so far, so if I find other bugs I will post corrections to this thread. I have taken a cue from the x3dna2charmm_pdb script for the usage line :-) If this script is useful to others they can feel free to use/change it, but I don't know how many other people will face the same situation as me.
I will go ahead and post the OpenBabel pdbs too.
-Hugh