entities.fetch
entities.fetch(
pdb_code,
style='spheres',
centre='',
del_solvent=True,
del_hydrogen=False,
cache_dir=None,
build_assembly=False,
database='rcsb',
format='bcif',
color='common',
)
Fetch and create a molecular structure from online databases.
Parameters
pdb_code |
str |
The PDB code of the structure to fetch |
required |
style |
str or None |
The visualization style to apply, by default “spheres” |
'spheres' |
centre |
str |
Method for centering the structure, by default “” |
'' |
del_solvent |
bool |
Whether to delete solvent molecules, by default True |
True |
del_hydrogen |
bool |
Whether to delete hydrogen atoms, by default False |
False |
cache_dir |
str or None |
Directory to cache downloaded files, by default None |
None |
build_assembly |
bool |
Whether to build the biological assembly, by default False |
False |
database |
str |
Database to fetch from (“rcsb”, “alphafold”), by default “rcsb” |
'rcsb' |
format |
str |
File format to download (“bcif”, “pdb”, etc), by default “bcif” |
'bcif' |
color |
str |
Coloring scheme to apply, by default “common” |
'common' |
Returns
|
Molecule |
The created molecular structure object |