Skip to content

hgbrian/pdb2png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Create an image of a PDB file

One dependency:

mamba install -c conda-forge pymol-open-source

Colab demo

Open In Colab

Examples

python pdb2png.py 4O75.pdb

python pdb2png.py 4O75.pdb --render_style default_bw

python pdb2png.py 4O75.pdb --render_style default_cartoon

python pdb2png.py 4O75.pdb --render_style dark

python pdb2png.py 4O75.pdb --hetatm_color red --ligand_id 2RC --ligand_color 1,1,0 --protein_rotate 0,-70,0 --render_style default

python pdb2png.py 8G0Z.pdb

python pdb2png.py 8G0Z.pdb --render_style muted

Example PDB files

https://files.rcsb.org/download/4O75.pdb
https://files.rcsb.org/download/8G0Z.pdb

About

Create a PNG from a PDB file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages