import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
import java.util.Vector;
public static final int REGEX_STOCKHOLM = 0;
public static final int REGEX_BRACKETS = 1;
-
// use the following regex to decide an annotations (whole) line is NOT an RNA
// SS (it contains only E,H,e,h and other non-brace/non-alpha chars)
public static final int REGEX_NOT_RNASS = 2;
type = id2type(type);
boolean isrnass = false;
-
if (type.equalsIgnoreCase("secondary structure"))
{
ss = true;
for (int i = 0; i < annots.length(); i++)
{
String pos = annots.substring(i, i + 1);
+ // TODO 2.12 release: verify this Stockholm IO behaviour change in release notes
if (UNDERSCORE == pos.charAt(0))
{
pos = " ";
return ref.getSource().toString() + " ; "
+ ref.getAccessionId().toString();
}
-
@Override
public String print(SequenceI[] s, boolean jvSuffix)
{
Annotation[] ann;
for (int j = 0; j < alAnot.length; j++)
{
+
if (alAnot[j].annotations != null)
{
String key = type2id(alAnot[j].label);
out.append(newline);
}
}
-
}
out.append(new Format("%-" + maxid + "s")
return out.toString();
}
-
/**
* add an annotation character to the output row
*
}
}
+
protected static String id2type(String id)
{