This is a repo for simplely fetching and rendering protein 3D structure using Blender Python module bpy.
- Install dependencies by conda:
conda env create -f env.yml
- Activate conda environment:
source activate blender
chmod +x renderPDB.py
usage: ./renderPDB.py [-h] [--id ID] [--camera_lens CAMERA_LENS]
[--camera_pos CAMERA_POS] [--core_style CORE_STYLE]
[--shell_style SHELL_STYLE]
[--temporary_path TEMPORARY_PATH]
[--output_path OUTPUT_PATH]
[--output_quality OUTPUT_QUALITY]
options:
-h, --help show this help message and exit
--id ID, -i ID PDB ID or PDB_chain (default: 1IGT)
--camera_lens CAMERA_LENS, -lens CAMERA_LENS
Camera lens. Default 22. (default: 18)
--camera_pos CAMERA_POS, -pos CAMERA_POS
Camera position. Default 140. (default: 40)
--core_style CORE_STYLE, -cs CORE_STYLE
Core structure style. (default: cartoon)
--shell_style SHELL_STYLE, -ss SHELL_STYLE
Shell structure style. (default: surface)
--temporary_path TEMPORARY_PATH, -tmp TEMPORARY_PATH
output file folder name (default: data)
--output_path OUTPUT_PATH, -o OUTPUT_PATH
output file folder name (default: ../img)
--output_quality OUTPUT_QUALITY, -q OUTPUT_QUALITY
output image quality (default: low)
renderPDB -i 1IGT
renderPDB -i 1IGT -cs ribbon
renderPDB -i 1IGT -pos 40
./renderPDB -i 6M17