*/
package jalview.io;
-import jalview.datamodel.AlignmentI;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.Annotation;
{
annot = (AlignmentAnnotation) e.nextElement();
if (annot.label.equals(type))
+ {
break;
+ }
annot = null;
}
if (annot == null)
for (int idb = 0; idb < s[in].getDBRef().length; idb++)
{
if (dataRef == null)
+ {
dataRef = new Hashtable();
+ }
String datAs1 = s[in].getDBRef()[idb].getSource().toString()
+ " ; "
String key = type2id(feature);
if (key == null)
+ {
continue;
+ }
// out.append("#=GR ");
out.append(new Format("%-" + maxid + "s").form("#=GR "
String label;
if (aa.label.equals("seq"))
+ {
label = "seq_cons";
+ }
else
+ {
label = type2id(aa.label.toLowerCase()) + "_cons";
+ }
if (label == null)
+ {
label = aa.label;
+ }
out.append(new Format("%-" + maxid + "s").form("#=GC " + label
+ " "));
{
char ll = aa.annotations[j].secondaryStructure;
if (Character.toString(ll).equals(" "))
+ {
seq += "C";
+ }
else
+ {
seq += ll;
+ }
}
else if (ch.length() == 1)
{
}
if (key != null)
{
- return (String) key;
+ return key;
}
System.err.println("Warning : Unknown Stockholm annotation type: "
+ type);