Re: [COOT] scheme : draw C-alpha : specifying range

2010-08-06 Thread Paul Emsley

On 06/08/10 18:20, Lepore, Bryan wrote:

i'd like to do this :
(graphics-to-ca-plus-ligands-representation range )

some things i tried, with error output, are

range=0-20, (unbound-variable)

range=* (expecting exact integer)-means no range possible?

where can i read about the syntax because it seems not the same as for (multi-read-pdb 
a*.pdb .) ...
   


Sorry, Coot is just not built to do this sort of thing.  There are a 
number of stock representation for a given molecule, I mean you can only 
change the style on a molecule-by-molecule basis  - no sub-selection.  
There are additional representations (typically ball and stick for a 
given residue (range)).  That's it.


graphics-to-ca-plus-ligands-representation expect an integer - the 
molecule number (i.e. it is one of a limited number of representation 
styles for the given molecule).


With my ccp4 hat on, I'd recommend ccp4mg 2.4.x for this sort of thing.

Paul.


Re: [COOT] scheme : draw C-alpha : specifying range

2010-08-06 Thread Paul Emsley

On 06/08/10 18:51, Lepore, Bryan wrote:

(graphics-to-ca-plus-ligands-representation range )

   

Sorry, Coot is just not built to do this sort of thing.
 

FWIW,
(graphics-to-ca-plus-ligands-representation 0 )
(graphics-to-ca-plus-ligands-representation 1 )
(graphics-to-ca-plus-ligands-representation . )
(graphics-to-ca-plus-ligands-representation n )
   


Oh (with a bit of off-list chat) I see what you mean.  You want:

(define my-range (model-molecule-list)) ;; just an example, (range 1 5) 
is another

(map graphics-to-ca-representation my-range)

Paul.


Re: [COOT] scheme : draw C-alpha : specifying range

2010-08-06 Thread Lepore, Bryan
Paul Emsley wrote :
 (define my-range (model-molecule-list)) ;; just an example, (range 1 5)
 (map graphics-to-ca-representation my-range)

cool. very.

-bryan