/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
import java.util.List;
import java.util.Map;
+import compbio.data.sequence.FastaSequence;
import compbio.data.sequence.Range;
import compbio.data.sequence.Score;
import compbio.data.sequence.ScoreManager.ScoreHolder;
return "Submitting amino acid sequences for disorder prediction.";
}
+ @Override
+ boolean checkValidInputSeqs(boolean dynamic, List<FastaSequence> seqs)
+ {
+ return (seqs.size() > 0);
+ }
+
private static Map<String, Map<String, String[]>> featureMap;
private static Map<String, Map<String, Map<String, Object>>> annotMap;
+ rn.from, base + rn.to, methodName);
}
dseq.addSequenceFeature(sf);
- if (last != val && last != Float.NaN)
+ if (last != val && !Float.isNaN(last))
{
fc.put(sf.getType(), sf);
}
{
continue;
}
+ String typename, calcName;
AlignmentAnnotation annot = createAnnotationRowsForScores(
ourAnnot,
- service.serviceType + " (" + scr.getMethod() + ")",
- service.getServiceTypeURI() + "/" + scr.getMethod(),
+ typename = service.serviceType + " ("
+ + scr.getMethod() + ")",
+ calcName = service.getServiceTypeURI() + "/"
+ + scr.getMethod(),
aseq, base + 1, scr);
annot.graph = AlignmentAnnotation.LINE_GRAPH;
}
}
annot._linecolour = col;
+ // finally, update any dataset annotation
+ replaceAnnotationOnAlignmentWith(annot, typename, calcName,
+ aseq);
}
}
}
{
if (dispFeatures)
{
- jalview.gui.FeatureRenderer fr = ((jalview.gui.AlignmentPanel) ap)
+ jalview.api.FeatureRenderer fr = ((jalview.gui.AlignmentPanel) ap)
.cloneFeatureRenderer();
for (String ft : fc.keySet())
{
}
}
+ @Override
+ public String getCalcId()
+ {
+ // Disorder predictions are not dynamically updated so we return null
+ return null;
+ }
+
}