Przejdź do głównej zawartości

Thesis stuff - PyMOL - how to remove alternative conformation; renumbering, measuring distances with 2 decimals

Sometimes I'm googling stuff. How to do something.. And I'm forgetting then. Or writing on paper. But better to keep it on-line, so other googlers can find it, too ;) Thanks for http://randomthesisstuff.blogspot.co.uk/ useful! Another great one - http://www.keepcalmandpublishpapers.com/

So PyMOL, alternative conformation. It makes messy some of my calculations to keep alternative conformations, so to remove it, simply type:

PyMOL>remove not (alt ''+A)
PyMOL>alter all, alt=''

But it's choosing conformation A, not that with higher occupancy!

See here - https://pymolwiki.org/index.php/Property_Selectors#Alternate_Locations

Alternatively in Phenix - Model tools - pdb tools - options - remove alternate conformers, but it gave me the same output as PyMOL, conformation A, not higher occupancy.

You can do it in Coot, but then (probably?) have to go from residue to residue (with double occupancy), I didn't find how to do it for whole structure.

Extensions - Modelling - Residues with Alt Confs... (will show you which residues have alternative conformations)

Then you can go:

Edit - Residue Info - in the first column after residue name it shows occupancy. I deleted one with lower occupancy (by delete residue/monomer).


Coming back to PyMOL.

Another thing - renumbering. When your pdb starts not from one. Example - when it starts at 51:

alter name_of_pdb, resi=str(int(resi)-50)

it will subtract 50 from all residues, so will starts at 1 instead of 51.

See here - https://pymolwiki.org/index.php?title=Alter&redirect=no#Renumber_the_amino_acids_in_a_protein.2C_so_that_it_starts_from_0_instead_of_its_offset_as_defined_in_the_structure_file

How to measure a distance?
Go to wizard->measuring

It's set to show just 1 decimal, if you want to see two, then:

set label_distance_digits, 2

Komentarze

Popularne posty z tego bloga

How to make gif from PyMOL - easily!

Firstly, save your movie as png images. You can set_view/get_view to have the right orientation. To save scenes go to > scene > store > F 1/2/3... then > Movie > Program > Scene Loop I use usually: Nutate > 30 deg. over 4 sec. > file > save movie as png images then for 300 images you can easily use http://gifmaker.me/ (quite slow even with highest speed) or https://ezgif.com/maker up to 2000 files (delay time 1 makes a nice speed) or it's easy to find some png to gif conventer online

phasing (pseudo) 3D spectrum in TopSpin

1. Open your 3D processed spectrum. 2. Click on "show F2-F3 plane" (button "23" in TopSpin 3.2) xfb 3. Select plane orientation: "23" 4. Select plane number: "1" 5. Enter new PROCNO: can be "231" 6. Interactive phase correction 7. Add 3 points, then "R" - start the phase correction on rows 8. Phase and save. 7. Save for 3D spectrum (second button after "R") 8. Return to 3D spectrum. 9. process: tf3 and tf2 check you F2-F3 plane and enjoy! ;-)