Hi Pascal,
Yes it works as you say.
Glad to hear that it works.
The fact that spurious characters were present in the files originated from the fact that I used MSW to edit them when I transfered them from a linux to a mac (sorry about that). The original files do not contain these characters.
Thanks for sharing the background information about the issue related to the Mac 'r' line break character. It is actually a
good thing that I have access to these two file so that I could refine 3DNA in future versions to handle such cases
automatically. Remember, I
always welcome concrete/reproducible examples that can show 3DNA's deficiencies so I can further improve it.
Although, using the -b option worked in the previous case, here is another example (which I should have sent you at the first) place of what is troubling me. Could you check this one ? Its an AA pair.
It really helps that you posted the issue with the GA pair first. The AA pair follows the same principle, but in a much
subtler way. There is a directionality with AA pair, which is best seen using the base-pair parameters:
[pre:326fe38j]find_pair AAA.pdb stdout | analyze
# bp Shear Stretch Stagger Buckle Propeller Opening
# 1 A-A
-6.15 -4.93 -0.22 -13.63 -5.09 -23.13
find_pair AA.pdb stdout | analyze
# bp Shear Stretch Stagger Buckle Propeller Opening
# 1 A-A
6.12 -4.47 0.17 0.49 -6.69 -22.10[/pre:326fe38j]
As mentioned in the 2003 3DNA NAR paper, the [mono:326fe38j][yellow:326fe38j]M-N[/yellow:326fe38j][/mono:326fe38j] type pair (as is the case here, so are the A-T/G-C Watson-Crick base pairs) has the sign reversed for
x-axis parameters (i.e., Shear and Buckle) if the order of the bases is reversed (i.e., [mono:326fe38j][yellow:326fe38j]N-M[/yellow:326fe38j][/mono:326fe38j]). Again, as documented in that paper, among the six base pair parameters, Shear, Stretch and Opening are most discriminative of different types of base pairs.
Note that for AAA.pdb, the A-A pair has a negative Shear of [mono:326fe38j]-6.15[/mono:326fe38j] ångström, whilst the A-A pair in AA.pdb has positive [mono:326fe38j]+6.12[/mono:326fe38j] ångström. In such case, reverse the order of the two adenines in either PDB file (but keep the other file as is), and repeat the script from my previous post, you will get what you want (as shown below).
[attachment=0:326fe38j]A-Ar_rotmol_b.png[/attachment:326fe38j]
Given the above information, one could solve the orientation problem by writing a purpose-specific script to automate the above process.
Xiang-Jun