Generate Image Of Pdb File From Script Or Command Line
3
2
Entering edit mode
12.3 years ago
NPalopoli ▴ 290

Hi,

I would like to get an image of a PDB file from any given script or command line order. What tools do you know that could fulfill this task?

Thanks!

pdb • 4.5k views
ADD COMMENT
4
Entering edit mode
12.3 years ago
Neilfws 49k

The classic tool for this purpose is MolScript. Another option is Raster3D, which is easy to install from many Linux repositories (sudo apt-get install raster3d for Ubuntu/Debian-based distros).

There's also a "quick and dirty" trick to fetch images from the PDB website, if you just want a "default" view:

wget http://www.pdb.org/pdb/images/NNNN_asr_r_500.jpg

where NNNN is the PDB code (e.g. 1AOQ).

ADD COMMENT
0
Entering edit mode
12.3 years ago

I'd rather use Pymol for that, fist your generate the image you like - save the script (Python) and use it for all other PDBs.

ADD COMMENT
0
Entering edit mode
9 months ago
Jiyao Wang ▴ 370

You could use iCn3D Python script to get the PNGs: https://github.com/ncbi/icn3d/blob/master/icn3dpython/icn3d_url/batch_export_png.py. You just need to replace the URL in the script.

ADD COMMENT

Login before adding your answer.

Traffic: 2859 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6