Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Netiquette · Download · News · Gallery · Homepage · DSSR · Web-DSSR · DSSR Manual · G-quadruplexes · DSSR-Jmol · DSSR-PyMOL

Topics - MingyuSun

Pages: [1]
Howtos / For Novices
« on: March 20, 2016, 03:47:03 am »
3DNA is for analysis, rebuilding, and visualization of three-dimensional nucleic-acid-containing structures, including their complexes with proteins and other ligands, featured in purely geometrically based and that it allows for exact construction of a model from a set of straightforward and well understood, user-supplied parameters (ref01). x3dna-dssr and x3dna-snap are separated downloads but can work together with 3DNA

Register at the 3DNA Forum, Log in, click Downloads and 3DNA download. Download 3DNA (like 3DNA version v2.3-2016jan20, (ref02)) x3dna-dssr and x3dna-snap if you need. (If you are not sure, download all of the three, they are not big.)
Since most novices work under windows as me, here, I just focus on window version.
Regarding your choice between MinGW/MSYS, and Cygwin, you can refer the website, or the following quote: Cygwin seems more Linux-like, whilst MinGW is more Windows-like (ref 03).

After you download 3DNA (or other two mentioned above), do not depress them directly and try to double click ~.exe, which is useless, though you can find them. You might notice that the file you download is a little strange, namely, it is x3dna-v2.3-mingw-win.tar.gz. It seems that those with ~.tar.gz shall be run in a Unix/Linux environment, different from those we are familiar with under windows. This point is addressed in ref01. Anyhow, you can’t install or use this way, you have to get MinGW or Cygwin at hand first. And this file must be put in the shell.

Installation with MinGW
1, install msys
•   Following the link Getting Started, download the GUI installer 'mingw-get-inst'. Use defaults options, except at the "Select Components" section, be sure to pick "MSYS Basic System" so that both MinGW and MSYS are both installed at the same time.
•   Then install the latest version with Ruby (v1.9.3) with "Ruby Installer". In the "Installation Destination and Optional Tasks" section, be sure to select "Add Ruby executables to your path", and "Associate .rb and .rbw files with this Ruby installation".(ref04)
1, there is a detailed instruction here, the only difference is that I did not see “blur”, but I presumed that it was not a serious problem since I installed successfully at last.
2, if you can only see MinGW installer icon (fig.MinGW01), you have not installed it, you should see MinGW shell icon (fig.MinGW02) after successful installation.
3, double click MinGW installer icon (fig.MinGW01), make sure you pick "MSYS Basic System", then, chose “Apply Changes” in the Installation in the upper left, you can get MinGW shell icon (fig.MinGW02)

2, install Ruby
You can find it there, and since there is one installer for the case that you are not sure yourself, novices should be able to cope with that. Just follow the quoted instruction.

3, install 3DNA
1, double click msys icon to open a new shell, type ‘pwd’, which show your home directory (mine is /home/Administrator)
 '/home/administrator' is your home directory. On Windows, it should be in C:\MinGW\msys\1.0\home or something like that. (ref05) not C:\Users\Administrator.
2, move (or copy) the downloaded file (tarball x3dan-v2.3-mingw-win.tar.gz) into your home directory (depression is not needed), that is C;\MinGW\msys\1.0\home. If you did it correctly, you would see something after typing “ls –l”(lower case L) in the shell.
3, run “tar zxvfp x3dna-v2.3-mingw-win.tar.gz”
4, run “cd x3dna_v2.3/bin (or other ~_v~)
5, run “./3dna_setup”
6, as for the instruction get see (fig.install01,the upper part),
1.   Double-click the msys icon to get the shell
2.   Within the opened terminal, type the following commands strictly:
echo    'export X3DNA=$HOME/x3dna-v2.3' > .profile
echo     'export PATH=$X3DNA/bin:$PATH' >> .profile
cat     .profile
3.   Close the shell
4.   Double-click the msys icon to open another shell
5.   In the opened terminal, type: fiber –h (or other command with –h)
1, Pay attention to the space in the quoted command
2, you can try tar, tar --help, car --help in the opened shell, which will give you much more information (personally, I have not made them clear to me)
3, copy (or move) x3dna-dssr.exe, x3dna-snap.exe into C:\MinGW\msys\1.0\home\Administrator\x3dna-v2.3\bin though they can also be run with cmd(fig.dssr01)
By the way, you can get cmd by using windows+R or in the “start”, searching for it is OK.

