.
The Open Protein Structure Annotation Network
PDB Keyword
.

Template:Group test

    Table of contents
    No headers
    var tagname = ''; if (args.tag) { let tagname = args.tag; } else { let tagname = page.name; } 
    var groupitms = wiki.getsearch('tag:'..tagname, '500');
    

    {{ wiki.template.sortable() }}

    var pdbids = myproteins.recordList('select p.id, substr(d.pdb_chain, 1, 4) as pdbid from dufs_to_pdb d  left join proteintable p ON substr(d.pdb_chain, 1, 4) = p.pdbid where d.pfid=\''..page.name..'\'');
    var pdblink = 'http://www.rcsb.org/pdb/explore/explore.do?structureId=';
    var structpages = myproteins.recordList('select distinct  p.id from dufs_to_pdb d, proteintable p where d.pfid=\''..page.name..'\' and substr(d.pdb_chain, 1, 4) = p.pdbid');
    <table border="1" cellpadding="5px" cellspacing="0" class="sortable" if="#pdbids != 0" style="width: 100%;">
     <tbody style="vertical-align: top;">
      <tr><td style="background-color: rgb(96, 133, 192);" width="10%"><strong>
      "Structures";
      </strong></td></tr>
      <tr><td>
    foreach (var grp in pdbids){
    <span style="float:left;display: inline-block; margin-right:15px;">
    if (grp.id != nil){
        var p = wiki.getpage(grp.id);
        web.link(p.uri,p.name);
        if(string.length(p.name)==4) {
           web.link(p.uri, structuresmall.image(p.name))
        }
    }else{
        web.link(pdblink..grp.pdbid ,grp.pdbid);
        web.link(pdblink..grp.pdbid , structuresmall.image(grp.pdbid));
    }
    </span>
    }
    </td></tr></tbody></table>

     

    Tag pages as '{{tagname}}' to appear in this list.

    Name Annotation Author(s)
    web.link(p.uri,p.name); 
    if(string.length(p.name)==4) {
       web.link(p.uri, structuresmall.image(p.name))
    }
    var pg = wiki.text(p.path); 
    var start = string.indexof(pg, 'Summary'); 
    if (start > -1) { 
       var str1 = string.remove(pg, 0, start+string.length( 'Summary')); 
       var maxl = 100; 
       if (string.length(str1) > maxl) { 
           var todisp = maxl; 
           if (string.length(str1) > 200) { 
              let todisp = 200; 
           } 
           var displaystr = string.remove(str1, todisp); 
           if(string.contains(displaystr, 'Your annotation here')) {
              let displaystr = '';
           } else{ 
              if (string.contains(displaystr, 'Sequence, L')){ 
                 var s1=string.indexof(displaystr, 'Sequence, L'); 
                 let displaystr = string.remove(displaystr, s1, string.length(displaystr)-s1);
              } else { 
                 let displaystr = displaystr..'...';
              } 
           }
           displaystr; 
        }
     } else { 
        str1; 
     }
    
    var contrib = wiki.contributors(p.path,5)['body/div/ul/li[a!=\'Admin\' and a!=\'dweekes\']']; 
    foreach(var c in contrib) { 
       xml.text{doc: c, inner: true}; 
       web.html('<br />'); 
    } 

    No TOPSAN member(s) found.

    Reviews

    References

     

    No references found.

    Tag page
    • No tags

    Files (0)

     
    You must login to post a comment.
    All content on this site is licensed under a Creative Commons Attribution 3.0 License
    Powered by MindTouch