{{note.import("PFAM:"..args.accession)}}
{{note.link( 'sameAs', 'PFAM:'..args.accession, false)}}
| Pfam Family | |
|---|---|
| Name: {{ pfamQuery.name }} | Accession: {{ web.link{ uri: 'http://pfam.janelia.org/family?acc='..args.accession, text: args.accession, title: args.accession, target: '_blank'}; web.link{ uri: 'https://pfamsvn.sanger.ac.uk/svn/pfam/trunk/Data/Families/'..args.accession..'/DESC', text: ' (PFAM live)', title: args.accession, target: '_blank'}; }} |
| Description | |
| {{ pfamQuery.description }} | |
| Comments | |
| {{ pfamQuery.comment}} | |
| GO Terms | |
|---|---|
| >{{web.link{ uri: go.go, text: go.go, title: 'go', target: '_blank'}; }} | {{go.comment}} |
var offsetVal = 0;
var limitVal = 20;
var totalVal;
var accessionID = $("#accession").val();
function tableDraw() {
var prefixStr = "PREFIX owl:<http://www.w3.org/2002/07/owl#> PREFIX mind:<http://mindtouch.com/schema#> PREFIX core:<http://purl.uniprot.org/core/>";
var selectStr = "SELECT distinct(?path) WHERE { ?protein a core:Protein . ?protein core:memberOf ?pfam . ?pfam a core:Pfam_Family . ?pfam core:alias '" + accessionID + "' . ?protein mind:pagePath ?path}";
var queryStr = prefixStr + " " + selectStr + " LIMIT " + limitVal + " OFFSET " + offsetVal;
$.get( '/@api/deki/site/services/=note/proxy/sparql', { 'format' : 'json', 'query' : queryStr },
function (data) {
var table = $("#table");
table.empty();
table.append("<tr><td>TOPSAN Page</td><td>UNIPROT Page</td><td></td><td>Mnemonic</td></tr>");
for ( var row in data["results"]["bindings"] ) {
var uri = data.results.bindings[row].path.value;
var li = uri.lastIndexOf("/");
var pdbid = uri.substr(li+1, uri.length-(li+1));
var pathflag = uri.indexOf("Proteins");
var urlstr = "";
if (pathflag != -1 && pdbid.length == 4)
{
var imageurl = "http://www.rcsb.org/pdb/images/" + pdbid + "_bio_r_250.jpg?bioNum=1";
urlstr = "<div style=\"width: 150px;\"><a href=\"http://www.topsan.org/" + uri + "\" title = \"" + uri + "\"><img style=\"image-orientation: 90deg\" width=\"100px\" src=\"" + imageurl + "\" title=\"args.pdbid\"/></a></div>";
}
else
{
urlstr = "<div style=\"width: 150px; height: 40px;\"><a style=\"font-size:10px;\" href=\"http://www.topsan.org/" + uri + "\">" + uri + "</a></div>";
}
table.append( "<tr valign=\"top\"><td>" + urlstr + "</td><td>" +
"<a href=\"/" + uri + "\">" + uri + "</a></td></tr>" );
}
var tableLabel = $("#tableLabel");
tableLabel.empty();
var spanVal = offsetVal + limitVal;
tableLabel.append( " " + (offsetVal+1) + "-" + spanVal + " " );
}
);
};
function scrollUp() {
offsetVal -= limitVal;
if ( offsetVal < 0 ) {
offsetVal = 0;
}
tableDraw();
}
function scrollDown() {
offsetVal += limitVal;
tableDraw();
}
$(document).ready( tableDraw );
{{template.duf{pfid: args.accession} }}
No references found.