The basic issue is that there is no one-to-one correspondence between DNA sequence and its 3D structure. For example, a 146-bp fragment could be in left-handed super-helical form as in nucleosomal DNA, or other other conformations (straight or not). In the literature, there have been several bending models, each of which assigns a set of step parameters (roll, twist etc) to specific sequence (at di-, tri- or tetra-nucleotide level).
As noted in the 3DNA 2008 Nature Protcols paper (3DNA-NP):
"Thirdly, as demonstrated in SCHNArP, various DNA bending ‘rules’, with different sets of tilt/roll/twist values at the constituent dinucleotide or trinucleotide steps, can be easily incorporated within a script that transforms a sequence with an assigned ‘bending model’ into an input file that feeds into rebuild."
So overall, you are in the right direction, as far as building a DNA model is concerned. Now to your specific questions:
1. I used only dinucleotide shift, slide, rise, tilt, roll and twist parameters that download from DiProDB, but ignored Shear, Stretch, Stagger, Buckle, Prop-Tw and Opening.
The "rebuild" program in 3DNA can take two types of input, as documented in 3DNA-NP. You can ignore Shear, Stretch ... etc base-pair parameters, which will be taken as zeros.
2. I wrote a small program to generate a base step parameter file from DNA sequence just like the bp_step.par in X3DNA example.
It can be simpler, as noted above. Please see also 3DNA-NP: working through recipe #2 would clarify the issues.
3. I use rebuild program to build a 3D model by using the base step parameter file in step 2. (rebuild -atomic M1_sense.3dna M1_sense.3dna.pdb)
Yes, it is right.
Everything works fine. But when I use SPDB Viewer to visualize my model, I found some segment did not connected well (please see Picture 2.png in attached file). Is this problem can be fixed?
Or this is a viewer problem? I've tried JMol, but Jmol cannot show it properly.
That's normal. Again as noted in 3DNA-NP:
Secondly, rebuild allows for the construction of atomic-level nucleic-acid structures (‘-atomic’ option) with sugar–phosphate backbones in pre-assigned, fixed conformations (specified by standard residue files; see the FAQ section at the 3DNA website). Such models, which have precise base-pair geometry but approximate (sometimes distorted) backbone connections, provide a useful starting point and basis for analysis of all-atom simulations.
One more note, 'rebuild' generated PDB files have full CONECT records, and should display with all proper connections with RasMol. Of course, some of the O3'(i) to P(i+1) bonds would be quite long.
So, I would suggest you to download 3DNA v2.0, and play with the worked examples.
HTH,
Xiang-Jun