Entering edit mode
2.9 years ago
kitzune
•
0
Hi everyone (moctly who are interested in structural bioinformatics). I face the problem that I cannot plot the electron density of the specific part of my protein. For the whole protein it is not a problem:
from Bio.PDB import *
import nglview as nv
import ipywidgets
pdbl = PDBList()
path = pdbl.retrieve_pdb_file('1FAT')
parser = MMCIFParser()
struct = parser.get_structure("1fat", path)
view = nv.show_biopython(struct)
view
But when I tried to pick up residues from 10 till 109 (res_list = Selection.unfold_entities(struct, "R")[10:109]
) and plot I couldn't do that, because for nglview
I need to have a special Object. As beein a newbie, I decided to adress this question to specialists.
Thank You in Advance!
Probably easier to do the selection with a parser like
ProDy
.