As for Cgywin

1, install Gqywin
manual and many other information can also be found here. The manual is here:
And some tips like this one can be found online.
But you may not be able to select some packages in the Devel. I guess that is because you have not had some components installed. (You can also consult the manual. As for the mirror, refer to
It is very kind of Cesarzapata to post the experience on the forum, which is very clear.
Unfortunately, I did not succeed following this, and have not found out why yet. I guess I need to read the manual first, which I have not finished, and I have not found “Cygwin-specific documentation in the /usr/share/doc/Cygwin/ directory” mentioned in the manual.
All in all, I am pretty sorry for failing to provide more detailed information here, but I think I will in the future, and I hope other can also join me.

I do not know why so many things work under linux at first. But now, as far as I see, the following two may be the points:
1, it is more stable;
2, it is more portable ( can work with anything with Unix);
so it is up to you if you are to face up with the forbidding linux, if you are bound to focus on simulations, may be you have to.

After successful installation, you can type command you already knew with –h to get a detailed information about the command, and related commands will appear in “see also”. You can type them with –h if you want. Beside, you can go C:\MinGW\msys\1.0\home\Administrator\x3dna-v2.3\bin, and decide ~ -h with the hints you see (those with.exe)
I suggested you having a try instead of just reading those information, so that you can understand them. i.e. fiber -rna -seq=AAAAUUUGGGGCCCC fRNA.pdb this command means creating a PDB file for AAAAUUUGGGGCCCC RNA named fRNA.
Another way to explore it is by reproducing the protocols in 3DNA: a versatile, integrated software system for the analysis, rebuilding, and visualization of three-dimensional nucleic-acid structures which I put in the attachments.( But you will need some third-party tools including MolScript, render in Raster3D, convert of  ImageMagick and so on, which is addressed in the paper. I have not got all of them myself, but I think I will in the future (I have not successfully reproduce 3 and 4, in fact, I can’t run blocview -t=300 -i=2acj_dna.png 2acj_dna.pdb and some other commands because of the lack of related software). I may also put my experience here. Again, join me! Even not having got everything ready, some can also be reproduced. I suggest you having a try since it gives novices a clearer view of both the paper itself and 3DNA.
Some tips for reproducing the protocols in the paper:
1, go to C:\MinGW\msys\1.0\home\Administrator\x3dna-v2.3\np_recipes\R1_diagram, or C:\MinGW\msys\1.0\home\Administrator\x3dna-v2.3\np_recipes\R~_diagram, to get some materials you need in the recipes, namely, copy or move them into C:\MinGW\msys\1.0\home\Administrator and then you can proceed following the direction of the recipes. But instead of copying all of them at one time, I advice you just get one file ready at a time.
2, in 1egk, the first is one rather than lower case of L, I remember there are other cases that are a little confusing, but you can just have a try like this example.
3, managing your screen may increase your efficiency. If you have two screens, you can try windows+p, if you only got one, you can try windows+left/right to divide your screen.
4, during or after your reproducing experience, you can refer to PROCEDURE in the paper to get a better understanding.

The output can be find here: C:\MinGW\msys\1.0\home\Administrator, your home directory.
Before typing the commands you find in the paper or other resource, you’d better type that keyword+-h first. For example, for” rebuild -block2 propeller.dat propeller.alc” you may get a general view of “rebuild” by using “rebuild –h”.
If you are going to do simulations with the PDB files generated by 3DNA, by fiber, to be specifically, it seems that you need to add H. Personally, I constantly failed to open the PDB files produced by 3DNA with Gaussian, but I can open it with GaussView, anyhow, Gauss should be able to add H. if you just have Gaussian, but not GaussView, you can open it with Notepad++, the information there may help you get gif file (but I have tried to make such file myself, you will know why after you open this way). I am also a novice regarding Gaussian, and haven’t launched such simulations due to lack of access to server cluster, but I will in April, and I may post useful experience or more likely, questions on the forum then.
Apart from GaussView and the sofewares method in the paper, you can also open the PDB file with VMD and Material Studio (MS may not be suitable). But my own experience is too limited to provide you more regarding software nor differences between these software.

There is a web-interface which may meet the general needs
If you just want a PDB file, go the following page directly

I should have put them at the beginning, but I deliberately placed them there, simply to invite you to have a try. I am totally a novice in this aspect and many related aspects. No one around me do similar research, no one has ever used Gaussian, msys, Cgywin, let alone 3DNA, rendering me to a situation with little assist apart from the forum and limited resources I can find online, I even do have access to google. Besides, I have to go to the hospital constantly, prepare for my defense thesis for my BA (on 31th, Mar.), an important exam (luckily, on 19th, Mar.), deal with chores. Considering these, I am convinced that most can get at least this stage, and probably much further and better than me. Though you may meet problems, don’t give up, and you will definitely find it worthwhile. In my case, I underwent an unsuccessful surgery on 17th’, then an exam, when I came back to my work and began this summary on 19th, I was relieved, though I still fumbled at it. I guess exploring itself, as long as it is related to your interest, is home to us.
I write this summary for novices with similar interests, for Dr. Lu. Thanks for his creation, patience and generous help. May be Dr. Lu created 3DNA with his soul, since he devotes so much to it.
Last but not least,
Learn from and contribute back to the Forum (an virtual community).
I feel quite sorry for failing to explore enough for you since I was constantly distracted by other things. Fortunately, I think I will be able to concentrate on my interest in the near future, I will try to post more in the future. But as I want to keep my promise both to Dr. Lu and to myself, I finally put this limited one here today.
Most of this summary is not original, you can find the information in the ref. though I may fail to point every points clearly in the context of the summary. Some may have not been listed clearly, but all can be found in Howto on the forum. I intended to fix it, however, the network has been a headache for me. I nearly failed to post this one today.
Most information provided by Dr. Lu, they should be correct, but there is some by myself, these are not necessarily correct. I can only say I believe they are, and once I found anything wrong, I would notify it. Any suggestions and notification for this work is welcomed.
I put two PDF files in the attachment, if this action is not appropriate (I have not asked for permission), please contact me.
Sorry for being verbose, and if I failed to make it clear to you, please let me know. Again, any suggestion or notification is welcome.
1 Xiang-Jun Lu and Wilma K. Olson. 3DNA: a versatile, integrated software system for the analysis, rebuilding, and visualization of three-dimensional nucleic-acid structures. Nature Protocols 3, -1213 - 1227 (2008)
This can also be found in x3dna-v2.3-mingw-win.tar.gz, the downloaded file, (~\x3dna-v2.3-mingw-win\x3dnav2.3\doc, together with others)or on researchgate, if you lack access to that.

Howtos / Re: How to install 3DNA on Windows?
« on: March 11, 2016, 09:05:31 am »
I am sorry for keep bothering you for silly question. After I run"./x3dna_setup", I can't do the key parts colored red. I put my case in the attachments. I can't find ~/.profile. is it just be in linux? It seems that I can't find that under windows.

Howtos / usage
« on: March 11, 2016, 07:25:27 am »
I still have not found out why I can't use some commands. It seems that there are on my command search path, and in the shell.  Is that because I haven't set x3dna environment variable? If it is, then how to set it? I put my situation below。

General discussions (Q&As) / PDB file for Gaussian
« on: March 04, 2016, 11:48:56 pm »
I hope to get a PDB file for Gaussian, I get one here at first stage, but I cannot open it with GaussView 5.0. What I should do? And I have to make some change in the original DNA, how can I make it? The original one I got is in the attachment.

Howtos / Cannot install 3DNA on Windows
« on: February 28, 2016, 12:24:30 am »
I do not know why, I download several versions for Windows, but I can install none. A black screen showed but disappear within a second.

Pages: [1]

Created and maintained by Dr. Xiang-Jun Lu [律祥俊], Principal Investigator of the NIH grant R01GM096889
Dr. Lu is currently affiliated with the Bussemaker Laboratory at the Department of Biological Sciences, Columbia University.