|
|
Line 32: |
Line 32: |
| var sReturn = obj.aData[ obj.iDataColumn ]; | | var sReturn = obj.aData[ obj.iDataColumn ]; |
| var SReturn_org = sReturn ; | | var SReturn_org = sReturn ; |
| sReturn = sReturn.split(":");
| | sReturn = sReturn.split(":"); |
| return '<a href=/resource_browser/User:Serkan/test2/'+SReturn_org+'>'+sReturn[1]+'</a>';}},
| | return '<a href=/resource_browser/User:Serkan/test2/'+SReturn_org+'>'+sReturn[1]+'</a>';}} |
| | |
| { "sTitle": "Sequence logos", "mRender": function (data, type, full) {
| |
| var number_prefix ="";
| |
| var sReturn =data;
| |
| var SReturn_org = sReturn ;
| |
| sReturn_prefix = sReturn.split(":")[0];
| |
| if(sReturn_prefix = "HOCOMOCO"){
| |
| number_prefix = "426";
| |
| }
| |
| else if(sReturn_prefix = "JASPAR"){
| |
| number_prefix = "130";
| |
| }
| |
| else if(sReturn_prefix = "HOMER"){
| |
| number_prefix = "138";
| |
| }
| |
| else if(sReturn_prefix = "SWISSREGULON"){
| |
| number_prefix = "190";
| |
| }
| |
| else if(sReturn_prefix = "UNIPROBE"){
| |
| number_prefix = "413";
| |
| }
| |
| else if(sReturn_prefix = "ENCODE"){
| |
| number_prefix = "683";
| |
| }
| |
| | |
| sReturn_prefix = "KNOWN"+"_"+number_prefix+"_201304";
| |
| return '<img src="/resource_browser/seqlogos/' +sReturn_prefix+"/"+ data + '.png" width ="80" height = "20">'; }
| |
| }
| |
| ] | | ] |
| } ); | | } ); |