Re: [COOT] Mutate to UNK?

2015-06-27 Thread Clarke, Oliver
In case it is useful to anyone else, this function seems to work fine: def mutate_residue_range_by_click_a(): def mutate_residue_range_by_click_b(res1,res2): if (res1[1]!=res2[1]) or (res1[2]!=res2[2]) or (res1[3]==res2[3]): info_dialog("Start and end points must be in the same mol and

Re: [COOT] Mutate to UNK?

2015-06-27 Thread Ethan Merritt
On Saturday, 27 June 2015 04:39:56 PM Clarke, Oliver wrote: > I would still ultimately favor making it a standard residue with three letter > code UNK and single letter code X - it allows for easy specification of > ambiguity, and it is the PDB-sanctioned way of representing an amino acid of >

Re: [COOT] Mutate to UNK?

2015-06-27 Thread Clarke, Oliver
That should work for the moment, thanks Bernhard! I can’t use it with mutate_residue_range because there is no single letter code, but I can loop through all residues in a range sequentially and mutate to ala and then set the residue name, so that works fine. I would still ultimately favor mak

Re: [COOT] Mutate to UNK?

2015-06-27 Thread Bernhard Lohkamp
How about using: set_residue_name(int imol, const char *chain_id, int res_no, const char *ins_code, const char *new_residue_name) B On 26/06/2015 18:36, Oliver Clarke wrote: Hi all, Would it be possible to add "UNK" to the list of standard residues one can mutate to? Currently mutate doesn