#set:bg_colour=gui.html.bg_colour #set:font_colour=gui.html.font_colour set:font_colour_code=#aaaaff set:font_colour_bold=gui.html.highlight_colour c:itemstate index* 0 c:itemstate index-home 1 c:itemstate tab* 2 c:lines 10 c:showq false p:This tutorial will explain how to set up different types of maps in order to help understand the structure better, the first thing this tutorial will do is to load sucrose as an example to show this. c:freeze(true) c:reap 'DataDir()/samples/sucrose/sucrose.res' c:spy.revert_to_original() c:freeze(false) p:First the Tools needs to be opened by clicking on it h:tab-tools c:spy.switch_tab_for_tutorials(tools) p:You then need to click on the Maps tab h:h2-maps c:itemstate tools-masks 1 p:From this screen you can create a map for your 3D model lets start by creating a mask for the model. p:To run a mask you first need to click on the Masks tab h:h3-h3-masks c:itemstate h3-masks 1 p:Once in the tab leave all the numbers at their default values p:Now click on the button marked Mask h:button_small-mask c:spy.MaskView() c:spy.OlexCctbxMasks() c:refresh p:Once you have generated a mask you can then go back to the maps part of the tab and select a different type of plane to view by selecting the drop down box next to view c:html.setbg(SET_SNUM_XGRID_VIEW_maps,red) c:html.setvalue(SET_SNUM_XGRID_VIEW_maps,plane) c:xgrid.rendermode(plane) c:html.call(SET_SNUM_XGRID_VIEW_maps.onchange) c:refresh p:You can then select the type of map you would like, the default selection is normally plane which will be a dark square but lets try selecting contour+plane and see what happens c:itemstate h3-masks 2 c:html.setbg(SET_SNUM_XGRID_VIEW_maps,white) c:html.setvalue(SET_SNUM_XGRID_VIEW_maps,contour+plane) c:xgrid.rendermode(contour+plane) c:refresh p:It is recommended to try the different types of view in order to find a suitable one for the situation p:You can change the depth of the plane by using the slider, lets change this to a value of 2.4 for example c:html.setbg(snum_xgrid_depth_slide,red) c:html.setvalue(snum_xgrid_depth_slide,12) c:html.setvalue(snum_xgrid_depth_value,2.4) c:xgrid.depth(eval(getvalue(snum_xgrid_depth_slide)/5)) c:setvalue(snum_xgrid_depth_value,eval(getvalue(snum_xgrid_depth_slide)/5)) c:refresh p:You can also alter the depth of the plane by holding the ctrl key and using the left mouse button to click on the plane, while making sure not to select any of the molecule. p:Then moving the mouse while holding these buttons you can alter the depth of the plane. p:You may also want to change the colour of the plane in order to make it more obvious when a part of the molecule is behind it p:To do this right click on the plane and select draw-style this then allows you to alter the colours and choose a darker shade through the options on the window. c:html.setvalue(snum_xgrid_depth_slide,0) c:html.setvalue(snum_xgrid_depth_value,0) c:xgrid.depth(eval(getvalue(snum_xgrid_depth_slide)/5)) c:setvalue(snum_xgrid_depth_value,eval(getvalue(snum_xgrid_depth_slide)/5)) c:refresh p:There are also other types of maps you can use by selecting one of the other tabs such as Electron Density h:h3-h3-electron-density c:itemstate h3-electron-density 1 p:This will allow you to see the electron densities in the maps and will also change as you move the molecule through the plane p:To do this all you need to do is click on the button marked map h:button_small-map c:spy.mapview() c:refresh p:And to change the way the densities are shown you need to click on the drop down box marked view in maps c:html.setbg(SET_SNUM_XGRID_VIEW_maps,red) p:Lets see what happens when we change it to contour c:html.setvalue(SET_SNUM_XGRID_VIEW_maps,contour) c:xgrid.rendermode(contour) c:refresh p:End of tutorial, press next to repeat the tutorial or cancel to exit. c:spy.mapview() c:refresh