[Chimera-users] Query: Saved pdb doesnt have mutated residue
Eric Pettersen
pett at cgl.ucsf.edu
Mon Jul 26 09:39:00 PDT 2021
Hi Zunera,
As far as I know your script should work. I have attached a similar script that opens 1gcn, swaps residue 2 to VAL, and then saves a pdb file in your home folder named "val.pdb". Try running it and see if it creates the file and if the file has residue 2 switched to VAL.
If the script I sent works then I have two possibilities for what's going wrong with your script. One is that your structure does not have a residue 2 in chain A. The other is that the script is literally saving a file named C\Users\folderval.pdb. That doesn't seem like it's what you want. Maybe you are looking at an old version of the file in some other location that makes you think the script isn't doing the right thing.
--Eric
Eric Pettersen
UCSF Computer Graphics Lab
> On Jul 26, 2021, at 12:45 AM, ZUNERA JAMAL via Chimera-users <chimera-users at cgl.ucsf.edu> wrote:
>
> Respected Chimera team!
> I have a pdb file in which i have done mutation by using swapaa command in IDLE python
> but once i saved the structure then new saved structure doesn't have mutated residues in it.
> commands:
> 1.rc("open filename.pdb")
> 2.rc("swapaa val #0:2.a")
> 3.new_file_name="val.pdb"
> 4.rc("write format pdb #0 C:\\Users\\folder" + new_file_name)
> 5.rc("save newsession")
> 6.rc("close session")
> 7.rc("close all")
> _______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu <mailto:Chimera-users at cgl.ucsf.edu>
> Manage subscription: https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users <https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20210726/a4f1b101/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python-script
Size: 113 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20210726/a4f1b101/attachment-0001.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20210726/a4f1b101/attachment-0003.html>
More information about the Chimera-users
mailing list