var noMatchHighLight=0;
var noHighLight=1;
var browser=navigator.appName;
var ver=navigator.appVersion;
var intver=parseInt(ver);
function checkBrowser() {
if (noHighLight=0 && browser != 'Netscape' || intver<5) {
noMatchHighLight=1;
//alert("WARNING:\nMatches/Features highlighting on sequence deactivated.\n\n(javascript too slow or too old)\nHighlighting only enabled with a \nrecent Mozilla/FireFox/Netscape browser");
}
}
function highLightOn() {
noHighLight=0;
}
function highLightOff() {
noHighLight=1;
}
function matchHighLightOn() {
noMatchHighLigh=0;
}
function matchHighLightOff() {
noMatchHighLigh=1;
}
function userman(section, anchor) {
if (anchor==null) anchor="";
window.open("http://www.expasy.org/cgi-bin/userman.cgi?"+escape(section)+anchor,"userman","toolbar=no,directories=no,location=no,status=yes,scrollbars=yes,resizable=yes,width=600,height=400");
}
function HighLight(id,color,start,stop,isnotrange) {
this.id=id;
this.color=color;
this.start=start;
this.stop=stop;
this.isnotrange=isnotrange;
}
var prevMatchOnSeq= new HighLight();
var prevFeatureOnSeq= new HighLight();
var prevFeatureOnMatchSeq= new HighLight();
var prevMatchOnSeqColor='';
function clearMatchOnSeq() {
if (noHighLight || !prevMatchOnSeq.id) return;
for (var i=prevMatchOnSeq.start; i<=prevMatchOnSeq.stop; i++) {
var e=document.getElementById(prevMatchOnSeq.id+'_'+i);
if (e) e.style.backgroundColor='';
}
}
function clearFeatureOnSeq(match_id) {
if (noHighLight || !prevFeatureOnSeq.id || !prevMatchOnSeqColor) return;
for (var i=prevFeatureOnSeq.start; i<=prevFeatureOnSeq.stop; i++) {
var e=document.getElementById(prevFeatureOnSeq.id+'_'+i);
if (e && (prevFeatureOnSeq.isnotrange || i==prevFeatureOnSeq.start || i==prevFeatureOnSeq.stop))
e.style.backgroundColor=prevMatchOnSeqColor;
}
}
function clearFeatureOnMatchSeq() {
if (noHighLight || !prevFeatureOnMatchSeq.id) return;
for (var i=prevFeatureOnMatchSeq.start; i<=prevFeatureOnMatchSeq.stop; i++) {
var e=document.getElementById(prevFeatureOnMatchSeq.id+'_'+i);
if (e && (prevFeatureOnMatchSeq.isnotrange || i==prevFeatureOnMatchSeq.start || i==prevFeatureOnMatchSeq.stop))
e.style.backgroundColor='';
}
}
function highlightSpanRange(id,isnotrange,start,stop,color,type) {// highlight some sequence (span elem with id=id_start to id_stop)
//type:0 match on seq highligt, 1 feature on seq highlight, 2 feature on matchseq highlight
// must highlight 1st match on seq (type 0) then feature on seq then feature on matchseq...
if (noHighLight || (type!=2 && noMatchHighLight)) return;// skip highlighting on main sequence if bad browser...
// check if highlight already exists
if (type==0 && prevMatchOnSeq.id==id && prevMatchOnSeq.start==start && prevMatchOnSeq.stop==stop && prevMatchOnSeq.color==color) {prevMatchOnSeq.color=color;return;}
else if (type==1 && prevFeatureOnSeq.id==id && prevFeatureOnSeq.start==start && prevFeatureOnSeq.stop==stop && prevFeatureOnSeq.color==color) return;
else if (type==2 && prevFeatureOnMatchSeq.id==id && prevFeatureOnMatchSeq.start==start && prevFeatureOnMatchSeq.stop==stop && prevFeatureOnMatchSeq.color==color) return;
// new highlight: delete old one
if (type==0) {clearMatchOnSeq();clearFeatureOnMatchSeq();prevMatchOnSeqColor='';}
else if (type==1) {clearFeatureOnSeq();prevMatchOnSeqColor=prevMatchOnSeq.color;}
else if (type==2) clearFeatureOnMatchSeq();
// highlight range:
for (var i=start; i<=stop; i++) {
var e=document.getElementById(id+'_'+i);
if (e && (isnotrange || i==start || i==stop)) e.style.backgroundColor=color;
}
if (type==0) {
prevMatchOnSeq.id=id;prevMatchOnSeq.color=color;
prevMatchOnSeq.start=start;prevMatchOnSeq.stop=stop;
}
else if (type==1) {
prevFeatureOnSeq.id=id;prevFeatureOnSeq.color=color;
prevFeatureOnSeq.start=start;prevFeatureOnSeq.stop=stop;
prevFeatureOnSeq.isnotrange=isnotrange;
}
else if (type==2) {
prevFeatureOnMatchSeq.id=id;prevFeatureOnMatchSeq.color=color;
prevFeatureOnMatchSeq.start=start;prevFeatureOnMatchSeq.stop=stop;
prevFeatureOnMatchSeq.isnotrange=isnotrange;
}
}
var lastDiv='';
function highlightDiv(id,color) {
if (noHighLight || id == lastDiv) return;
if (lastDiv) {
var e=document.getElementById(lastDiv);
if (e) {e.style.backgroundColor='#F9F9F9';}
}
document.getElementById(id).style.backgroundColor=color;
lastDiv=id;
}
This view shows ScanProsite results together with rule-based predicted features inside (profile) matches.
Hits for USERPAT1{[FVLYI]-H-X-D-[IVM]-[ME]-D-X(1,2)-[FY]-X(2)-N} motif on all Swiss-Prot (release 44.0) database sequences :
found: 33 hits in 33 sequences
hits by patterns: [33 hits (by 1 pattern) on 33 sequences]
Hits by USERPAT1 : Pattern: [FVLYI]-H-X-D-[IVM]-[ME]-D-X(1,2)-[FY]-X(2)-N Approximate number of expected random matches [Ref: PMID 11535175] in Swiss-Prot release 41 (122564 sequences): 6.422659e-02