import com.stevesoft.pat.Regex;
import jalview.analysis.AAFrequency;
+import jalview.analysis.StructureFrequency;
import jalview.datamodel.*;
import jalview.schemes.ColourSchemeI;
|| !dc.equals(row.annotations[sCol - 1].displayCharacter);
boolean diffdownstream=!validRes || !validEnd || row.annotations[column] == null
|| !dc.equals(row.annotations[column].displayCharacter);
- System.out.println("Column "+column+" diff up: "+diffupstream+" down:"+diffdownstream);
+ //System.out.println("Column "+column+" diff up: "+diffupstream+" down:"+diffdownstream);
// If a closing base pair half of the stem, display a backward arrow
if (column > 0
&& closeparen
if (renderProfile && aa.annotations[column].value != 0)
{
int profl[] = getProfileFor(aa, column);
+ /*if(profl != null){
+ for(int i=0; i<profl.length;i++){
+ System.out.print(profl[i]+",");
+ }
+ System.out.print("drawProfile\n");
+ }*/
int ht = y1, htn = y2 - y1;// aa.graphHeight;
float wdth;
double ht2 = 0;
// group(aa.groupRef.cs==null)
// ? av.textColour2 :
// cs.findColour(dc));
+ //System.out.println(dc[0]);
g.drawChars(dc, 0, 1, x * av.charWidth,
(int) (ht + lm.getHeight()));
// ht+=g.getFontMetrics().getAscent()-g.getFontMetrics().getDescent();
return AAFrequency.extractProfile(av.hconsensus[column],
av.getIgnoreGapsConsensus());
}
+ }else{
+ if (aa.autoCalculated && aa.label.startsWith("StrucConsensus")){
+ if (aa.groupRef != null && aa.groupRef.consensusData != null
+ && aa.groupRef.isShowSequenceLogo())
+ {
+ return StructureFrequency.extractProfile(
+ aa.groupRef.consensusData[column],
+ aa.groupRef.getIgnoreGapsConsensus());
+ }
+ // TODO extend annotation row to enable dynamic and static profile data to
+ // be stored
+ if (aa.groupRef == null && aa.sequenceRef == null
+ && av.isShowSequenceLogo())
+ {
+ return StructureFrequency.extractProfile(av.hconsensus[column],
+ av.getIgnoreGapsConsensus());
+ }
+ }
+
}
return null;
}