X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=django_simple%2Ftodo%2Ftemplates%2Fdetails.html;h=06ae3db39badf3c81ed27031e81f61b9ef3f0b01;hb=765fad7872822bd9ddd0b5538694d8eb04a0a116;hp=482ef8c987b793c08ad78ea7702e20f1098e7ee6;hpb=b3cd3f7d9ed8c4683b8e13aee4c34ed4863d4788;p=django_unres.git diff --git a/django_simple/todo/templates/details.html b/django_simple/todo/templates/details.html index 482ef8c..06ae3db 100644 --- a/django_simple/todo/templates/details.html +++ b/django_simple/todo/templates/details.html @@ -604,6 +604,8 @@ Created {{ task.created_date }} {% endif %} + Download @@ -635,6 +637,8 @@ Created {{ task.created_date }} {% endif %} + Download @@ -667,6 +671,8 @@ Created {{ task.created_date }} {% endif %} + Download @@ -698,6 +704,8 @@ Created {{ task.created_date }} {% endif %} + Download @@ -729,6 +737,8 @@ Created {{ task.created_date }} {% endif %} + Download @@ -771,6 +781,15 @@ function display_model(numstr){ }), stage.loadFile( "/myfiles/download-file/{{task.jobdirname}}/MODEL"+numstr+".pdb",{defaultRepresentation: false}) .then( function( o ){ + {% if task.damino %} + o.addRepresentation( "licorice",{ name: "unres", color: + "residueindex",colorScale:["blue","cyan", "green", + "yellow","orange", "red"], sele:".CA" + }) + o.addRepresentation( "licorice",{ name: "unressc", visible: false, color: + "residueindex",colorScale:["blue","cyan", "green", "yellow","orange", "red"] + , sele:"*" }) + {% else %} o.addRepresentation( "cartoon",{ name: "unres", color: "residueindex",colorScale:["blue","cyan", "green", "yellow","orange", "red"] @@ -778,6 +797,7 @@ function display_model(numstr){ o.addRepresentation( "line",{ name: "unressc", visible: false, color: "residueindex",colorScale:["blue","cyan", "green", "yellow","orange", "red"] , sele:"not hydrogen and sidechainAttached" }) + {% endif %} return o }) ]).then(function (ol1) { @@ -819,6 +839,15 @@ function display_model(numstr){ var stage = new NGL.Stage("viewport_M"+numstr); stage.setParameters( { backgroundColor: "white",fogFar: 60, fogNear: 45 } ); stage.loadFile( "/myfiles/download-file/{{task.jobdirname}}/MODEL"+numstr+".pdb",{defaultRepresentation: false}) .then( function( o ){ + {% if task.damino %} + o.addRepresentation( "licorice",{ name: "unres", color: + "residueindex",colorScale:["blue","cyan", "green", + "yellow","orange", "red"],sele:".CA" + }); + o.addRepresentation( "licorice",{ name: "unressc", visible: false, color: + "residueindex",colorScale:["blue","cyan", "green", "yellow","orange", "red"] + , sele:"*" }); + {% else %} o.addRepresentation( "cartoon",{ name: "unres", color: "residueindex",colorScale:["blue","cyan", "green", "yellow","orange", "red"] @@ -826,6 +855,7 @@ function display_model(numstr){ o.addRepresentation( "line",{ name: "unressc", visible: false, color: "residueindex",colorScale:["blue","cyan", "green", "yellow","orange", "red"] , sele:"not hydrogen and sidechainAttached" }); + {% endif %} o.autoView(); }) var toggleSidechains =document.getElementById("toggleSidechainsM"+numstr );