profcolour = av.getAlignment().isNucleotide() ? new jalview.schemes.NucleotideColourScheme()
: new jalview.schemes.ZappoColourScheme();
}
+ boolean rna = av.getAlignment().isNucleotide();
columnSelection = av.getColumnSelection();
hconsensus = av.getSequenceConsensusHash();// hconsensus;
hStrucConsensus = av.getRnaStructureConsensusHash(); // hStrucConsensus;
return null;
}
+ boolean rna = false;
+
/**
* Render the annotation rows associated with an alignment.
*
AlignmentAnnotation consensusAnnot = av
.getAlignmentConsensusAnnotation(), structConsensusAnnot = av
.getAlignmentStrucConsensusAnnotation();
- boolean renderHistogram = true, renderProfile = true, normaliseProfile = false;
+ boolean renderHistogram = true, renderProfile = true, normaliseProfile = false, isRNA = rna;
BitSet graphGroupDrawn = new BitSet();
int charOffset = 0; // offset for a label
for (int i = 0; i < aa.length; i++)
{
AlignmentAnnotation row = aa[i];
+ isRNA = row.isRNA();
{
// check if this is a consensus annotation row and set the display
// settings appropriately
// System.out.println("\t type :"+lastSS+"\t x :"+x+"\t nbre annot :"+nb_annot);
switch (lastSS)
{
-
- case '$':
- drawHelixAnnot(g, row_annotations, lastSSX, x, y,
- iconOffset, startRes, column, validRes, validEnd);
- break;
-
- case 0xCE:
- drawSheetAnnot(g, row_annotations, lastSSX, x, y,
- iconOffset, startRes, column, validRes, validEnd);
- break;
-
case '(': // Stem case for RNA secondary structure
case ')': // and opposite direction
drawStemAnnot(g, row_annotations, lastSSX, x, y,
iconOffset, startRes, column, validRes, validEnd);
temp = x;
break;
+
+ case 'H':
+ if (!isRNA)
+ {
+ drawHelixAnnot(g, row_annotations, lastSSX, x, y,
+ iconOffset, startRes, column, validRes,
+ validEnd);
+ break;
+ }
+
+ case 'E':
+ if (!isRNA)
+ {
+ drawSheetAnnot(g, row_annotations, lastSSX, x, y,
+ iconOffset, startRes, column, validRes,
+ validEnd);
+ break;
+ }
+
case '{':
case '}':
case '[':
case 'c':
case 'D':
case 'd':
- case 'E':
case 'e':
case 'F':
case 'f':
case 'G':
case 'g':
- case 'H':
case 'h':
case 'I':
case 'i':
{
switch (lastSS)
{
- case '$':
- drawHelixAnnot(g, row_annotations, lastSSX, x, y, iconOffset,
- startRes, column, validRes, validEnd);
- break;
- case 0xCE:
- drawSheetAnnot(g, row_annotations, lastSSX, x, y, iconOffset,
- startRes, column, validRes, validEnd);
- break;
- case 's':
- case 'S': // Stem case for RNA secondary structure
+ case 'H':
+ if (!isRNA)
+ {
+ drawHelixAnnot(g, row_annotations, lastSSX, x, y, iconOffset,
+ startRes, column, validRes, validEnd);
+ break;
+ }
+
+ case 'E':
+ if (!isRNA)
+ {
+ drawSheetAnnot(g, row_annotations, lastSSX, x, y, iconOffset,
+ startRes, column, validRes, validEnd);
+ break;
+ }
+
+ case '(':
+ case ')': // Stem case for RNA secondary structure
drawStemAnnot(g, row_annotations, lastSSX, x, y, iconOffset,
startRes, column, validRes, validEnd);
case 'c':
case 'D':
case 'd':
- case 'E':
case 'e':
case 'F':
case 'f':
case 'G':
case 'g':
- case 'H':
case 'h':
case 'I':
case 'i':
return !usedFaded;
}
- private final Color GLYPHLINE_COLOR = Color.gray;
+ public static final Color GLYPHLINE_COLOR = Color.gray;
- private final Color SHEET_COLOUR = Color.green;
+ public static final Color SHEET_COLOUR = Color.green;
- private final Color HELIX_COLOUR = Color.red;
+ public static final Color HELIX_COLOUR = Color.red;
- private final Color STEM_COLOUR = Color.blue;
+ public static final Color STEM_COLOUR = Color.blue;
private Color sdNOTCANONICAL_COLOUR;