#532 Please don't auto-detect of best representation on load

open-fixed
Bob Hanson
5
2012-08-30
2012-08-25
k. siegmund
No

Hi,

when loading files from the gui interface, the types of molecules in the file is auto-detected and the appropriate representation chosen.
This _only_ happens when a (pdb) file is loaded from the gui, not when a pdb entry is fetched from the net or a file is specified via the commandline.
What's worse, autodetect sometimes fails (e.g. on single amino/nucleic acids e.g. guanosine) and no molecule is shown.
Please make it an option in GUI to switch between default and autodetected representation.

Cheers,
I.

Discussion

<< < 1 2 (Page 2 of 2)
  • Bob Hanson
    Bob Hanson
    2012-08-30

    13.1.2 has a new feature:

    set defaultDropScript

    which by default is:

    defaultDropScript = "zap; load %FILE;if (%ALLOWCARTOONS && _loadScript = '' && defaultLoadScript == '' && _filetype == 'Pdb' && {(protein or nucleic)&*/1.1} && {*/1.1}[1].groupindex != {*/1.1}[0].groupindex) { select protein or nucleic;cartoons Only;if ({visible}){color structure}else{wireframe -0.1};if (!{visible}){spacefill 23%}; select * }"

    That also fixes a bug in {visible} that was reading true for 1-residue groups, which is not true if all they are is cartoons, strands, etc.

     
<< < 1 2 (Page 2 of 2)