For merging use: merge_molecule([list of things to merge], imol_to_be_merged_into)
As for renaming chains: change_chain_id(imol, new_chain_id, chain_id_in, use_res_range_flag, resno_from, resno_to) or change_chain_id_with_result(imol, new_chain_id, chain_id_in, use_res_range_flag, resno_from, resno_to) You have to be careful when chaining chain ids as Coot wont allow you to insert doublicate residue numbers in the same chain. So you may have to renumber residues first. Hope this helps, B > Hey, > > I have been trying to find the script command that would do the same thing as > gui "copy fragment", but no success. > I have to copy hundreds of fragments and merge them to new molecule. With gui > it would take long time, then I was thinking to try to make a script. I only > found the copy_molecule or copy_chain, but I do not want to copy whole chain, > only a "fragment" (specific residues). Is there command (python) to copy > fragment? > I could use: > copy_residue_range > then I would change the chain id and renumber. I see the renumbering command, > but no command for changing chain id? > > > Best, > Arto > -- *************************************************** Dr. Bernhard Lohkamp Assistant Professor Div. Molecular Structural Biology Dept. of Medical Biochemistry and Biophysics (MBB) Karolinska Institutet S-17177 Stockholm Sweden phone: (+46) 08-52487651 fax: (+46) 08-327626 email: bernhard.lohk...@ki.se