Re: [COOT] Highlight and color chain breaks

2017-01-26 Thread Oliver Clarke
Thanks Paul!

I tried that... it works fine for regular molecules, but becomes annoyingly 
slow for ribosomes, RyR etc because my function is stupid and doesn't take 
account of whether chain breaks are already displayed - I'd need to rewrite it 
to be smarter for that to work... I'll have a think about it. 

I did add in a clickable list of all the chain breaks though, and added a 
different color (cyan) for those chain breaks that are physically implausible 
(more than 3.8Å per missing residue), which I think may be handy when building 
at low resolution, and when interpreting models from low res data.

Cheers
Oli
On Fri, 27 Jan 2017 00:39:36 +, Paul Emsley  
wrote:

>On 26/01/2017 22:23, Oliver Clarke wrote:
>> Hi all,
>>
>> I wrote a little jiffy to highlight missing segments and color by length 
>> (breaks with <15
>> missing residues are gray; 16-50 orange; and 51+ red).
>>
>> It is included in this script
>> (https://www.dropbox.com/s/0b4bebwxw0p9x0e/oli_custom.py?dl=0), and can be 
>> found be under
>> Custom...Highlight chain breaks once the script is installed (place in
>> ~/.coot-preferences). I would like it to auto-update on model modification 
>> or deletion,
>>
>
>def post_manipulation_script(imol, mode):
>highlight_chain_breaks()
>
>(not tested).
>
>Paul.


Re: [COOT] Highlight and color chain breaks

2017-01-26 Thread Paul Emsley

On 26/01/2017 22:23, Oliver Clarke wrote:

Hi all,

I wrote a little jiffy to highlight missing segments and color by length (breaks 
with <15
missing residues are gray; 16-50 orange; and 51+ red).

It is included in this script
(https://www.dropbox.com/s/0b4bebwxw0p9x0e/oli_custom.py?dl=0), and can be 
found be under
Custom...Highlight chain breaks once the script is installed (place in
~/.coot-preferences). I would like it to auto-update on model modification or 
deletion,



def post_manipulation_script(imol, mode):
   highlight_chain_breaks()

(not tested).

Paul.