/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
+ * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
*
* This file is part of Jalview.
*
public boolean autoCalculated = false;
public String annotationId;
-
+
public SequenceI sequenceRef;
/** DOCUMENT ME!! */
* RNA secondary structure contact positions
*/
public SequenceFeature[] _rnasecstr = null;
+
+ public String rnaStructure;
/**
* Updates the _rnasecstr field Determines the positions that base pair and
{
_rnasecstr = Rna.GetBasePairs(RNAannot);
Rna.HelixMap(_rnasecstr);
+
+ setRNAStruc(RNAannot);
if (_rnasecstr != null && _rnasecstr.length > 0)
{
}
// System.out.println("featuregroup " + _rnasecstr[0].getFeatureGroup());
}
-
+
public java.util.Hashtable sequenceMapping;
/** DOCUMENT ME!! */
annotationId = this.hashCode() + "";
}
- /**
+ public void setRNAStruc(String string) {
+ rnaStructure=string;
+}
+
+ public String getRNAStruc(){
+ return rnaStructure;
+ }
+
+/**
* Creates a new AlignmentAnnotation object.
*
* @param label
{
if (seqname && this.sequenceRef != null)
{
+ int i=description.toLowerCase().indexOf("<html>");
+ if (i>-1)
+ {
+ // move the html tag to before the sequence reference.
+ return "<html>"+sequenceRef.getName()+" : "+description.substring(i+6);
+ }
return sequenceRef.getName() + " : " + description;
}
return description;